Package com.azure.compute.batch.models
Class BatchPoolNodeCounts
java.lang.Object
com.azure.compute.batch.models.BatchPoolNodeCounts
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchPoolNodeCounts>
public final class BatchPoolNodeCounts
extends Object
implements com.azure.json.JsonSerializable<BatchPoolNodeCounts>
The number of Compute Nodes in each state for a Pool.
-
Method Summary
Modifier and TypeMethodDescriptionstatic BatchPoolNodeCounts
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BatchPoolNodeCounts from the JsonReader.Get the dedicated property: The number of dedicated Compute Nodes in each state.Get the lowPriority property: The number of Spot/Low-priority Compute Nodes in each state.Get the poolId property: The ID of the Pool.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
-
Method Details
-
getPoolId
Get the poolId property: The ID of the Pool.- Returns:
- the poolId value.
-
getDedicated
Get the dedicated property: The number of dedicated Compute Nodes in each state.- Returns:
- the dedicated value.
-
getLowPriority
Get the lowPriority property: The number of Spot/Low-priority Compute Nodes in each state.- Returns:
- the lowPriority value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<BatchPoolNodeCounts>
- Throws:
IOException
-
fromJson
Reads an instance of BatchPoolNodeCounts from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of BatchPoolNodeCounts 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 BatchPoolNodeCounts.
-