PowerState Class

public final class PowerState
extends ExpandableStringEnum<PowerState>

The power states of a Dev Box.

Field Summary

Modifier and Type Field and Description
static final PowerState DEALLOCATED

The Dev Box is deallocated.

static final PowerState HIBERNATED

The Dev Box is hibernated.

static final PowerState POWERED_OFF

The Dev Box is powered off.

static final PowerState RUNNING

The Dev Box is running.

static final PowerState UNKNOWN

The Dev Box power state is not known.

Constructor Summary

Constructor Description
PowerState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PowerState value.

Method Summary

Modifier and Type Method and Description
static PowerState fromString(String name)

Creates or finds a PowerState from its string representation.

static Collection<PowerState> values()

Gets known PowerState values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DEALLOCATED

public static final PowerState DEALLOCATED

The Dev Box is deallocated.

HIBERNATED

public static final PowerState HIBERNATED

The Dev Box is hibernated.

POWERED_OFF

public static final PowerState POWERED_OFF

The Dev Box is powered off.

RUNNING

public static final PowerState RUNNING

The Dev Box is running.

UNKNOWN

public static final PowerState UNKNOWN

The Dev Box power state is not known.

Constructor Details

PowerState

@Deprecated
public PowerState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PowerState value.

Method Details

fromString

public static PowerState fromString(String name)

Creates or finds a PowerState from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding PowerState.

values

public static Collection<PowerState> values()

Gets known PowerState values.

Returns:

known PowerState values.

Applies to