public static final class AwsJsonProtocolErrorUnmarshaller.Builder extends Object
AwsJsonProtocolErrorUnmarshaller
.Modifier and Type | Method and Description |
---|---|
AwsJsonProtocolErrorUnmarshaller |
build() |
AwsJsonProtocolErrorUnmarshaller.Builder |
defaultExceptionSupplier(Supplier<SdkPojo> defaultExceptionSupplier)
Default exception type if "error code" does not match any known modeled exception.
|
AwsJsonProtocolErrorUnmarshaller.Builder |
errorCodeParser(ErrorCodeParser errorCodeParser)
Implementation of
ErrorCodeParser that can extract an error code or type from the JSON response. |
AwsJsonProtocolErrorUnmarshaller.Builder |
errorMessageParser(ErrorMessageParser errorMessageParser)
Implementation that can extract an error message from the JSON response.
|
AwsJsonProtocolErrorUnmarshaller.Builder |
exceptions(List<ExceptionMetadata> exceptions)
List of
ExceptionMetadata to represent the modeled exceptions for the service. |
AwsJsonProtocolErrorUnmarshaller.Builder |
jsonFactory(com.fasterxml.jackson.core.JsonFactory jsonFactory)
JSON Factory to create a JSON parser.
|
AwsJsonProtocolErrorUnmarshaller.Builder |
jsonProtocolUnmarshaller(JsonProtocolUnmarshaller jsonProtocolUnmarshaller)
Underlying response unmarshaller.
|
public AwsJsonProtocolErrorUnmarshaller.Builder jsonProtocolUnmarshaller(JsonProtocolUnmarshaller jsonProtocolUnmarshaller)
public AwsJsonProtocolErrorUnmarshaller.Builder exceptions(List<ExceptionMetadata> exceptions)
ExceptionMetadata
to represent the modeled exceptions for the service.
For AWS services the error type is a string representing the type of the modeled exception.public AwsJsonProtocolErrorUnmarshaller.Builder errorMessageParser(ErrorMessageParser errorMessageParser)
public AwsJsonProtocolErrorUnmarshaller.Builder jsonFactory(com.fasterxml.jackson.core.JsonFactory jsonFactory)
public AwsJsonProtocolErrorUnmarshaller.Builder defaultExceptionSupplier(Supplier<SdkPojo> defaultExceptionSupplier)
public AwsJsonProtocolErrorUnmarshaller.Builder errorCodeParser(ErrorCodeParser errorCodeParser)
ErrorCodeParser
that can extract an error code or type from the JSON response.
Implementations may look for a specific field in the JSON document or a specific header for example.public AwsJsonProtocolErrorUnmarshaller build()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.