NodePlacementConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.batch.models.NodePlacementConfiguration

Implements

public final class NodePlacementConfiguration
implements JsonSerializable<NodePlacementConfiguration>

Node placement configuration for batch pools. Allocation configuration used by Batch Service to provision the nodes.

Constructor Summary

Constructor Description
NodePlacementConfiguration()

Creates an instance of NodePlacementConfiguration class.

Method Summary

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

Reads an instance of NodePlacementConfiguration from the JsonReader.

NodePlacementPolicyType policy()

Get the policy property: Allocation policy used by Batch Service to provision the nodes.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NodePlacementConfiguration withPolicy(NodePlacementPolicyType policy)

Set the policy property: Allocation policy used by Batch Service to provision the nodes.

Methods inherited from java.lang.Object

Constructor Details

NodePlacementConfiguration

public NodePlacementConfiguration()

Creates an instance of NodePlacementConfiguration class.

Method Details

fromJson

public static NodePlacementConfiguration fromJson(JsonReader jsonReader)

Reads an instance of NodePlacementConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of NodePlacementConfiguration 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 NodePlacementConfiguration.

policy

public NodePlacementPolicyType policy()

Get the policy property: Allocation policy used by Batch Service to provision the nodes. If not specified, Batch will use the regional policy.

Returns:

the policy value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPolicy

public NodePlacementConfiguration withPolicy(NodePlacementPolicyType policy)

Set the policy property: Allocation policy used by Batch Service to provision the nodes. If not specified, Batch will use the regional policy.

Parameters:

policy - the policy value to set.

Returns:

the NodePlacementConfiguration object itself.

Applies to