Class BatchNodeDisableSchedulingContent

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

public final class BatchNodeDisableSchedulingContent extends Object implements com.azure.json.JsonSerializable<BatchNodeDisableSchedulingContent>
Parameters for disabling scheduling on an Azure Batch Compute Node.
  • Constructor Details

    • BatchNodeDisableSchedulingContent

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

    • getNodeDisableSchedulingOption

      public BatchNodeDisableSchedulingOption getNodeDisableSchedulingOption()
      Get the nodeDisableSchedulingOption property: What to do with currently running Tasks when disabling Task scheduling on the Compute Node. The default value is requeue.
      Returns:
      the nodeDisableSchedulingOption value.
    • setNodeDisableSchedulingOption

      public BatchNodeDisableSchedulingContent setNodeDisableSchedulingOption(BatchNodeDisableSchedulingOption nodeDisableSchedulingOption)
      Set the nodeDisableSchedulingOption property: What to do with currently running Tasks when disabling Task scheduling on the Compute Node. The default value is requeue.
      Parameters:
      nodeDisableSchedulingOption - the nodeDisableSchedulingOption value to set.
      Returns:
      the BatchNodeDisableSchedulingContent 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<BatchNodeDisableSchedulingContent>
      Throws:
      IOException
    • fromJson

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