Class BaseAwsJsonProtocolFactory.Builder<SubclassT extends BaseAwsJsonProtocolFactory.Builder>
- java.lang.Object
- 
- software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory.Builder<SubclassT>
 
- 
- Direct Known Subclasses:
- AwsJsonProtocolFactory.Builder
 - Enclosing class:
- BaseAwsJsonProtocolFactory
 
 public abstract static class BaseAwsJsonProtocolFactory.Builder<SubclassT extends BaseAwsJsonProtocolFactory.Builder> extends Object Builder forAwsJsonProtocolFactory.
- 
- 
Field SummaryFields Modifier and Type Field Description protected Supplier<ProtocolUnmarshallDependencies>protocolUnmarshallDependencies
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedBuilder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SubclassTclientConfiguration(SdkClientConfiguration clientConfiguration)Sets theSdkClientConfigurationwhich contains the service endpoint.SubclassTcontentType(String contentType)ContentType of the client (By default it is used fromBaseAwsJsonProtocolFactory.AWS_JSON).SubclassTcustomErrorCodeFieldName(String customErrorCodeFieldName)Custom field name containing the error code that identifies the exception.SubclassTdefaultServiceExceptionSupplier(Supplier<SdkPojo> exceptionBuilderSupplier)A supplier for the services base exception builder.SubclassThasAwsQueryCompatible(boolean hasAwsQueryCompatible)Provides a check on whether AwsQueryCompatible trait is found in Metadata.SubclassTprotocol(AwsJsonProtocol protocol)protected SubclassTprotocolUnmarshallDependencies(Supplier<ProtocolUnmarshallDependencies> protocolUnmarshallDependencies)Provides the unmarshalling dependencies instance.SubclassTprotocolVersion(String protocolVersion)Protocol version of the client (right now supports JSON 1.0 and JSON 1.1).SubclassTregisterModeledException(ExceptionMetadata errorMetadata)Deprecated.Users should favor usingBaseAwsJsonProtocolFactory.createErrorResponseHandler(JsonOperationMetadata, Function), which allows the creation of an error unmarshaller that uses a mapping function to map from error code to the associatedExceptionMetadata.
 
- 
- 
- 
Field Detail- 
protocolUnmarshallDependenciesprotected Supplier<ProtocolUnmarshallDependencies> protocolUnmarshallDependencies 
 
- 
 - 
Method Detail- 
registerModeledException@Deprecated public final SubclassT registerModeledException(ExceptionMetadata errorMetadata) Deprecated.Users should favor usingBaseAwsJsonProtocolFactory.createErrorResponseHandler(JsonOperationMetadata, Function), which allows the creation of an error unmarshaller that uses a mapping function to map from error code to the associatedExceptionMetadata.Registers a new modeled exception by the error code.- Parameters:
- errorMetadata- Metadata to unmarshall the modeled exception.
- Returns:
- This builder for method chaining.
 
 - 
defaultServiceExceptionSupplierpublic final SubclassT defaultServiceExceptionSupplier(Supplier<SdkPojo> exceptionBuilderSupplier) A supplier for the services base exception builder. This is used when we can't identify any modeled exception to unmarshall into.- Parameters:
- exceptionBuilderSupplier- Suppplier of the base service exceptions Builder.
- Returns:
- This builder for method chaining.
 
 - 
protocolpublic final SubclassT protocol(AwsJsonProtocol protocol) - Parameters:
- protocol- Protocol of the client (i.e. REST or RPC).
- Returns:
- This builder for method chaining.
 
 - 
protocolVersionpublic final SubclassT protocolVersion(String protocolVersion) Protocol version of the client (right now supports JSON 1.0 and JSON 1.1). Used to determine content type.- Parameters:
- protocolVersion- JSON protocol version.
- Returns:
- This builder for method chaining.
 
 - 
contentTypepublic final SubclassT contentType(String contentType) ContentType of the client (By default it is used fromBaseAwsJsonProtocolFactory.AWS_JSON). Used to determine content type.- Parameters:
- contentType- JSON protocol contentType.
- Returns:
- This builder for method chaining.
 
 - 
customErrorCodeFieldNamepublic final SubclassT customErrorCodeFieldName(String customErrorCodeFieldName) Custom field name containing the error code that identifies the exception. Currently only used by Glacier which uses the "code" field instead of the traditional "__type".- Parameters:
- customErrorCodeFieldName- Custom field name to look for error code.
- Returns:
- This builder for method chaining.
 
 - 
clientConfigurationpublic final SubclassT clientConfiguration(SdkClientConfiguration clientConfiguration) Sets theSdkClientConfigurationwhich contains the service endpoint.- Parameters:
- clientConfiguration- Configuration of the client.
- Returns:
- This builder for method chaining.
 
 - 
hasAwsQueryCompatiblepublic final SubclassT hasAwsQueryCompatible(boolean hasAwsQueryCompatible) Provides a check on whether AwsQueryCompatible trait is found in Metadata. If true, custom error codes can be provided- Parameters:
- hasAwsQueryCompatible- boolean of whether the AwsQueryCompatible trait is found
- Returns:
- This builder for method chaining.
 
 - 
protocolUnmarshallDependenciesprotected final SubclassT protocolUnmarshallDependencies(Supplier<ProtocolUnmarshallDependencies> protocolUnmarshallDependencies) Provides the unmarshalling dependencies instance.- Parameters:
- protocolUnmarshallDependencies- the set of dependencies used to create an unmarshaller
- Returns:
- This builder for method chaining.
 
 
- 
 
-