Class JsonProtocolMarshallerBuilder
- java.lang.Object
- 
- software.amazon.awssdk.protocols.json.internal.marshall.JsonProtocolMarshallerBuilder
 
- 
 public final class JsonProtocolMarshallerBuilder extends Object Builder to create an appropriate implementation ofProtocolMarshallerfor JSON based services.
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ProtocolMarshaller<SdkHttpFullRequest>build()JsonProtocolMarshallerBuildercontentType(String contentType)static JsonProtocolMarshallerBuildercreate()JsonProtocolMarshallerBuilderendpoint(URI endpoint)JsonProtocolMarshallerBuilderhasAwsQueryCompatible(boolean hasAwsQueryCompatible)JsonProtocolMarshallerBuilderjsonGenerator(StructuredJsonGenerator jsonGenerator)Sets the implementation ofStructuredJsonGeneratorwhich allows writing JSON or JSON like (i.e.JsonProtocolMarshallerBuilderoperationInfo(OperationInfo operationInfo)JsonProtocolMarshallerBuilderprotocolMetadata(AwsJsonProtocolMetadata protocolMetadata)JsonProtocolMarshallerBuildersendExplicitNullForPayload(boolean sendExplicitNullForPayload)
 
- 
- 
- 
Method Detail- 
createpublic static JsonProtocolMarshallerBuilder create() - Returns:
- New instance of JsonProtocolMarshallerBuilder.
 
 - 
endpointpublic JsonProtocolMarshallerBuilder endpoint(URI endpoint) - Parameters:
- endpoint- Endpoint to set on the marshalled request.
- Returns:
- This builder for method chaining.
 
 - 
jsonGeneratorpublic JsonProtocolMarshallerBuilder jsonGenerator(StructuredJsonGenerator jsonGenerator) Sets the implementation ofStructuredJsonGeneratorwhich allows writing JSON or JSON like (i.e. CBOR and Ion) data formats.- Parameters:
- jsonGenerator- Generator to use.
- Returns:
- This builder for method chaining.
 
 - 
contentTypepublic JsonProtocolMarshallerBuilder contentType(String contentType) - Parameters:
- contentType- The content type to set on the marshalled requests.
- Returns:
- This builder for method chaining.
 
 - 
operationInfopublic JsonProtocolMarshallerBuilder operationInfo(OperationInfo operationInfo) - Parameters:
- operationInfo- Metadata about the operation like URI, HTTP method, etc.
- Returns:
- This builder for method chaining.
 
 - 
sendExplicitNullForPayloadpublic JsonProtocolMarshallerBuilder sendExplicitNullForPayload(boolean sendExplicitNullForPayload) - Parameters:
- sendExplicitNullForPayload- True if an explicit JSON null should be sent as the body when the payload member is null. See- NullAsEmptyBodyProtocolRequestMarshaller.
 
 - 
protocolMetadatapublic JsonProtocolMarshallerBuilder protocolMetadata(AwsJsonProtocolMetadata protocolMetadata) - Parameters:
- protocolMetadata-
 
 - 
hasAwsQueryCompatiblepublic JsonProtocolMarshallerBuilder hasAwsQueryCompatible(boolean hasAwsQueryCompatible) - Parameters:
- hasAwsQueryCompatible- True if the service is AWS Query compatible, (has the @awsQueryCompatible trait)
 
 - 
buildpublic ProtocolMarshaller<SdkHttpFullRequest> build() - Returns:
- New instance of ProtocolMarshaller. IfsendExplicitNullForPayloadis true then the marshaller will be wrapped withNullAsEmptyBodyProtocolRequestMarshaller.
 
 
- 
 
-