interface SdkStructuredJsonFactory
SdkStructuredPlainJsonFactory
and SdkStructuredCborFactory
Modifier and Type | Method and Description |
---|---|
JsonErrorResponseHandler |
createErrorResponseHandler(java.util.List<JsonErrorUnmarshaller> errorUnmarshallers,
java.lang.String customErrorCodeFieldName)
Returns the error response handler for handling a error response.
|
<T> JsonResponseHandler<T> |
createResponseHandler(JsonOperationMetadata operationMetadata,
Unmarshaller<T,JsonUnmarshallerContext> responseUnmarshaller)
Returns the response handler to be used for handling a successfull response.
|
StructuredJsonGenerator |
createWriter(java.lang.String protocolVersion)
Returns the
StructuredJsonGenerator to be used for marshalling the request. |
StructuredJsonGenerator createWriter(java.lang.String protocolVersion)
StructuredJsonGenerator
to be used for marshalling the request.protocolVersion
- AWS JSON/CBOR protocol version.<T> JsonResponseHandler<T> createResponseHandler(JsonOperationMetadata operationMetadata, Unmarshaller<T,JsonUnmarshallerContext> responseUnmarshaller)
operationMetadata
- Additional context information about an operation to create the
appropriate response handler.JsonErrorResponseHandler createErrorResponseHandler(java.util.List<JsonErrorUnmarshaller> errorUnmarshallers, java.lang.String customErrorCodeFieldName)
errorUnmarshallers
- Response unmarshallers to unamrshall the error responses.