public abstract static class BaseAwsJsonProtocolFactory.Builder<SubclassT extends BaseAwsJsonProtocolFactory.Builder> extends Object
AwsJsonProtocolFactory.| Modifier and Type | Field and Description |
|---|---|
protected Supplier<ProtocolUnmarshallDependencies> |
protocolUnmarshallDependencies |
| Modifier | Constructor and Description |
|---|---|
protected |
Builder() |
| Modifier and Type | Method and Description |
|---|---|
SubclassT |
clientConfiguration(SdkClientConfiguration clientConfiguration)
Sets the
SdkClientConfiguration which contains the service endpoint. |
SubclassT |
contentType(String contentType)
ContentType of the client (By default it is used from
BaseAwsJsonProtocolFactory.AWS_JSON ). |
SubclassT |
customErrorCodeFieldName(String customErrorCodeFieldName)
Custom field name containing the error code that identifies the exception.
|
SubclassT |
defaultServiceExceptionSupplier(Supplier<SdkPojo> exceptionBuilderSupplier)
A supplier for the services base exception builder.
|
SubclassT |
hasAwsQueryCompatible(boolean hasAwsQueryCompatible)
Provides a check on whether AwsQueryCompatible trait is found in Metadata.
|
SubclassT |
protocol(AwsJsonProtocol protocol) |
protected SubclassT |
protocolUnmarshallDependencies(Supplier<ProtocolUnmarshallDependencies> protocolUnmarshallDependencies)
Provides the unmarshalling dependencies instance.
|
SubclassT |
protocolVersion(String protocolVersion)
Protocol version of the client (right now supports JSON 1.0 and JSON 1.1).
|
SubclassT |
registerModeledException(ExceptionMetadata errorMetadata)
Deprecated.
Users should favor using
BaseAwsJsonProtocolFactory.createErrorResponseHandler(JsonOperationMetadata, Function), which allows the
creation of an error unmarshaller that uses a mapping function to map from error code to the associated
ExceptionMetadata. |
protected Supplier<ProtocolUnmarshallDependencies> protocolUnmarshallDependencies
@Deprecated public final SubclassT registerModeledException(ExceptionMetadata errorMetadata)
BaseAwsJsonProtocolFactory.createErrorResponseHandler(JsonOperationMetadata, Function), which allows the
creation of an error unmarshaller that uses a mapping function to map from error code to the associated
ExceptionMetadata.errorMetadata - Metadata to unmarshall the modeled exception.public final SubclassT defaultServiceExceptionSupplier(Supplier<SdkPojo> exceptionBuilderSupplier)
exceptionBuilderSupplier - Suppplier of the base service exceptions Builder.public final SubclassT protocol(AwsJsonProtocol protocol)
protocol - Protocol of the client (i.e. REST or RPC).public final SubclassT protocolVersion(String protocolVersion)
protocolVersion - JSON protocol version.public final SubclassT contentType(String contentType)
BaseAwsJsonProtocolFactory.AWS_JSON ).
Used to determine content type.contentType - JSON protocol contentType.public final SubclassT customErrorCodeFieldName(String customErrorCodeFieldName)
customErrorCodeFieldName - Custom field name to look for error code.public final SubclassT clientConfiguration(SdkClientConfiguration clientConfiguration)
SdkClientConfiguration which contains the service endpoint.clientConfiguration - Configuration of the client.public final SubclassT hasAwsQueryCompatible(boolean hasAwsQueryCompatible)
hasAwsQueryCompatible - boolean of whether the AwsQueryCompatible trait is foundprotected final SubclassT protocolUnmarshallDependencies(Supplier<ProtocolUnmarshallDependencies> protocolUnmarshallDependencies)
protocolUnmarshallDependencies - the set of dependencies used to create an unmarshallerCopyright © 2026. All rights reserved.