State Class

public final class State
extends ExpandableStringEnum<State>

The state of the resource.

Field Summary

Modifier and Type Field and Description
static final State CREATING

Static value Creating for State.

static final State DELETED

Static value Deleted for State.

static final State DELETING

Static value Deleting for State.

static final State RUNNING

Static value Running for State.

static final State STARTING

Static value Starting for State.

static final State STOPPED

Static value Stopped for State.

static final State STOPPING

Static value Stopping for State.

static final State UNAVAILABLE

Static value Unavailable for State.

static final State UPDATING

Static value Updating for State.

Constructor Summary

Constructor Description
State()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of State value.

Method Summary

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

Creates or finds a State from its string representation.

static Collection<State> values()

Gets known State values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

CREATING

public static final State CREATING

Static value Creating for State.

DELETED

public static final State DELETED

Static value Deleted for State.

DELETING

public static final State DELETING

Static value Deleting for State.

RUNNING

public static final State RUNNING

Static value Running for State.

STARTING

public static final State STARTING

Static value Starting for State.

STOPPED

public static final State STOPPED

Static value Stopped for State.

STOPPING

public static final State STOPPING

Static value Stopping for State.

UNAVAILABLE

public static final State UNAVAILABLE

Static value Unavailable for State.

UPDATING

public static final State UPDATING

Static value Updating for State.

Constructor Details

State

@Deprecated
public State()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of State value.

Method Details

fromString

public static State fromString(String name)

Creates or finds a State from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding State.

values

public static Collection values()

Gets known State values.

Returns:

known State values.

Applies to