Class HighAvailability
java.lang.Object
com.azure.resourcemanager.mysqlflexibleserver.models.HighAvailability
Network related properties of a server.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmode()
Get the mode property: High availability mode for a server.Get the standbyAvailabilityZone property: Availability zone of the standby server.state()
Get the state property: The state of server high availability.void
validate()
Validates the instance.withMode
(HighAvailabilityMode mode) Set the mode property: High availability mode for a server.withStandbyAvailabilityZone
(String standbyAvailabilityZone) Set the standbyAvailabilityZone property: Availability zone of the standby server.
-
Constructor Details
-
HighAvailability
public HighAvailability()Creates an instance of HighAvailability class.
-
-
Method Details
-
mode
Get the mode property: High availability mode for a server.- Returns:
- the mode value.
-
withMode
Set the mode property: High availability mode for a server.- Parameters:
mode
- the mode value to set.- Returns:
- the HighAvailability object itself.
-
state
Get the state property: The state of server high availability.- Returns:
- the state value.
-
standbyAvailabilityZone
Get the standbyAvailabilityZone property: Availability zone of the standby server.- Returns:
- the standbyAvailabilityZone value.
-
withStandbyAvailabilityZone
Set the standbyAvailabilityZone property: Availability zone of the standby server.- 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.
-