Class NodePlacementConfiguration
java.lang.Object
com.azure.resourcemanager.batch.models.NodePlacementConfiguration
Node placement configuration for batch pools.
Allocation configuration used by Batch Service to provision the nodes.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NodePlacementConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionpolicy()Get the policy property: The placement policy for allocating nodes in the pool.voidvalidate()Validates the instance.withPolicy(NodePlacementPolicyType policy) Set the policy property: The placement policy for allocating nodes in the pool.
-
Constructor Details
-
NodePlacementConfiguration
public NodePlacementConfiguration()Creates an instance of NodePlacementConfiguration class.
-
-
Method Details
-
policy
Get the policy property: The placement policy for allocating nodes in the pool. Allocation policy used by Batch Service to provision the nodes. If not specified, Batch will use the regional policy.- Returns:
- the policy value.
-
withPolicy
Set the policy property: The placement policy for allocating nodes in the pool. 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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-