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 Details

    • 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 Details

    • values

      public static TraitType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      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 name
      NullPointerException - if the argument is null
    • from

      public static TraitType from(Class<?> clazz)
      Returns the type for the given class.