Class BatchNodePlacementConfiguration

java.lang.Object
com.azure.compute.batch.models.BatchNodePlacementConfiguration
All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchNodePlacementConfiguration>

public final class BatchNodePlacementConfiguration extends Object implements com.azure.json.JsonSerializable<BatchNodePlacementConfiguration>
For regional placement, nodes in the pool will be allocated in the same region. For zonal placement, nodes in the pool will be spread across different zones with best effort balancing.
  • Constructor Details

    • BatchNodePlacementConfiguration

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

    • getPolicy

      public BatchNodePlacementPolicyType getPolicy()
      Get the policy property: Node placement Policy type on Batch Pools. Allocation policy used by Batch Service to provision the nodes. If not specified, Batch will use the regional policy.
      Returns:
      the policy value.
    • setPolicy

      Set the policy property: Node placement Policy type on Batch Pools. 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 BatchNodePlacementConfiguration object itself.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<BatchNodePlacementConfiguration>
      Throws:
      IOException
    • fromJson

      public static BatchNodePlacementConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of BatchNodePlacementConfiguration from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of BatchNodePlacementConfiguration 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 BatchNodePlacementConfiguration.