java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.HighAvailability

public final class HighAvailability extends Object
High availability properties of a server.
  • Constructor Details

    • HighAvailability

      public HighAvailability()
      Creates an instance of HighAvailability class.
  • Method Details

    • mode

      public HighAvailabilityMode mode()
      Get the mode property: The HA mode for the server.
      Returns:
      the mode value.
    • withMode

      public HighAvailability withMode(HighAvailabilityMode mode)
      Set the mode property: The HA mode for the server.
      Parameters:
      mode - the mode value to set.
      Returns:
      the HighAvailability object itself.
    • state

      public ServerHAState state()
      Get the state property: A state of a HA server that is visible to user.
      Returns:
      the state value.
    • standbyAvailabilityZone

      public String standbyAvailabilityZone()
      Get the standbyAvailabilityZone property: availability zone information of the standby.
      Returns:
      the standbyAvailabilityZone value.
    • withStandbyAvailabilityZone

      public HighAvailability withStandbyAvailabilityZone(String standbyAvailabilityZone)
      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.