Class AvailabilityProperties
- java.lang.Object
-
- com.azure.resourcemanager.avs.models.AvailabilityProperties
-
public final class AvailabilityProperties extends Object
The properties describing private cloud availability zone distribution.
-
-
Constructor Summary
Constructors Constructor Description AvailabilityProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
secondaryZone()
Get the secondaryZone property: The secondary availability zone for the private cloud.AvailabilityStrategy
strategy()
Get the strategy property: The availability strategy for the private cloud.void
validate()
Validates the instance.AvailabilityProperties
withSecondaryZone(Integer secondaryZone)
Set the secondaryZone property: The secondary availability zone for the private cloud.AvailabilityProperties
withStrategy(AvailabilityStrategy strategy)
Set the strategy property: The availability strategy for the private cloud.AvailabilityProperties
withZone(Integer zone)
Set the zone property: The primary availability zone for the private cloud.Integer
zone()
Get the zone property: The primary availability zone for the private cloud.
-
-
-
Method Detail
-
strategy
public AvailabilityStrategy strategy()
Get the strategy property: The availability strategy for the private cloud.- Returns:
- the strategy value.
-
withStrategy
public AvailabilityProperties withStrategy(AvailabilityStrategy strategy)
Set the strategy property: The availability strategy for the private cloud.- Parameters:
strategy
- the strategy value to set.- Returns:
- the AvailabilityProperties object itself.
-
zone
public Integer zone()
Get the zone property: The primary availability zone for the private cloud.- Returns:
- the zone value.
-
withZone
public AvailabilityProperties withZone(Integer zone)
Set the zone property: The primary availability zone for the private cloud.- Parameters:
zone
- the zone value to set.- Returns:
- the AvailabilityProperties object itself.
-
secondaryZone
public Integer secondaryZone()
Get the secondaryZone property: The secondary availability zone for the private cloud.- Returns:
- the secondaryZone value.
-
withSecondaryZone
public AvailabilityProperties withSecondaryZone(Integer secondaryZone)
Set the secondaryZone property: The secondary availability zone for the private cloud.- Parameters:
secondaryZone
- the secondaryZone value to set.- Returns:
- the AvailabilityProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-