Aracılığıyla paylaş


RequestState Class

public final class RequestState
extends ExpandableStringEnum<RequestState>

Request status.

Field Summary

Modifier and Type Field and Description
static final RequestState ACCEPTED

Static value Accepted for RequestState.

static final RequestState CANCELED

Static value Canceled for RequestState.

static final RequestState CREATED

Static value Created for RequestState.

static final RequestState FAILED

Static value Failed for RequestState.

static final RequestState INVALID

Static value Invalid for RequestState.

static final RequestState IN_PROGRESS

Static value InProgress for RequestState.

static final RequestState SUCCEEDED

Static value Succeeded for RequestState.

Constructor Summary

Constructor Description
RequestState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of RequestState value.

Method Summary

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

Creates or finds a RequestState from its string representation.

static Collection<RequestState> values()

Gets known RequestState values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ACCEPTED

public static final RequestState ACCEPTED

Static value Accepted for RequestState.

CANCELED

public static final RequestState CANCELED

Static value Canceled for RequestState.

CREATED

public static final RequestState CREATED

Static value Created for RequestState.

FAILED

public static final RequestState FAILED

Static value Failed for RequestState.

INVALID

public static final RequestState INVALID

Static value Invalid for RequestState.

IN_PROGRESS

public static final RequestState IN_PROGRESS

Static value InProgress for RequestState.

SUCCEEDED

public static final RequestState SUCCEEDED

Static value Succeeded for RequestState.

Constructor Details

RequestState

@Deprecated
public RequestState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of RequestState value.

Method Details

fromString

public static RequestState fromString(String name)

Creates or finds a RequestState from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding RequestState.

values

public static Collection<RequestState> values()

Gets known RequestState values.

Returns:

known RequestState values.

Applies to