public abstract static class BaseAwsJsonProtocolFactory.Builder<SubclassT extends BaseAwsJsonProtocolFactory.Builder> extends Object
AwsJsonProtocolFactory
.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 |
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 |
protocol(AwsJsonProtocol protocol) |
SubclassT |
protocolVersion(String protocolVersion)
Protocol version of the client (right now supports JSON 1.0 and JSON 1.1).
|
SubclassT |
registerModeledException(ExceptionMetadata errorMetadata)
Registers a new modeled exception by the error code.
|
public final SubclassT registerModeledException(ExceptionMetadata errorMetadata)
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 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.Copyright © 2019. All rights reserved.