PoolResizeParameter Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. PoolResizeParameter
- com.
public class PoolResizeParameter
Options for changing the size of a Pool.
Constructor Summary
Constructor | Description | |
---|---|---|
PoolResizeParameter() |
Method Summary
Modifier and Type | Method and Description |
---|---|
Compute |
nodeDeallocationOption()
Get the default value is requeue. |
org.joda.time.Period |
resizeTimeout()
Get the default value is 15 minutes. |
Integer |
targetDedicatedNodes()
Get the target |
Integer |
targetLowPriorityNodes()
Get the target |
Pool |
withNodeDeallocationOption(ComputeNodeDeallocationOption nodeDeallocationOption)
Set the default value is requeue. |
Pool |
withResizeTimeout(Period resizeTimeout)
Set the default value is 15 minutes. |
Pool |
withTargetDedicatedNodes(Integer targetDedicatedNodes)
Set the target |
Pool |
withTargetLowPriorityNodes(Integer targetLowPriorityNodes)
Set the target |
Methods inherited from java.lang.Object
Constructor Details
PoolResizeParameter
public PoolResizeParameter()
Method Details
nodeDeallocationOption
public ComputeNodeDeallocationOption nodeDeallocationOption()
Get the default value is requeue. Possible values include: 'requeue', 'terminate', 'taskCompletion', 'retainedData'.
Returns:
resizeTimeout
public Period resizeTimeout()
Get the default value is 15 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).
Returns:
targetDedicatedNodes
public Integer targetDedicatedNodes()
Get the targetDedicatedNodes value.
Returns:
targetLowPriorityNodes
public Integer targetLowPriorityNodes()
Get the targetLowPriorityNodes value.
Returns:
withNodeDeallocationOption
public PoolResizeParameter withNodeDeallocationOption(ComputeNodeDeallocationOption nodeDeallocationOption)
Set the default value is requeue. Possible values include: 'requeue', 'terminate', 'taskCompletion', 'retainedData'.
Parameters:
Returns:
withResizeTimeout
public PoolResizeParameter withResizeTimeout(Period resizeTimeout)
Set the default value is 15 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).
Parameters:
Returns:
withTargetDedicatedNodes
public PoolResizeParameter withTargetDedicatedNodes(Integer targetDedicatedNodes)
Set the targetDedicatedNodes value.
Parameters:
Returns:
withTargetLowPriorityNodes
public PoolResizeParameter withTargetLowPriorityNodes(Integer targetLowPriorityNodes)
Set the targetLowPriorityNodes value.
Parameters:
Returns:
Applies to
Azure SDK for Java