public class JsonMarshallerContext extends Object
JsonMarshaller
.Modifier and Type | Class and Description |
---|---|
static class |
JsonMarshallerContext.Builder
Builder for a
JsonMarshallerContext . |
Modifier and Type | Method and Description |
---|---|
static JsonMarshallerContext.Builder |
builder() |
StructuredJsonGenerator |
jsonGenerator() |
void |
marshall(MarshallLocation marshallLocation,
Object val)
Convenience method to marshall a nested object (may be simple or structured) at the given location.
|
void |
marshall(MarshallLocation marshallLocation,
Object val,
String paramName)
Convenience method to marshall a nested object (may be simple or structured) at the given location.
|
MarshallerRegistry |
marshallerRegistry() |
ProtocolMarshaller |
protocolHandler() |
Request<?> |
request() |
public StructuredJsonGenerator jsonGenerator()
public ProtocolMarshaller protocolHandler()
ProtocolMarshaller
that can be used to call back out to marshall structured data (i.e.
lists of objects).public MarshallerRegistry marshallerRegistry()
public Request<?> request()
Request
object that can be used to add headers, query params, modify request URI, etc.public void marshall(MarshallLocation marshallLocation, Object val)
marshallLocation
- Current MarshallLocation
val
- Value to marshall.public void marshall(MarshallLocation marshallLocation, Object val, String paramName)
marshallLocation
- Current MarshallLocation
val
- Value to marshall.paramName
- Name of parameter to marshall.public static JsonMarshallerContext.Builder builder()
JsonMarshallerContext
.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.