public static enum CreateKMORequest.KMOExpiresIn extends java.lang.Enum<CreateKMORequest.KMOExpiresIn>
Enum Constant and Description |
---|
VALID_1_YEAR |
VALID_10_YEARS |
VALID_2_YEARS |
VALID_5_YEARS |
VALID_6_MONTHS |
Modifier and Type | Method and Description |
---|---|
int |
getValidityInMonths() |
int |
getValidityInYears() |
static CreateKMORequest.KMOExpiresIn |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CreateKMORequest.KMOExpiresIn[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CreateKMORequest.KMOExpiresIn VALID_6_MONTHS
public static final CreateKMORequest.KMOExpiresIn VALID_1_YEAR
public static final CreateKMORequest.KMOExpiresIn VALID_2_YEARS
public static final CreateKMORequest.KMOExpiresIn VALID_5_YEARS
public static final CreateKMORequest.KMOExpiresIn VALID_10_YEARS
public static CreateKMORequest.KMOExpiresIn[] values()
for (CreateKMORequest.KMOExpiresIn c : CreateKMORequest.KMOExpiresIn.values()) System.out.println(c);
public static CreateKMORequest.KMOExpiresIn valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValidityInMonths()
public int getValidityInYears()