BatchPoolLifetimeOption Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. compute. batch. models. BatchPoolLifetimeOption
- com.
- com.
public final class BatchPoolLifetimeOption
extends ExpandableStringEnum<BatchPoolLifetimeOption>
BatchPoolLifetimeOption enums.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Batch |
JOB
The Pool exists for the lifetime of the Job to which it is dedicated. |
|
static final
Batch |
JOB_SCHEDULE
The Pool exists for the lifetime of the Job Schedule. |
Constructor Summary
| Constructor | Description |
|---|---|
| BatchPoolLifetimeOption() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Batch |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Batch |
fromString(String name)
Creates or finds a Batch |
|
static
Collection<Batch |
values()
Gets known Batch |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
JOB
public static final BatchPoolLifetimeOption 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.
JOB_SCHEDULE
public static final BatchPoolLifetimeOption 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.
Constructor Details
BatchPoolLifetimeOption
@Deprecated
public BatchPoolLifetimeOption()
Deprecated
Creates a new instance of BatchPoolLifetimeOption value.
Method Details
fromString
public static BatchPoolLifetimeOption fromString(String name)
Creates or finds a BatchPoolLifetimeOption from its string representation.
Parameters:
Returns:
values
public static Collection<BatchPoolLifetimeOption> values()
Gets known BatchPoolLifetimeOption values.
Returns: