Class BatchError
- java.lang.Object
-
- com.microsoft.azure.batch.protocol.models.BatchError
-
public class BatchError extends Object
An error response received from the Azure Batch service.
-
-
Constructor Summary
Constructors Constructor Description BatchError()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
code()
Get the code value.ErrorMessage
message()
Get the message value.List<BatchErrorDetail>
values()
Get the values value.BatchError
withCode(String code)
Set the code value.BatchError
withMessage(ErrorMessage message)
Set the message value.BatchError
withValues(List<BatchErrorDetail> values)
Set the values value.
-
-
-
Method Detail
-
code
public String code()
Get the code value.- Returns:
- the code value
-
withCode
public BatchError withCode(String code)
Set the code value.- Parameters:
code
- the code value to set- Returns:
- the BatchError object itself.
-
message
public ErrorMessage message()
Get the message value.- Returns:
- the message value
-
withMessage
public BatchError withMessage(ErrorMessage message)
Set the message value.- Parameters:
message
- the message value to set- Returns:
- the BatchError object itself.
-
values
public List<BatchErrorDetail> values()
Get the values value.- Returns:
- the values value
-
withValues
public BatchError withValues(List<BatchErrorDetail> values)
Set the values value.- Parameters:
values
- the values value to set- Returns:
- the BatchError object itself.
-
-