Class NodePlacementConfiguration

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

public final class NodePlacementConfiguration extends Object
Node placement configuration for batch pools.

Allocation configuration used by Batch Service to provision the nodes.

  • Constructor Details

    • NodePlacementConfiguration

      public NodePlacementConfiguration()
      Creates an instance of NodePlacementConfiguration class.
  • Method Details

    • policy

      public NodePlacementPolicyType 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.