Class ResizeOperationStatus

java.lang.Object
com.microsoft.azure.management.batch.ResizeOperationStatus

public class ResizeOperationStatus extends Object
Details about the current or last completed resize operation. Describes either the current operation (if the pool AllocationState is Resizing) or the previously completed operation (if the AllocationState is Steady).
  • Constructor Details

    • ResizeOperationStatus

      public ResizeOperationStatus()
  • Method Details

    • targetDedicatedNodes

      public Integer targetDedicatedNodes()
      Get the targetDedicatedNodes value.
      Returns:
      the targetDedicatedNodes value
    • withTargetDedicatedNodes

      public ResizeOperationStatus withTargetDedicatedNodes(Integer targetDedicatedNodes)
      Set the targetDedicatedNodes value.
      Parameters:
      targetDedicatedNodes - the targetDedicatedNodes value to set
      Returns:
      the ResizeOperationStatus object itself.
    • targetLowPriorityNodes

      public Integer targetLowPriorityNodes()
      Get the targetLowPriorityNodes value.
      Returns:
      the targetLowPriorityNodes value
    • withTargetLowPriorityNodes

      public ResizeOperationStatus withTargetLowPriorityNodes(Integer targetLowPriorityNodes)
      Set the targetLowPriorityNodes value.
      Parameters:
      targetLowPriorityNodes - the targetLowPriorityNodes value to set
      Returns:
      the ResizeOperationStatus 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 ResizeOperationStatus 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 ResizeOperationStatus 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 ResizeOperationStatus 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 ResizeOperationStatus object itself.
    • startTime

      public org.joda.time.DateTime startTime()
      Get the startTime value.
      Returns:
      the startTime value
    • withStartTime

      public ResizeOperationStatus withStartTime(org.joda.time.DateTime startTime)
      Set the startTime value.
      Parameters:
      startTime - the startTime value to set
      Returns:
      the ResizeOperationStatus object itself.
    • errors

      public List<ResizeError> errors()
      Get this property is set only if an error occurred during the last pool resize, and only when the pool allocationState is Steady.
      Returns:
      the errors value
    • withErrors

      public ResizeOperationStatus withErrors(List<ResizeError> errors)
      Set this property is set only if an error occurred during the last pool resize, and only when the pool allocationState is Steady.
      Parameters:
      errors - the errors value to set
      Returns:
      the ResizeOperationStatus object itself.