Class ListTrait

java.lang.Object
software.amazon.awssdk.core.traits.ListTrait
All Implemented Interfaces:
Trait

public final class ListTrait extends Object implements Trait
Trait that includes additional metadata about List members.
  • Method Details

    • memberLocationName

      public String memberLocationName()
      Location name of member, this is typically only used for XML based protocols which use separate tags for each item. This is not used for JSON and JSON-like protocols.
      Returns:
      Member location name.
    • memberFieldInfo

      public SdkField memberFieldInfo()
      Returns:
      Metadata about the items this list contains. May be further nested in the case of complex nested containers.
    • isFlattened

      public boolean isFlattened()
      Returns:
      Whether the list should be marshalled/unmarshalled as a 'flattened' list. This only applies to Query/XML protocols.
    • builder

      public static ListTrait.Builder builder()
    • type

      public TraitType type()
      Description copied from interface: Trait
      The known trait type. This is correctly implemented and uniquely mapped to the enum values which allow us to create enum maps for trait known trait types.
      Specified by:
      type in interface Trait