Package com.azure.compute.batch.models
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 Summary
ConstructorsConstructorDescriptionCreates an instance of BatchNodePlacementConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BatchNodePlacementConfiguration from the JsonReader.Get the policy property: Node placement Policy type on Batch Pools.Set the policy property: Node placement Policy type on Batch Pools.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
BatchNodePlacementConfiguration
public BatchNodePlacementConfiguration()Creates an instance of BatchNodePlacementConfiguration class.
-
-
Method Details
-
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
- Specified by:
toJson
in interfacecom.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.
-