BatchAutoPoolSpecification Class
- java.
lang. Object - com.
azure. compute. batch. models. BatchAutoPoolSpecification
- com.
Implements
public final class BatchAutoPoolSpecification
implements JsonSerializable<BatchAutoPoolSpecification>
Specifies characteristics for a temporary 'auto pool'. The Batch service will create this auto Pool when the Job is submitted.
Constructor Summary
| Constructor | Description |
|---|---|
| BatchAutoPoolSpecification(BatchPoolLifetimeOption poolLifetimeOption) |
Creates an instance of Batch |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Batch |
fromJson(JsonReader jsonReader)
Reads an instance of Batch |
| String |
getAutoPoolIdPrefix()
Get the auto |
|
Batch |
getPool()
Get the pool property: The Pool specification for the auto Pool. |
|
Batch |
getPoolLifetimeOption()
Get the pool |
| Boolean |
isKeepAlive()
Get the keep |
|
Batch |
setAutoPoolIdPrefix(String autoPoolIdPrefix)
Set the auto |
|
Batch |
setKeepAlive(Boolean keepAlive)
Set the keep |
|
Batch |
setPool(BatchPoolSpecification pool)
Set the pool property: The Pool specification for the auto Pool. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
BatchAutoPoolSpecification
public BatchAutoPoolSpecification(BatchPoolLifetimeOption poolLifetimeOption)
Creates an instance of BatchAutoPoolSpecification class.
Parameters:
Method Details
fromJson
public static BatchAutoPoolSpecification fromJson(JsonReader jsonReader)
Reads an instance of BatchAutoPoolSpecification from the JsonReader.
Parameters:
Returns:
Throws:
getAutoPoolIdPrefix
public String getAutoPoolIdPrefix()
Get the autoPoolIdPrefix property: A prefix to be added to the unique identifier when a Pool is automatically created. The Batch service assigns each auto Pool a unique identifier on creation. To distinguish between Pools created for different purposes, you can specify this element to add a prefix to the ID that is assigned. The prefix can be up to 20 characters long.
Returns:
getPool
public BatchPoolSpecification getPool()
Get the pool property: The Pool specification for the auto Pool.
Returns:
getPoolLifetimeOption
public BatchPoolLifetimeOption getPoolLifetimeOption()
Get the poolLifetimeOption property: The minimum lifetime of created auto Pools, and how multiple Jobs on a schedule are assigned to Pools.
Returns:
isKeepAlive
public Boolean isKeepAlive()
Get the keepAlive property: Whether to keep an auto Pool alive after its lifetime expires. If false, the Batch service deletes the Pool once its lifetime (as determined by the poolLifetimeOption setting) expires; that is, when the Job or Job Schedule completes. If true, the Batch service does not delete the Pool automatically. It is up to the user to delete auto Pools created with this option.
Returns:
setAutoPoolIdPrefix
public BatchAutoPoolSpecification setAutoPoolIdPrefix(String autoPoolIdPrefix)
Set the autoPoolIdPrefix property: A prefix to be added to the unique identifier when a Pool is automatically created. The Batch service assigns each auto Pool a unique identifier on creation. To distinguish between Pools created for different purposes, you can specify this element to add a prefix to the ID that is assigned. The prefix can be up to 20 characters long.
Parameters:
Returns:
setKeepAlive
public BatchAutoPoolSpecification setKeepAlive(Boolean keepAlive)
Set the keepAlive property: Whether to keep an auto Pool alive after its lifetime expires. If false, the Batch service deletes the Pool once its lifetime (as determined by the poolLifetimeOption setting) expires; that is, when the Job or Job Schedule completes. If true, the Batch service does not delete the Pool automatically. It is up to the user to delete auto Pools created with this option.
Parameters:
Returns:
setPool
public BatchAutoPoolSpecification setPool(BatchPoolSpecification pool)
Set the pool property: The Pool specification for the auto Pool.
Parameters:
Returns: