Package com.azure.compute.batch.models
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 Summary
ConstructorsConstructorDescriptionCreates an instance of BatchNodeRebootContent class. -
Method Summary
Modifier and TypeMethodDescriptionstatic BatchNodeRebootContentfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BatchNodeRebootContent from the JsonReader.Get the nodeRebootOption property: When to reboot the Compute Node and what to do with currently running Tasks.setNodeRebootOption(BatchNodeRebootOption nodeRebootOption) Set the nodeRebootOption property: When to reboot 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
-
BatchNodeRebootContent
public BatchNodeRebootContent()Creates an instance of BatchNodeRebootContent class.
-
-
Method Details
-
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
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
- Specified by:
toJsonin interfacecom.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.
-