PowerState Class

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

Implements

public final class PowerState
implements JsonSerializable<PowerState>

Describes the Power State of the cluster.

Constructor Summary

Constructor Description
PowerState()

Creates an instance of PowerState class.

Method Summary

Modifier and Type Method and Description
Code code()

Get the code property: Tells whether the cluster is Running or Stopped.

static PowerState fromJson(JsonReader jsonReader)

Reads an instance of PowerState from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PowerState 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:

the code value.

fromJson

public static PowerState fromJson(JsonReader jsonReader)

Reads an instance of PowerState from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PowerState if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the PowerState.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

code - the code value to set.

Returns:

the PowerState object itself.

Applies to