Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
126 lines (110 sloc) 2.94 KB
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.batch.protocol.models;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Information about a task failure.
*/
public class TaskFailureInformation {
/**
* The category of the task error.
* Possible values include: 'userError', 'serverError'.
*/
@JsonProperty(value = "category", required = true)
private ErrorCategory category;
/**
* An identifier for the task error. Codes are invariant and are intended
* to be consumed programmatically.
*/
@JsonProperty(value = "code")
private String code;
/**
* A message describing the task error, intended to be suitable for display
* in a user interface.
*/
@JsonProperty(value = "message")
private String message;
/**
* A list of additional details related to the error.
*/
@JsonProperty(value = "details")
private List<NameValuePair> details;
/**
* Get possible values include: 'userError', 'serverError'.
*
* @return the category value
*/
public ErrorCategory category() {
return this.category;
}
/**
* Set possible values include: 'userError', 'serverError'.
*
* @param category the category value to set
* @return the TaskFailureInformation object itself.
*/
public TaskFailureInformation withCategory(ErrorCategory category) {
this.category = category;
return this;
}
/**
* Get the code value.
*
* @return the code value
*/
public String code() {
return this.code;
}
/**
* Set the code value.
*
* @param code the code value to set
* @return the TaskFailureInformation object itself.
*/
public TaskFailureInformation withCode(String code) {
this.code = code;
return this;
}
/**
* Get the message value.
*
* @return the message value
*/
public String message() {
return this.message;
}
/**
* Set the message value.
*
* @param message the message value to set
* @return the TaskFailureInformation object itself.
*/
public TaskFailureInformation withMessage(String message) {
this.message = message;
return this;
}
/**
* Get the details value.
*
* @return the details value
*/
public List<NameValuePair> details() {
return this.details;
}
/**
* Set the details value.
*
* @param details the details value to set
* @return the TaskFailureInformation object itself.
*/
public TaskFailureInformation withDetails(List<NameValuePair> details) {
this.details = details;
return this;
}
}
You can’t perform that action at this time.