Class BatchNodeReimageContent

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

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

    • BatchNodeReimageContent

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

    • getNodeReimageOption

      public BatchNodeReimageOption getNodeReimageOption()
      Get the nodeReimageOption property: When to reimage the Compute Node and what to do with currently running Tasks. The default value is requeue.
      Returns:
      the nodeReimageOption value.
    • setNodeReimageOption

      public BatchNodeReimageContent setNodeReimageOption(BatchNodeReimageOption nodeReimageOption)
      Set the nodeReimageOption property: When to reimage the Compute Node and what to do with currently running Tasks. The default value is requeue.
      Parameters:
      nodeReimageOption - the nodeReimageOption value to set.
      Returns:
      the BatchNodeReimageContent 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<BatchNodeReimageContent>
      Throws:
      IOException
    • fromJson

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