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