Class BatchNodeRebootContent

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

public final class BatchNodeRebootContent extends Object implements com.azure.json.JsonSerializable<BatchNodeRebootContent>
Parameters for rebooting an Azure Batch Compute Node.
  • Constructor Details

    • BatchNodeRebootContent

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

    • getNodeRebootOption

      public BatchNodeRebootOption getNodeRebootOption()
      Get the nodeRebootOption property: When to reboot the Compute Node and what to do with currently running Tasks. The default value is requeue.
      Returns:
      the nodeRebootOption value.
    • setNodeRebootOption

      public BatchNodeRebootContent setNodeRebootOption(BatchNodeRebootOption nodeRebootOption)
      Set the nodeRebootOption property: When to reboot the Compute Node and what to do with currently running Tasks. The default value is requeue.
      Parameters:
      nodeRebootOption - the nodeRebootOption value to set.
      Returns:
      the BatchNodeRebootContent 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<BatchNodeRebootContent>
      Throws:
      IOException
    • fromJson

      public static BatchNodeRebootContent fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of BatchNodeRebootContent from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of BatchNodeRebootContent 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 BatchNodeRebootContent.