public enum LeaseDuration extends Enum<LeaseDuration>
Enum Constant and Description |
---|
FIXED
The lease duration is finite.
|
INFINITE
The lease duration is infinite.
|
UNSPECIFIED
The lease duration is not specified.
|
Modifier and Type | Method and Description |
---|---|
static LeaseDuration |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LeaseDuration[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LeaseDuration UNSPECIFIED
public static final LeaseDuration FIXED
public static final LeaseDuration INFINITE
public static LeaseDuration[] values()
for (LeaseDuration c : LeaseDuration.values()) System.out.println(c);
public static LeaseDuration valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2018. All Rights Reserved.