LeaseDuration Class

public final class LeaseDuration
extends ExpandableStringEnum<LeaseDuration>

Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased.

Field Summary

Modifier and Type Field and Description
static final LeaseDuration FIXED

Static value Fixed for LeaseDuration.

static final LeaseDuration INFINITE

Static value Infinite for LeaseDuration.

Constructor Summary

Constructor Description
LeaseDuration()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of LeaseDuration value.

Method Summary

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

Creates or finds a LeaseDuration from its string representation.

static Collection<LeaseDuration> values()

Gets known LeaseDuration values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

FIXED

public static final LeaseDuration FIXED

Static value Fixed for LeaseDuration.

INFINITE

public static final LeaseDuration INFINITE

Static value Infinite for LeaseDuration.

Constructor Details

LeaseDuration

@Deprecated
public LeaseDuration()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of LeaseDuration value.

Method Details

fromString

public static LeaseDuration fromString(String name)

Creates or finds a LeaseDuration from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding LeaseDuration.

values

public static Collection values()

Gets known LeaseDuration values.

Returns:

known LeaseDuration values.

Applies to