java.lang.Object
com.azure.resourcemanager.containerservice.models.PowerState

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

    • PowerState

      public PowerState()
  • Method Details

    • 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.