Enum TraitType
- java.lang.Object
-
- java.lang.Enum<TraitType>
-
- software.amazon.awssdk.core.traits.TraitType
-
- All Implemented Interfaces:
Serializable,Comparable<TraitType>
@SdkProtectedApi public enum TraitType extends Enum<TraitType>
Enumerates all the know traits. This enum is used to use EnumMap's for fast lookup of traits.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATA_TYPE_CONVERSION_FAILURE_HANDLING_TRAITDEFAULT_VALUE_TRAITJSON_VALUE_TRAITLIST_TRAITLOCATION_TRAITMAP_TRAITPAYLOAD_TRAITREQUIRED_TRAITTIMESTAMP_FORMAT_TRAITXML_ATTRIBUTE_TRAITXML_ATTRIBUTES_TRAIT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TraitTypefrom(Class<?> clazz)Returns the type for the given class.static TraitTypevalueOf(String name)Returns the enum constant of this type with the specified name.static TraitType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DATA_TYPE_CONVERSION_FAILURE_HANDLING_TRAIT
public static final TraitType DATA_TYPE_CONVERSION_FAILURE_HANDLING_TRAIT
-
DEFAULT_VALUE_TRAIT
public static final TraitType DEFAULT_VALUE_TRAIT
-
JSON_VALUE_TRAIT
public static final TraitType JSON_VALUE_TRAIT
-
LIST_TRAIT
public static final TraitType LIST_TRAIT
-
LOCATION_TRAIT
public static final TraitType LOCATION_TRAIT
-
MAP_TRAIT
public static final TraitType MAP_TRAIT
-
PAYLOAD_TRAIT
public static final TraitType PAYLOAD_TRAIT
-
REQUIRED_TRAIT
public static final TraitType REQUIRED_TRAIT
-
TIMESTAMP_FORMAT_TRAIT
public static final TraitType TIMESTAMP_FORMAT_TRAIT
-
XML_ATTRIBUTE_TRAIT
public static final TraitType XML_ATTRIBUTE_TRAIT
-
XML_ATTRIBUTES_TRAIT
public static final TraitType XML_ATTRIBUTES_TRAIT
-
-
Method Detail
-
values
public static TraitType[] 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 (TraitType c : TraitType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TraitType 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
-
-