public final class HighAvailability extends Object
| Constructor and Description |
|---|
HighAvailability() |
| Modifier and Type | Method and Description |
|---|---|
HighAvailabilityMode |
mode()
Get the mode property: The HA mode for the server.
|
String |
standbyAvailabilityZone()
Get the standbyAvailabilityZone property: availability zone information of the standby.
|
ServerHAState |
state()
Get the state property: A state of a HA server that is visible to user.
|
void |
validate()
Validates the instance.
|
HighAvailability |
withMode(HighAvailabilityMode mode)
Set the mode property: The HA mode for the server.
|
HighAvailability |
withStandbyAvailabilityZone(String standbyAvailabilityZone)
Set the standbyAvailabilityZone property: availability zone information of the standby.
|
public HighAvailabilityMode mode()
public HighAvailability withMode(HighAvailabilityMode mode)
mode - the mode value to set.public ServerHAState state()
public String standbyAvailabilityZone()
public HighAvailability withStandbyAvailabilityZone(String standbyAvailabilityZone)
standbyAvailabilityZone - the standbyAvailabilityZone value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.