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