Package com.azure.compute.batch.models
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 Summary
ConstructorsConstructorDescriptionCreates an instance of BatchNodeDisableSchedulingContent class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BatchNodeDisableSchedulingContent from the JsonReader.Get the nodeDisableSchedulingOption property: What to do with currently running Tasks when disabling Task scheduling on the Compute Node.setNodeDisableSchedulingOption
(BatchNodeDisableSchedulingOption nodeDisableSchedulingOption) Set the nodeDisableSchedulingOption property: What to do with currently running Tasks when disabling Task scheduling on the Compute Node.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
BatchNodeDisableSchedulingContent
public BatchNodeDisableSchedulingContent()Creates an instance of BatchNodeDisableSchedulingContent class.
-
-
Method Details
-
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
- Specified by:
toJson
in interfacecom.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.
-