AutomaticZoneRebalancingPolicy Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. AutomaticZoneRebalancingPolicy
- com.
Implements
public final class AutomaticZoneRebalancingPolicy
implements JsonSerializable<AutomaticZoneRebalancingPolicy>
The configuration parameters used while performing automatic AZ balancing.
Constructor Summary
Constructor | Description |
---|---|
AutomaticZoneRebalancingPolicy() |
Creates an instance of Automatic |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
enabled()
Get the enabled property: Specifies whether Automatic AZ Balancing should be enabled on the virtual machine scale set. |
static
Automatic |
fromJson(JsonReader jsonReader)
Reads an instance of Automatic |
Rebalance |
rebalanceBehavior()
Get the rebalance |
Rebalance |
rebalanceStrategy()
Get the rebalance |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Automatic |
withEnabled(Boolean enabled)
Set the enabled property: Specifies whether Automatic AZ Balancing should be enabled on the virtual machine scale set. |
Automatic |
withRebalanceBehavior(RebalanceBehavior rebalanceBehavior)
Set the rebalance |
Automatic |
withRebalanceStrategy(RebalanceStrategy rebalanceStrategy)
Set the rebalance |
Methods inherited from java.lang.Object
Constructor Details
AutomaticZoneRebalancingPolicy
public AutomaticZoneRebalancingPolicy()
Creates an instance of AutomaticZoneRebalancingPolicy class.
Method Details
enabled
public Boolean enabled()
Get the enabled property: Specifies whether Automatic AZ Balancing should be enabled on the virtual machine scale set. The default value is false.
Returns:
fromJson
public static AutomaticZoneRebalancingPolicy fromJson(JsonReader jsonReader)
Reads an instance of AutomaticZoneRebalancingPolicy from the JsonReader.
Parameters:
Returns:
Throws:
rebalanceBehavior
public RebalanceBehavior rebalanceBehavior()
Get the rebalanceBehavior property: Type of rebalance behavior that will be used for recreating virtual machines in the scale set across availability zones. Default and only supported value for now is CreateBeforeDelete.
Returns:
rebalanceStrategy
public RebalanceStrategy rebalanceStrategy()
Get the rebalanceStrategy property: Type of rebalance strategy that will be used for rebalancing virtual machines in the scale set across availability zones. Default and only supported value for now is Recreate.
Returns:
toJson
validate
public void validate()
Validates the instance.
withEnabled
public AutomaticZoneRebalancingPolicy withEnabled(Boolean enabled)
Set the enabled property: Specifies whether Automatic AZ Balancing should be enabled on the virtual machine scale set. The default value is false.
Parameters:
Returns:
withRebalanceBehavior
public AutomaticZoneRebalancingPolicy withRebalanceBehavior(RebalanceBehavior rebalanceBehavior)
Set the rebalanceBehavior property: Type of rebalance behavior that will be used for recreating virtual machines in the scale set across availability zones. Default and only supported value for now is CreateBeforeDelete.
Parameters:
Returns:
withRebalanceStrategy
public AutomaticZoneRebalancingPolicy withRebalanceStrategy(RebalanceStrategy rebalanceStrategy)
Set the rebalanceStrategy property: Type of rebalance strategy that will be used for rebalancing virtual machines in the scale set across availability zones. Default and only supported value for now is Recreate.
Parameters:
Returns: