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