PowerState Class

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

public final class 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.

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.

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