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 |
|---|---|
protected static LeaseDuration |
parse(String typeString)
Parses a lease duration from the specified string.
|
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 nullprotected static LeaseDuration parse(String typeString)
typeString - A String which contains the lease duration to parse.LeaseStatus value that represents the lease status.Copyright © 2019. All rights reserved.