Class BatchNodeRemoveContent

java.lang.Object
com.azure.compute.batch.models.BatchNodeRemoveContent
All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchNodeRemoveContent>

public final class BatchNodeRemoveContent extends Object implements com.azure.json.JsonSerializable<BatchNodeRemoveContent>
Parameters for removing nodes from an Azure Batch Pool.
  • Constructor Details

    • BatchNodeRemoveContent

      public BatchNodeRemoveContent(List<String> nodeList)
      Creates an instance of BatchNodeRemoveContent class.
      Parameters:
      nodeList - the nodeList value to set.
  • Method Details

    • getNodeList

      public List<String> getNodeList()
      Get the nodeList property: A list containing the IDs of the Compute Nodes to be removed from the specified Pool. A maximum of 100 nodes may be removed per request.
      Returns:
      the nodeList value.
    • getResizeTimeout

      public Duration getResizeTimeout()
      Get the resizeTimeout property: The timeout for removal of Compute Nodes to the Pool. 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.
    • setResizeTimeout

      public BatchNodeRemoveContent setResizeTimeout(Duration resizeTimeout)
      Set the resizeTimeout property: The timeout for removal of Compute Nodes to the Pool. 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 BatchNodeRemoveContent object itself.
    • getNodeDeallocationOption

      public BatchNodeDeallocationOption getNodeDeallocationOption()
      Get the nodeDeallocationOption property: Determines what to do with a Compute Node and its running task(s) after it has been selected for deallocation. The default value is requeue.
      Returns:
      the nodeDeallocationOption value.
    • setNodeDeallocationOption

      public BatchNodeRemoveContent setNodeDeallocationOption(BatchNodeDeallocationOption nodeDeallocationOption)
      Set the nodeDeallocationOption property: Determines what to do with a Compute Node and its running task(s) after it has been selected for deallocation. The default value is requeue.
      Parameters:
      nodeDeallocationOption - the nodeDeallocationOption value to set.
      Returns:
      the BatchNodeRemoveContent object itself.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<BatchNodeRemoveContent>
      Throws:
      IOException
    • fromJson

      public static BatchNodeRemoveContent fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of BatchNodeRemoveContent from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of BatchNodeRemoveContent if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the BatchNodeRemoveContent.