Class LocationTrait
- java.lang.Object
-
- software.amazon.awssdk.core.traits.LocationTrait
-
- All Implemented Interfaces:
Trait
@SdkProtectedApi public final class LocationTrait extends Object implements Trait
Trait to include metadata about the marshalling/unmarshalling location (i.e. headers/payload/etc).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLocationTrait.BuilderBuilder forLocationTrait.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LocationTrait.Builderbuilder()MarshallLocationlocation()StringlocationName()TraitTypetype()The known trait type.StringunmarshallLocationName()
-
-
-
Method Detail
-
location
public MarshallLocation location()
- Returns:
- Location of member (i.e. headers/query/path/payload).
-
locationName
public String locationName()
- Returns:
- Location name of member. I.E. the header or query param name, or the JSON field name, etc.
-
unmarshallLocationName
public String unmarshallLocationName()
- Returns:
- Location name for unmarshalling. This is only needed for the legacy EC2 protocol which has different serialization/deserialization for the same fields.
-
type
public TraitType type()
Description copied from interface:TraitThe 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.
-
builder
public static LocationTrait.Builder builder()
- Returns:
- Builder instance.
-
-