Class AwsXmlErrorUnmarshaller.Builder
- java.lang.Object
-
- software.amazon.awssdk.protocols.query.internal.unmarshall.AwsXmlErrorUnmarshaller.Builder
-
- Enclosing class:
- AwsXmlErrorUnmarshaller
public static final class AwsXmlErrorUnmarshaller.Builder extends Object
Builder forAwsXmlErrorUnmarshaller
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AwsXmlErrorUnmarshaller
build()
AwsXmlErrorUnmarshaller.Builder
defaultExceptionSupplier(Supplier<SdkPojo> defaultExceptionSupplier)
Default exception type if "error code" does not match any known modeled exception.AwsXmlErrorUnmarshaller.Builder
errorUnmarshaller(XmlErrorUnmarshaller errorUnmarshaller)
The unmarshaller to use.AwsXmlErrorUnmarshaller.Builder
exceptions(List<ExceptionMetadata> exceptions)
List ofExceptionMetadata
to represent the modeled exceptions for the service.
-
-
-
Method Detail
-
exceptions
public AwsXmlErrorUnmarshaller.Builder exceptions(List<ExceptionMetadata> exceptions)
List ofExceptionMetadata
to 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 AwsXmlErrorUnmarshaller.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 AwsXmlErrorUnmarshaller.Builder errorUnmarshaller(XmlErrorUnmarshaller errorUnmarshaller)
The unmarshaller to use. The unmarshaller only unmarshalls any modeled fields of the exception, additional metadata is extracted byAwsXmlErrorUnmarshaller
.- Parameters:
errorUnmarshaller
- Error unmarshaller to use.- Returns:
- This builder for method chaining.
-
build
public AwsXmlErrorUnmarshaller build()
- Returns:
- New instance of
AwsXmlErrorUnmarshaller
.
-
-