Enum OutputFileUploadCondition
- java.lang.Object
-
- java.lang.Enum<OutputFileUploadCondition>
-
- com.microsoft.azure.batch.protocol.models.OutputFileUploadCondition
-
- All Implemented Interfaces:
Serializable
,Comparable<OutputFileUploadCondition>
public enum OutputFileUploadCondition extends Enum<OutputFileUploadCondition>
Defines values for OutputFileUploadCondition.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description TASK_COMPLETION
Upload the file(s) after the Task process exits, no matter what the exit code was.TASK_FAILURE
Upload the file(s) only after the Task process exits with a nonzero exit code.TASK_SUCCESS
Upload the file(s) only after the Task process exits with an exit code of 0.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OutputFileUploadCondition
fromString(String value)
Parses a serialized value to a OutputFileUploadCondition instance.String
toString()
static OutputFileUploadCondition
valueOf(String name)
Returns the enum constant of this type with the specified name.static OutputFileUploadCondition[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TASK_SUCCESS
public static final OutputFileUploadCondition TASK_SUCCESS
Upload the file(s) only after the Task process exits with an exit code of 0.
-
TASK_FAILURE
public static final OutputFileUploadCondition TASK_FAILURE
Upload the file(s) only after the Task process exits with a nonzero exit code.
-
TASK_COMPLETION
public static final OutputFileUploadCondition TASK_COMPLETION
Upload the file(s) after the Task process exits, no matter what the exit code was.
-
-
Method Detail
-
values
public static OutputFileUploadCondition[] 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 (OutputFileUploadCondition c : OutputFileUploadCondition.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OutputFileUploadCondition 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 OutputFileUploadCondition fromString(String value)
Parses a serialized value to a OutputFileUploadCondition instance.- Parameters:
value
- the serialized value to parse.- Returns:
- the parsed OutputFileUploadCondition object, or null if unable to parse.
-
toString
public String toString()
- Overrides:
toString
in classEnum<OutputFileUploadCondition>
-
-