Enum RetentionPeriod
- java.lang.Object
-
- java.lang.Enum<RetentionPeriod>
-
- software.amazon.awssdk.services.mailmanager.model.RetentionPeriod
-
- All Implemented Interfaces:
Serializable,Comparable<RetentionPeriod>
@Generated("software.amazon.awssdk:codegen") public enum RetentionPeriod extends Enum<RetentionPeriod>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EIGHT_YEARSEIGHTEEN_MONTHSFIVE_YEARSFOUR_YEARSNINE_MONTHSNINE_YEARSONE_YEARPERMANENTSEVEN_YEARSSIX_MONTHSSIX_YEARSTEN_YEARSTHIRTY_MONTHSTHREE_MONTHSTHREE_YEARSTWO_YEARSUNKNOWN_TO_SDK_VERSION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RetentionPeriodfromValue(String value)Use this in place of valueOf to convert the raw string returned by the service into the enum value.static Set<RetentionPeriod>knownValues()StringtoString()static RetentionPeriodvalueOf(String name)Returns the enum constant of this type with the specified name.static RetentionPeriod[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
THREE_MONTHS
public static final RetentionPeriod THREE_MONTHS
-
SIX_MONTHS
public static final RetentionPeriod SIX_MONTHS
-
NINE_MONTHS
public static final RetentionPeriod NINE_MONTHS
-
ONE_YEAR
public static final RetentionPeriod ONE_YEAR
-
EIGHTEEN_MONTHS
public static final RetentionPeriod EIGHTEEN_MONTHS
-
TWO_YEARS
public static final RetentionPeriod TWO_YEARS
-
THIRTY_MONTHS
public static final RetentionPeriod THIRTY_MONTHS
-
THREE_YEARS
public static final RetentionPeriod THREE_YEARS
-
FOUR_YEARS
public static final RetentionPeriod FOUR_YEARS
-
FIVE_YEARS
public static final RetentionPeriod FIVE_YEARS
-
SIX_YEARS
public static final RetentionPeriod SIX_YEARS
-
SEVEN_YEARS
public static final RetentionPeriod SEVEN_YEARS
-
EIGHT_YEARS
public static final RetentionPeriod EIGHT_YEARS
-
NINE_YEARS
public static final RetentionPeriod NINE_YEARS
-
TEN_YEARS
public static final RetentionPeriod TEN_YEARS
-
PERMANENT
public static final RetentionPeriod PERMANENT
-
UNKNOWN_TO_SDK_VERSION
public static final RetentionPeriod UNKNOWN_TO_SDK_VERSION
-
-
Method Detail
-
values
public static RetentionPeriod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RetentionPeriod c : RetentionPeriod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RetentionPeriod valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
public String toString()
- Overrides:
toStringin classEnum<RetentionPeriod>
-
fromValue
public static RetentionPeriod fromValue(String value)
Use this in place of valueOf to convert the raw string returned by the service into the enum value.- Parameters:
value- real value- Returns:
- RetentionPeriod corresponding to the value
-
knownValues
public static Set<RetentionPeriod> knownValues()
Use this in place ofvalues()to return aSetof all values known to the SDK. This will return all known enum values exceptUNKNOWN_TO_SDK_VERSION.- Returns:
- a
Setof knownRetentionPeriods
-
-