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 Details

    • getPoolId

      public String getPoolId()
      Get the poolId property: The ID of the Pool.
      Returns:
      the poolId value.
    • getDedicated

      public BatchNodeCounts getDedicated()
      Get the dedicated property: The number of dedicated Compute Nodes in each state.
      Returns:
      the dedicated value.
    • getLowPriority

      public BatchNodeCounts getLowPriority()
      Get the lowPriority property: The number of Spot/Low-priority Compute Nodes in each state.
      Returns:
      the lowPriority value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<BatchPoolNodeCounts>
      Throws:
      IOException
    • fromJson

      public static BatchPoolNodeCounts fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.