Class PowerState
- java.lang.Object
-
- com.azure.resourcemanager.containerservice.models.PowerState
-
public final class PowerState extends Object
Describes the Power State of the cluster.
-
-
Constructor Summary
Constructors Constructor Description PowerState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Codecode()Get the code property: Tells whether the cluster is Running or Stopped.voidvalidate()Validates the instance.PowerStatewithCode(Code code)Set the code property: Tells whether the cluster is Running or Stopped.
-
-
-
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.
-
-