| Modifier and Type | Class and Description | 
|---|---|
| static class  | SdkField.Builder<TypeT>Builder for  SdkField. | 
| Modifier and Type | Method and Description | 
|---|---|
| static <TypeT> SdkField.Builder<TypeT> | builder(MarshallingType<? super TypeT> marshallingType)Creates a new instance of  SdkField.Builderbound to the specified type. | 
| Supplier<SdkPojo> | constructor() | 
| boolean | containsTrait(Class<? extends Trait> clzz)Checks if a given  Traitis present on the field. | 
| <T extends Trait> | getOptionalTrait(Class<T> clzz)Gets the trait of the specified class if available. | 
| <T extends Trait> | getTrait(Class<T> clzz)Gets the trait of the specified class if available. | 
| TypeT | getValueOrDefault(Object pojo)Retrieves the current value of 'this' field from the given POJO. | 
| MarshallLocation | location() | 
| String | locationName() | 
| MarshallingType<? super TypeT> | marshallingType() | 
| String | memberName() | 
| void | set(Object pojo,
   Object val)Sets the given value on the POJO via the setter passed into the  SdkField.Builder. | 
| String | unmarshallLocationName() | 
public String memberName()
public MarshallingType<? super TypeT> marshallingType()
public MarshallLocation location()
public String locationName()
public String unmarshallLocationName()
locationName for both marshalling and unmarshalling.public <T extends Trait> T getTrait(Class<T> clzz)
T - Type of trait.clzz - Trait class to get.public <T extends Trait> Optional<T> getOptionalTrait(Class<T> clzz)
T - Type of trait.clzz - Trait class to get.public boolean containsTrait(Class<? extends Trait> clzz)
Trait is present on the field.clzz - Trait class to check.public TypeT getValueOrDefault(Object pojo)
SdkField.Builder. If the
 current value is null this method will look for the DefaultValueTrait on the field and attempt to resolve a default
 value. If the DefaultValueTrait is not present this just returns null.pojo - POJO to retrieve value from.public void set(Object pojo, Object val)
SdkField.Builder.pojo - POJO containing field to set.val - Value of field.public static <TypeT> SdkField.Builder<TypeT> builder(MarshallingType<? super TypeT> marshallingType)
SdkField.Builder bound to the specified type.TypeT - Type of field. Must be a subtype of the MarshallingType type param.marshallingType - Type of field.Copyright © 2021. All rights reserved.