ZoneAllocationPolicy Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. ZoneAllocationPolicy
- com.
Implements
public final class ZoneAllocationPolicy
implements JsonSerializable<ZoneAllocationPolicy>
The configuration parameters for zone allocation of a virtual machine scale set.
Constructor Summary
| Constructor | Description |
|---|---|
| ZoneAllocationPolicy() |
Creates an instance of Zone |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Zone |
fromJson(JsonReader jsonReader)
Reads an instance of Zone |
|
Max |
maxInstancePercentPerZonePolicy()
Get the max |
| Integer |
maxZoneCount()
Get the max |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Zone |
withMaxInstancePercentPerZonePolicy(MaxInstancePercentPerZonePolicy maxInstancePercentPerZonePolicy)
Set the max |
|
Zone |
withMaxZoneCount(Integer maxZoneCount)
Set the max |
Methods inherited from java.lang.Object
Constructor Details
ZoneAllocationPolicy
public ZoneAllocationPolicy()
Creates an instance of ZoneAllocationPolicy class.
Method Details
fromJson
public static ZoneAllocationPolicy fromJson(JsonReader jsonReader)
Reads an instance of ZoneAllocationPolicy from the JsonReader.
Parameters:
Returns:
Throws:
maxInstancePercentPerZonePolicy
public MaxInstancePercentPerZonePolicy maxInstancePercentPerZonePolicy()
Get the maxInstancePercentPerZonePolicy property: The configuration parameters used to limit the number of virtual machines per availability zone in the virtual machine scale set.
Returns:
maxZoneCount
public Integer maxZoneCount()
Get the maxZoneCount property: The maximum number of availability zones to use if the ZonePlacementPolicy is 'Auto'. If not specified, all availability zones will be used.
Returns:
toJson
validate
public void validate()
Validates the instance.
withMaxInstancePercentPerZonePolicy
public ZoneAllocationPolicy withMaxInstancePercentPerZonePolicy(MaxInstancePercentPerZonePolicy maxInstancePercentPerZonePolicy)
Set the maxInstancePercentPerZonePolicy property: The configuration parameters used to limit the number of virtual machines per availability zone in the virtual machine scale set.
Parameters:
Returns:
withMaxZoneCount
public ZoneAllocationPolicy withMaxZoneCount(Integer maxZoneCount)
Set the maxZoneCount property: The maximum number of availability zones to use if the ZonePlacementPolicy is 'Auto'. If not specified, all availability zones will be used.
Parameters:
Returns: