Class HighAvailability


  • public final class HighAvailability
    extends Object
    Network related properties of a server.
    • Constructor Detail

      • HighAvailability

        public HighAvailability()
    • 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.