LeaseStatus Class

public final class LeaseStatus
extends ExpandableStringEnum<LeaseStatus>

The lease status of the container.

Field Summary

Modifier and Type Field and Description
static final LeaseStatus LOCKED

Static value Locked for LeaseStatus.

static final LeaseStatus UNLOCKED

Static value Unlocked for LeaseStatus.

Constructor Summary

Constructor Description
LeaseStatus()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of LeaseStatus value.

Method Summary

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

Creates or finds a LeaseStatus from its string representation.

static Collection<LeaseStatus> values()

Gets known LeaseStatus values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

LOCKED

public static final LeaseStatus LOCKED

Static value Locked for LeaseStatus.

UNLOCKED

public static final LeaseStatus UNLOCKED

Static value Unlocked for LeaseStatus.

Constructor Details

LeaseStatus

@Deprecated
public LeaseStatus()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of LeaseStatus value.

Method Details

fromString

public static LeaseStatus fromString(String name)

Creates or finds a LeaseStatus from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding LeaseStatus.

values

public static Collection values()

Gets known LeaseStatus values.

Returns:

known LeaseStatus values.

Applies to