public static final class EventStreamExceptionJsonUnmarshaller.Builder<T extends AwsServiceException> extends Object
Modifier and Type | Method and Description |
---|---|
EventStreamExceptionJsonUnmarshaller.Builder<T> |
addUnmarshaller(String type,
Unmarshaller<? extends T,JsonUnmarshallerContext> unmarshaller)
Registers a new
Unmarshaller with the given type. |
EventStreamExceptionJsonUnmarshaller<T> |
build() |
EventStreamExceptionJsonUnmarshaller.Builder<T> |
defaultUnmarshaller(Unmarshaller<? extends T,JsonUnmarshallerContext> defaultUnmarshaller)
Registers the default unmarshaller.
|
public EventStreamExceptionJsonUnmarshaller.Builder<T> addUnmarshaller(String type, Unmarshaller<? extends T,JsonUnmarshallerContext> unmarshaller)
Unmarshaller
with the given type.type
- Value of ':exception-type' header this unmarshaller handles.unmarshaller
- Unmarshaller of a event subtype.public EventStreamExceptionJsonUnmarshaller.Builder<T> defaultUnmarshaller(Unmarshaller<? extends T,JsonUnmarshallerContext> defaultUnmarshaller)
defaultUnmarshaller
- Default unmarshaller to use when exception-type doesn't match a registered unmarshaller.public EventStreamExceptionJsonUnmarshaller<T> build()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.