Package com.azure.compute.batch.models
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 Summary
ConstructorsConstructorDescriptionCreates an instance of BatchNodeDeallocateContent class. -
Method Summary
Modifier and TypeMethodDescriptionstatic BatchNodeDeallocateContentfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BatchNodeDeallocateContent from the JsonReader.Get the nodeDeallocateOption property: When to deallocate the Compute Node and what to do with currently running Tasks.setNodeDeallocateOption(BatchNodeDeallocateOption nodeDeallocateOption) Set the nodeDeallocateOption property: When to deallocate the Compute Node and what to do with currently running Tasks.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
BatchNodeDeallocateContent
public BatchNodeDeallocateContent()Creates an instance of BatchNodeDeallocateContent class.
-
-
Method Details
-
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
- Specified by:
toJsonin interfacecom.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.
-