Enum ComputeNodeDeallocationOption
- java.lang.Object
-
- java.lang.Enum<ComputeNodeDeallocationOption>
-
- com.microsoft.azure.management.batch.ComputeNodeDeallocationOption
-
- All Implemented Interfaces:
Serializable,Comparable<ComputeNodeDeallocationOption>
public enum ComputeNodeDeallocationOption extends Enum<ComputeNodeDeallocationOption>
Defines values for ComputeNodeDeallocationOption.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description REQUEUEEnum value Requeue.RETAINED_DATAEnum value RetainedData.TASK_COMPLETIONEnum value TaskCompletion.TERMINATEEnum value Terminate.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComputeNodeDeallocationOptionfromString(String value)Parses a serialized value to a ComputeNodeDeallocationOption instance.StringtoString()static ComputeNodeDeallocationOptionvalueOf(String name)Returns the enum constant of this type with the specified name.static ComputeNodeDeallocationOption[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REQUEUE
public static final ComputeNodeDeallocationOption REQUEUE
Enum value Requeue.
-
TERMINATE
public static final ComputeNodeDeallocationOption TERMINATE
Enum value Terminate.
-
TASK_COMPLETION
public static final ComputeNodeDeallocationOption TASK_COMPLETION
Enum value TaskCompletion.
-
RETAINED_DATA
public static final ComputeNodeDeallocationOption RETAINED_DATA
Enum value RetainedData.
-
-
Method Detail
-
values
public static ComputeNodeDeallocationOption[] 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 (ComputeNodeDeallocationOption c : ComputeNodeDeallocationOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ComputeNodeDeallocationOption 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 ComputeNodeDeallocationOption fromString(String value)
Parses a serialized value to a ComputeNodeDeallocationOption instance.- Parameters:
value- the serialized value to parse.- Returns:
- the parsed ComputeNodeDeallocationOption object, or null if unable to parse.
-
toString
public String toString()
- Overrides:
toStringin classEnum<ComputeNodeDeallocationOption>
-
-