Class BatchNodeDeallocateContent

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

public final class BatchNodeDeallocateContent extends Object implements com.azure.json.JsonSerializable<BatchNodeDeallocateContent>
Options for deallocating a Compute Node.
  • Constructor Details

    • BatchNodeDeallocateContent

      public BatchNodeDeallocateContent()
      Creates an instance of BatchNodeDeallocateContent class.
  • Method Details

    • getNodeDeallocateOption

      public BatchNodeDeallocateOption getNodeDeallocateOption()
      Get the nodeDeallocateOption property: When to deallocate the Compute Node and what to do with currently running Tasks. The default value is requeue.
      Returns:
      the nodeDeallocateOption value.
    • setNodeDeallocateOption

      public BatchNodeDeallocateContent setNodeDeallocateOption(BatchNodeDeallocateOption nodeDeallocateOption)
      Set the nodeDeallocateOption property: When to deallocate the Compute Node and what to do with currently running Tasks. The default value is requeue.
      Parameters:
      nodeDeallocateOption - the nodeDeallocateOption value to set.
      Returns:
      the BatchNodeDeallocateContent 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<BatchNodeDeallocateContent>
      Throws:
      IOException
    • fromJson

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