AvailabilityProperties Class
- java.
lang. Object - com.
azure. resourcemanager. avs. models. AvailabilityProperties
- com.
Implements
public final class AvailabilityProperties
implements JsonSerializable<AvailabilityProperties>
The properties describing private cloud availability zone distribution.
Constructor Summary
Constructor | Description |
---|---|
AvailabilityProperties() |
Creates an instance of Availability |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Availability |
fromJson(JsonReader jsonReader)
Reads an instance of Availability |
Integer |
secondaryZone()
Get the secondary |
Availability |
strategy()
Get the strategy property: The availability strategy for the private cloud. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Availability |
withSecondaryZone(Integer secondaryZone)
Set the secondary |
Availability |
withStrategy(AvailabilityStrategy strategy)
Set the strategy property: The availability strategy for the private cloud. |
Availability |
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. |
Methods inherited from java.lang.Object
Constructor Details
AvailabilityProperties
public AvailabilityProperties()
Creates an instance of AvailabilityProperties class.
Method Details
fromJson
public static AvailabilityProperties fromJson(JsonReader jsonReader)
Reads an instance of AvailabilityProperties from the JsonReader.
Parameters:
Returns:
Throws:
secondaryZone
public Integer secondaryZone()
Get the secondaryZone property: The secondary availability zone for the private cloud.
Returns:
strategy
public AvailabilityStrategy strategy()
Get the strategy property: The availability strategy for the private cloud.
Returns:
toJson
validate
public void validate()
Validates the instance.
withSecondaryZone
public AvailabilityProperties withSecondaryZone(Integer secondaryZone)
Set the secondaryZone property: The secondary availability zone for the private cloud.
Parameters:
Returns:
withStrategy
public AvailabilityProperties withStrategy(AvailabilityStrategy strategy)
Set the strategy property: The availability strategy for the private cloud.
Parameters:
Returns:
withZone
public AvailabilityProperties withZone(Integer zone)
Set the zone property: The primary availability zone for the private cloud.
Parameters:
Returns:
zone
public Integer zone()
Get the zone property: The primary availability zone for the private cloud.
Returns:
Applies to
Azure SDK for Java