Package com.azure.compute.batch.models
Class BatchNodeRemoveContent
java.lang.Object
com.azure.compute.batch.models.BatchNodeRemoveContent
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchNodeRemoveContent>
public final class BatchNodeRemoveContent
extends Object
implements com.azure.json.JsonSerializable<BatchNodeRemoveContent>
Parameters for removing nodes from an Azure Batch Pool.
-
Constructor Summary
ConstructorsConstructorDescriptionBatchNodeRemoveContent(List<String> nodeList) Creates an instance of BatchNodeRemoveContent class. -
Method Summary
Modifier and TypeMethodDescriptionstatic BatchNodeRemoveContentfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BatchNodeRemoveContent from the JsonReader.Get the nodeDeallocationOption property: Determines what to do with a Compute Node and its running task(s) after it has been selected for deallocation.Get the nodeList property: A list containing the IDs of the Compute Nodes to be removed from the specified Pool.Get the resizeTimeout property: The timeout for removal of Compute Nodes to the Pool.setNodeDeallocationOption(BatchNodeDeallocationOption nodeDeallocationOption) Set the nodeDeallocationOption property: Determines what to do with a Compute Node and its running task(s) after it has been selected for deallocation.setResizeTimeout(Duration resizeTimeout) Set the resizeTimeout property: The timeout for removal of Compute Nodes to the Pool.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
-
BatchNodeRemoveContent
Creates an instance of BatchNodeRemoveContent class.- Parameters:
nodeList- the nodeList value to set.
-
-
Method Details
-
getNodeList
Get the nodeList property: A list containing the IDs of the Compute Nodes to be removed from the specified Pool. A maximum of 100 nodes may be removed per request.- Returns:
- the nodeList value.
-
getResizeTimeout
Get the resizeTimeout property: The timeout for removal of Compute Nodes to the Pool. The default value is 15 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).- Returns:
- the resizeTimeout value.
-
setResizeTimeout
Set the resizeTimeout property: The timeout for removal of Compute Nodes to the Pool. The default value is 15 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).- Parameters:
resizeTimeout- the resizeTimeout value to set.- Returns:
- the BatchNodeRemoveContent object itself.
-
getNodeDeallocationOption
Get the nodeDeallocationOption property: Determines what to do with a Compute Node and its running task(s) after it has been selected for deallocation. The default value is requeue.- Returns:
- the nodeDeallocationOption value.
-
setNodeDeallocationOption
public BatchNodeRemoveContent setNodeDeallocationOption(BatchNodeDeallocationOption nodeDeallocationOption) Set the nodeDeallocationOption property: Determines what to do with a Compute Node and its running task(s) after it has been selected for deallocation. The default value is requeue.- Parameters:
nodeDeallocationOption- the nodeDeallocationOption value to set.- Returns:
- the BatchNodeRemoveContent object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BatchNodeRemoveContent>- Throws:
IOException
-
fromJson
public static BatchNodeRemoveContent fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BatchNodeRemoveContent from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BatchNodeRemoveContent if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the BatchNodeRemoveContent.
-