Share via


BatchPoolNodeCounts Class

  • java.lang.Object
    • com.azure.compute.batch.models.BatchPoolNodeCounts

Implements

public final class BatchPoolNodeCounts
implements JsonSerializable<BatchPoolNodeCounts>

The number of Compute Nodes in each state for a Pool.

Method Summary

Modifier and Type Method and Description
static BatchPoolNodeCounts fromJson(JsonReader jsonReader)

Reads an instance of BatchPoolNodeCounts from the JsonReader.

BatchNodeCounts getDedicated()

Get the dedicated property: The number of dedicated Compute Nodes in each state.

BatchNodeCounts getLowPriority()

Get the lowPriority property: The number of Spot/Low-priority Compute Nodes in each state.

String getPoolId()

Get the poolId property: The ID of the Pool.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static BatchPoolNodeCounts fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

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.

getPoolId

public String getPoolId()

Get the poolId property: The ID of the Pool.

Returns:

the poolId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to