Enum PoolLifetimeOption
- java.lang.Object
-
- java.lang.Enum<PoolLifetimeOption>
-
- com.microsoft.azure.batch.protocol.models.PoolLifetimeOption
-
- All Implemented Interfaces:
Serializable
,Comparable<PoolLifetimeOption>
public enum PoolLifetimeOption extends Enum<PoolLifetimeOption>
Defines values for PoolLifetimeOption.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description JOB
The Pool exists for the lifetime of the Job to which it is dedicated.JOB_SCHEDULE
The Pool exists for the lifetime of the Job Schedule.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PoolLifetimeOption
fromString(String value)
Parses a serialized value to a PoolLifetimeOption instance.String
toString()
static PoolLifetimeOption
valueOf(String name)
Returns the enum constant of this type with the specified name.static PoolLifetimeOption[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JOB_SCHEDULE
public static final PoolLifetimeOption JOB_SCHEDULE
The Pool exists for the lifetime of the Job Schedule. The Batch Service creates the Pool when it creates the first Job on the schedule. You may apply this option only to Job Schedules, not to Jobs.
-
JOB
public static final PoolLifetimeOption JOB
The Pool exists for the lifetime of the Job to which it is dedicated. The Batch service creates the Pool when it creates the Job. If the 'job' option is applied to a Job Schedule, the Batch service creates a new auto Pool for every Job created on the schedule.
-
-
Method Detail
-
values
public static PoolLifetimeOption[] 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 (PoolLifetimeOption c : PoolLifetimeOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PoolLifetimeOption 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 PoolLifetimeOption fromString(String value)
Parses a serialized value to a PoolLifetimeOption instance.- Parameters:
value
- the serialized value to parse.- Returns:
- the parsed PoolLifetimeOption object, or null if unable to parse.
-
toString
public String toString()
- Overrides:
toString
in classEnum<PoolLifetimeOption>
-
-