Package com.azure.compute.batch.models
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 Summary
ConstructorsConstructorDescriptionCreates an instance of BatchNodeReimageContent class. -
Method Summary
Modifier and TypeMethodDescriptionstatic BatchNodeReimageContent
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BatchNodeReimageContent from the JsonReader.Get the nodeReimageOption property: When to reimage the Compute Node and what to do with currently running Tasks.setNodeReimageOption
(BatchNodeReimageOption nodeReimageOption) Set the nodeReimageOption property: When to reimage the Compute Node and what to do with currently running Tasks.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
-
BatchNodeReimageContent
public BatchNodeReimageContent()Creates an instance of BatchNodeReimageContent class.
-
-
Method Details
-
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
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
- Specified by:
toJson
in interfacecom.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.
-