public final class JsonProtocolMarshallerBuilder extends Object
ProtocolMarshaller for JSON based services.| Modifier and Type | Method and Description | 
|---|---|
ProtocolMarshaller<SdkHttpFullRequest> | 
build()  | 
JsonProtocolMarshallerBuilder | 
contentType(String contentType)  | 
static JsonProtocolMarshallerBuilder | 
create()  | 
JsonProtocolMarshallerBuilder | 
endpoint(URI endpoint)  | 
JsonProtocolMarshallerBuilder | 
jsonGenerator(StructuredJsonGenerator jsonGenerator)
Sets the implementation of  
StructuredJsonGenerator which allows writing JSON or JSON like (i.e. | 
JsonProtocolMarshallerBuilder | 
operationInfo(OperationInfo operationInfo)  | 
JsonProtocolMarshallerBuilder | 
sendExplicitNullForPayload(boolean sendExplicitNullForPayload)  | 
public static JsonProtocolMarshallerBuilder create()
JsonProtocolMarshallerBuilder.public JsonProtocolMarshallerBuilder endpoint(URI endpoint)
endpoint - Endpoint to set on the marshalled request.public JsonProtocolMarshallerBuilder jsonGenerator(StructuredJsonGenerator jsonGenerator)
StructuredJsonGenerator which allows writing JSON or JSON like (i.e. CBOR and Ion)
 data formats.jsonGenerator - Generator to use.public JsonProtocolMarshallerBuilder contentType(String contentType)
contentType - The content type to set on the marshalled requests.public JsonProtocolMarshallerBuilder operationInfo(OperationInfo operationInfo)
operationInfo - Metadata about the operation like URI, HTTP method, etc.public JsonProtocolMarshallerBuilder sendExplicitNullForPayload(boolean sendExplicitNullForPayload)
sendExplicitNullForPayload - True if an explicit JSON null should be sent as the body when the
 payload member is null. See NullAsEmptyBodyProtocolRequestMarshaller.public ProtocolMarshaller<SdkHttpFullRequest> build()
ProtocolMarshaller. If sendExplicitNullForPayload is true then the marshaller
 will be wrapped with NullAsEmptyBodyProtocolRequestMarshaller.Copyright © 2019. All rights reserved.