Package com.azure.compute.batch.models
Class BatchPoolLifetimeOption
java.lang.Object
com.azure.core.util.ExpandableStringEnum<BatchPoolLifetimeOption>
com.azure.compute.batch.models.BatchPoolLifetimeOption
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class BatchPoolLifetimeOption
extends com.azure.core.util.ExpandableStringEnum<BatchPoolLifetimeOption>
BatchPoolLifetimeOption enums.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BatchPoolLifetimeOption
The Pool exists for the lifetime of the Job to which it is dedicated.static final BatchPoolLifetimeOption
The Pool exists for the lifetime of the Job Schedule. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BatchPoolLifetimeOption
fromString
(String name) Creates or finds a BatchPoolLifetimeOption from its string representation.static Collection
<BatchPoolLifetimeOption> values()
Gets known BatchPoolLifetimeOption values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
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
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.
-
-
Constructor Details
-
BatchPoolLifetimeOption
Deprecated.Use thefromString(String)
factory method.Creates a new instance of BatchPoolLifetimeOption value.
-
-
Method Details
-
fromString
Creates or finds a BatchPoolLifetimeOption from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding BatchPoolLifetimeOption.
-
values
Gets known BatchPoolLifetimeOption values.- Returns:
- known BatchPoolLifetimeOption values.
-
fromString(String)
factory method.