| 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.Builder bound to the specified type. | 
Supplier<SdkPojo> | 
constructor()  | 
boolean | 
containsTrait(Class<? extends Trait> clzz)
Checks if a given  
Trait is 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()  | 
void | 
set(Object pojo,
   Object val)
Sets the given value on the POJO via the setter passed into the  
SdkField.Builder. | 
String | 
unmarshallLocationName()  | 
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 © 2017 Amazon Web Services, Inc. All Rights Reserved.