Enum TaskAddStatus
- java.lang.Object
-
- java.lang.Enum<TaskAddStatus>
-
- com.microsoft.azure.batch.protocol.models.TaskAddStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<TaskAddStatus>
public enum TaskAddStatus extends Enum<TaskAddStatus>
Defines values for TaskAddStatus.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLIENT_ERROR
The Task failed to add due to a client error and should not be retried without modifying the request as appropriate.SERVER_ERROR
Task failed to add due to a server error and can be retried without modification.SUCCESS
The Task was added successfully.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TaskAddStatus
fromString(String value)
Parses a serialized value to a TaskAddStatus instance.String
toString()
static TaskAddStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static TaskAddStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final TaskAddStatus SUCCESS
The Task was added successfully.
-
CLIENT_ERROR
public static final TaskAddStatus CLIENT_ERROR
The Task failed to add due to a client error and should not be retried without modifying the request as appropriate.
-
SERVER_ERROR
public static final TaskAddStatus SERVER_ERROR
Task failed to add due to a server error and can be retried without modification.
-
-
Method Detail
-
values
public static TaskAddStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TaskAddStatus c : TaskAddStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TaskAddStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromString
public static TaskAddStatus fromString(String value)
Parses a serialized value to a TaskAddStatus instance.- Parameters:
value
- the serialized value to parse.- Returns:
- the parsed TaskAddStatus object, or null if unable to parse.
-
toString
public String toString()
- Overrides:
toString
in classEnum<TaskAddStatus>
-
-