Class PoolResizeParameter
- java.lang.Object
-
- com.microsoft.azure.batch.protocol.models.PoolResizeParameter
-
public class PoolResizeParameter extends Object
Options for changing the size of a Pool.
-
-
Constructor Summary
Constructors Constructor Description PoolResizeParameter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeNodeDeallocationOption
nodeDeallocationOption()
Get the default value is requeue.org.joda.time.Period
resizeTimeout()
Get the default value is 15 minutes.Integer
targetDedicatedNodes()
Get the targetDedicatedNodes value.Integer
targetLowPriorityNodes()
Get the targetLowPriorityNodes value.PoolResizeParameter
withNodeDeallocationOption(ComputeNodeDeallocationOption nodeDeallocationOption)
Set the default value is requeue.PoolResizeParameter
withResizeTimeout(org.joda.time.Period resizeTimeout)
Set the default value is 15 minutes.PoolResizeParameter
withTargetDedicatedNodes(Integer targetDedicatedNodes)
Set the targetDedicatedNodes value.PoolResizeParameter
withTargetLowPriorityNodes(Integer targetLowPriorityNodes)
Set the targetLowPriorityNodes value.
-
-
-
Method Detail
-
targetDedicatedNodes
public Integer targetDedicatedNodes()
Get the targetDedicatedNodes value.- Returns:
- the targetDedicatedNodes value
-
withTargetDedicatedNodes
public PoolResizeParameter withTargetDedicatedNodes(Integer targetDedicatedNodes)
Set the targetDedicatedNodes value.- Parameters:
targetDedicatedNodes
- the targetDedicatedNodes value to set- Returns:
- the PoolResizeParameter object itself.
-
targetLowPriorityNodes
public Integer targetLowPriorityNodes()
Get the targetLowPriorityNodes value.- Returns:
- the targetLowPriorityNodes value
-
withTargetLowPriorityNodes
public PoolResizeParameter withTargetLowPriorityNodes(Integer targetLowPriorityNodes)
Set the targetLowPriorityNodes value.- Parameters:
targetLowPriorityNodes
- the targetLowPriorityNodes value to set- Returns:
- the PoolResizeParameter object itself.
-
resizeTimeout
public org.joda.time.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:
- the resizeTimeout value
-
withResizeTimeout
public PoolResizeParameter withResizeTimeout(org.joda.time.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:
resizeTimeout
- the resizeTimeout value to set- Returns:
- the PoolResizeParameter object itself.
-
nodeDeallocationOption
public ComputeNodeDeallocationOption nodeDeallocationOption()
Get the default value is requeue. Possible values include: 'requeue', 'terminate', 'taskCompletion', 'retainedData'.- Returns:
- the nodeDeallocationOption value
-
withNodeDeallocationOption
public PoolResizeParameter withNodeDeallocationOption(ComputeNodeDeallocationOption nodeDeallocationOption)
Set the default value is requeue. Possible values include: 'requeue', 'terminate', 'taskCompletion', 'retainedData'.- Parameters:
nodeDeallocationOption
- the nodeDeallocationOption value to set- Returns:
- the PoolResizeParameter object itself.
-
-