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