PoolResizeParameter Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. PoolResizeParameter
- com.
public class PoolResizeParameter
Options for changing the size of a pool.
Method Summary
Modifier and Type | Method and Description |
---|---|
Compute |
nodeDeallocationOption()
Get the default value is requeue. Possible values include: 'requeue', 'terminate', 'taskCompletion', 'retainedData'. |
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). |
Integer |
targetDedicatedNodes()
Get the targetDedicatedNodes value. |
Integer |
targetLowPriorityNodes()
Get the targetLowPriorityNodes value. |
Pool |
withNodeDeallocationOption(ComputeNodeDeallocationOption nodeDeallocationOption)
Set the default value is requeue. Possible values include: 'requeue', 'terminate', 'taskCompletion', 'retainedData'. |
Pool |
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). |
Pool |
withTargetDedicatedNodes(Integer targetDedicatedNodes)
Set the targetDedicatedNodes value. |
Pool |
withTargetLowPriorityNodes(Integer targetLowPriorityNodes)
Set the targetLowPriorityNodes value. |
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