Class AwsXmlErrorTransformer.Builder
- java.lang.Object
-
- software.amazon.awssdk.protocols.xml.internal.unmarshall.AwsXmlErrorTransformer.Builder
-
- Enclosing class:
- AwsXmlErrorTransformer
public static final class AwsXmlErrorTransformer.Builder extends Object
Builder forAwsXmlErrorTransformer.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AwsXmlErrorTransformerbuild()AwsXmlErrorTransformer.BuilderdefaultExceptionSupplier(Supplier<SdkPojo> defaultExceptionSupplier)Default exception type if "error code" does not match any known modeled exception.AwsXmlErrorTransformer.BuildererrorUnmarshaller(XmlErrorUnmarshaller errorUnmarshaller)The unmarshaller to use.AwsXmlErrorTransformer.Builderexceptions(List<ExceptionMetadata> exceptions)List ofExceptionMetadatato represent the modeled exceptions for the service.
-
-
-
Method Detail
-
exceptions
public AwsXmlErrorTransformer.Builder exceptions(List<ExceptionMetadata> exceptions)
List ofExceptionMetadatato represent the modeled exceptions for the service. For AWS services the error type is a string representing the type of the modeled exception.- Returns:
- This builder for method chaining.
-
defaultExceptionSupplier
public AwsXmlErrorTransformer.Builder defaultExceptionSupplier(Supplier<SdkPojo> defaultExceptionSupplier)
Default exception type if "error code" does not match any known modeled exception. This is the generated base exception for the service (i.e. DynamoDbException).- Returns:
- This builder for method chaining.
-
errorUnmarshaller
public AwsXmlErrorTransformer.Builder errorUnmarshaller(XmlErrorUnmarshaller errorUnmarshaller)
The unmarshaller to use. The unmarshaller only unmarshalls any modeled fields of the exception, additional metadata is extracted byAwsXmlErrorTransformer.- Parameters:
errorUnmarshaller- Error unmarshaller to use.- Returns:
- This builder for method chaining.
-
build
public AwsXmlErrorTransformer build()
- Returns:
- New instance of
AwsXmlErrorTransformer.
-
-