NodePlacementConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. batch. models. NodePlacementConfiguration
- com.
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 Node |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Node |
fromJson(JsonReader jsonReader)
Reads an instance of Node |
Node |
policy()
Get the policy property: Allocation policy used by Batch Service to provision the nodes. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Node |
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:
Returns:
Throws:
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:
toJson
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:
Returns:
Applies to
Azure SDK for Java