PowerState Class
- java.
lang. Object - com.
azure. resourcemanager. containerservice. models. PowerState
- com.
Implements
public final class PowerState
implements JsonSerializable<PowerState>
Describes the Power State of the cluster.
Constructor Summary
Constructor | Description |
---|---|
PowerState() |
Creates an instance of Power |
Method Summary
Modifier and Type | Method and Description |
---|---|
Code |
code()
Get the code property: Tells whether the cluster is Running or Stopped. |
static
Power |
fromJson(JsonReader jsonReader)
Reads an instance of Power |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Power |
withCode(Code code)
Set the code property: Tells whether the cluster is Running or Stopped. |
Methods inherited from java.lang.Object
Constructor Details
PowerState
public PowerState()
Creates an instance of PowerState class.
Method Details
code
public Code code()
Get the code property: Tells whether the cluster is Running or Stopped.
Returns:
fromJson
public static PowerState fromJson(JsonReader jsonReader)
Reads an instance of PowerState from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withCode
public PowerState withCode(Code code)
Set the code property: Tells whether the cluster is Running or Stopped.
Parameters:
Returns:
Applies to
Azure SDK for Java