@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public enum RetentionPeriodType extends Enum<RetentionPeriodType>
Enum Constant and Description |
---|
DAYS |
HOURS |
INFINITE |
MINUTES |
MONTHS |
SECONDS |
UNSPECIFIED |
YEARS |
Modifier and Type | Method and Description |
---|---|
static RetentionPeriodType |
fromValue(String value)
Use this in place of valueOf.
|
String |
toString() |
static RetentionPeriodType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RetentionPeriodType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RetentionPeriodType SECONDS
public static final RetentionPeriodType MINUTES
public static final RetentionPeriodType HOURS
public static final RetentionPeriodType DAYS
public static final RetentionPeriodType MONTHS
public static final RetentionPeriodType YEARS
public static final RetentionPeriodType INFINITE
public static final RetentionPeriodType UNSPECIFIED
public static RetentionPeriodType[] values()
for (RetentionPeriodType c : RetentionPeriodType.values()) System.out.println(c);
public static RetentionPeriodType 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 nullpublic String toString()
toString
in class Enum<RetentionPeriodType>
public static RetentionPeriodType fromValue(String value)
value
- real valueIllegalArgumentException
- If the specified value does not map to one of the known values in this enum.