Class HighAvailability
java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.HighAvailability
High availability properties of a server.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmode()
Get the mode property: The HA mode for the server.Get the standbyAvailabilityZone property: availability zone information of the standby.state()
Get the state property: A state of a HA server that is visible to user.void
validate()
Validates the instance.withMode
(HighAvailabilityMode mode) Set the mode property: The HA mode for the server.withStandbyAvailabilityZone
(String standbyAvailabilityZone) Set the standbyAvailabilityZone property: availability zone information of the standby.
-
Constructor Details
-
HighAvailability
public HighAvailability()Creates an instance of HighAvailability class.
-
-
Method Details
-
mode
Get the mode property: The HA mode for the server.- Returns:
- the mode value.
-
withMode
Set the mode property: The HA mode for the server.- Parameters:
mode
- the mode value to set.- Returns:
- the HighAvailability object itself.
-
state
Get the state property: A state of a HA server that is visible to user.- Returns:
- the state value.
-
standbyAvailabilityZone
Get the standbyAvailabilityZone property: availability zone information of the standby.- Returns:
- the standbyAvailabilityZone value.
-
withStandbyAvailabilityZone
Set the standbyAvailabilityZone property: availability zone information of the standby.- Parameters:
standbyAvailabilityZone
- the standbyAvailabilityZone value to set.- Returns:
- the HighAvailability object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-