Class PoolResizeParameter


  • public class PoolResizeParameter
    extends Object
    Options for changing the size of a Pool.
    • Constructor Detail

      • PoolResizeParameter

        public PoolResizeParameter()
    • 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.