Class PowerState


  • public final class PowerState
    extends Object
    Describes the Power State of the cluster.
    • Constructor Detail

      • PowerState

        public PowerState()
    • Method Detail

      • code

        public Code code()
        Get the code property: Tells whether the cluster is Running or Stopped.
        Returns:
        the code value.
      • withCode

        public PowerState withCode​(Code code)
        Set the code property: Tells whether the cluster is Running or Stopped.
        Parameters:
        code - the code value to set.
        Returns:
        the PowerState object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.