JobSchedulingError Class

  • java.lang.Object
    • com.microsoft.azure.batch.protocol.models.JobSchedulingError

public class JobSchedulingError

An error encountered by the Batch service when scheduling a job.

Method Summary

Modifier and Type Method and Description
ErrorCategory category()

Get possible values include: 'userError', 'serverError'.

String code()

Get the code value.

List<NameValuePair> details()

Get the details value.

String message()

Get the message value.

JobSchedulingError withCategory(ErrorCategory category)

Set possible values include: 'userError', 'serverError'.

JobSchedulingError withCode(String code)

Set the code value.

JobSchedulingError withDetails(List<NameValuePair> details)

Set the details value.

JobSchedulingError withMessage(String message)

Set the message value.

Method Details

category

public ErrorCategory category()

Get possible values include: 'userError', 'serverError'.

Returns:

the category value

code

public String code()

Get the code value.

Returns:

the code value

details

public List details()

Get the details value.

Returns:

the details value

message

public String message()

Get the message value.

Returns:

the message value

withCategory

public JobSchedulingError withCategory(ErrorCategory category)

Set possible values include: 'userError', 'serverError'.

Parameters:

category - the category value to set

Returns:

the JobSchedulingError object itself.

withCode

public JobSchedulingError withCode(String code)

Set the code value.

Parameters:

code - the code value to set

Returns:

the JobSchedulingError object itself.

withDetails

public JobSchedulingError withDetails(List details)

Set the details value.

Parameters:

details - the details value to set

Returns:

the JobSchedulingError object itself.

withMessage

public JobSchedulingError withMessage(String message)

Set the message value.

Parameters:

message - the message value to set

Returns:

the JobSchedulingError object itself.

Applies to