Class TaskFailureInformation
- java.lang.Object
-
- com.microsoft.azure.batch.protocol.models.TaskFailureInformation
-
public class TaskFailureInformation extends Object
Information about a Task failure.
-
-
Constructor Summary
Constructors Constructor Description TaskFailureInformation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.TaskFailureInformation
withCategory(ErrorCategory category)
Set possible values include: 'userError', 'serverError'.TaskFailureInformation
withCode(String code)
Set the code value.TaskFailureInformation
withDetails(List<NameValuePair> details)
Set the details value.TaskFailureInformation
withMessage(String message)
Set the message value.
-
-
-
Method Detail
-
category
public ErrorCategory category()
Get possible values include: 'userError', 'serverError'.- Returns:
- the category value
-
withCategory
public TaskFailureInformation withCategory(ErrorCategory category)
Set possible values include: 'userError', 'serverError'.- Parameters:
category
- the category value to set- Returns:
- the TaskFailureInformation object itself.
-
code
public String code()
Get the code value.- Returns:
- the code value
-
withCode
public TaskFailureInformation withCode(String code)
Set the code value.- Parameters:
code
- the code value to set- Returns:
- the TaskFailureInformation object itself.
-
message
public String message()
Get the message value.- Returns:
- the message value
-
withMessage
public TaskFailureInformation withMessage(String message)
Set the message value.- Parameters:
message
- the message value to set- Returns:
- the TaskFailureInformation object itself.
-
details
public List<NameValuePair> details()
Get the details value.- Returns:
- the details value
-
withDetails
public TaskFailureInformation withDetails(List<NameValuePair> details)
Set the details value.- Parameters:
details
- the details value to set- Returns:
- the TaskFailureInformation object itself.
-
-