ApiKey Class

public final class ApiKey
extends ExpandableStringEnum<ApiKey>

Defines values for ApiKey.

Field Summary

Modifier and Type Field and Description
static final ApiKey DISABLED

Static value Disabled for ApiKey.

static final ApiKey ENABLED

Static value Enabled for ApiKey.

Constructor Summary

Constructor Description
ApiKey()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ApiKey value.

Method Summary

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

Creates or finds a ApiKey from its string representation.

static Collection<ApiKey> values()

Gets known ApiKey values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DISABLED

public static final ApiKey DISABLED

Static value Disabled for ApiKey.

ENABLED

public static final ApiKey ENABLED

Static value Enabled for ApiKey.

Constructor Details

ApiKey

@Deprecated
public ApiKey()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ApiKey value.

Method Details

fromString

public static ApiKey fromString(String name)

Creates or finds a ApiKey from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding ApiKey.

values

public static Collection<ApiKey> values()

Gets known ApiKey values.

Returns:

known ApiKey values.

Applies to