Code Class

public final class Code
extends ExpandableStringEnum<Code>

Tells whether the cluster is Running or Stopped.

Field Summary

Modifier and Type Field and Description
static final Code RUNNING

Static value Running for Code.

static final Code STOPPED

Static value Stopped for Code.

Constructor Summary

Constructor Description
Code()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of Code value.

Method Summary

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

Creates or finds a Code from its string representation.

static Collection<Code> values()

Gets known Code values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

RUNNING

public static final Code RUNNING

Static value Running for Code.

STOPPED

public static final Code STOPPED

Static value Stopped for Code.

Constructor Details

Code

@Deprecated
public Code()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of Code value.

Method Details

fromString

public static Code fromString(String name)

Creates or finds a Code from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding Code.

values

public static Collection values()

Gets known Code values.

Returns:

known Code values.

Applies to