Class EventStreamTaggedUnionPojoSupplier.Builder
- java.lang.Object
-
- software.amazon.awssdk.awscore.eventstream.EventStreamTaggedUnionPojoSupplier.Builder
-
- Enclosing class:
- EventStreamTaggedUnionPojoSupplier
public static final class EventStreamTaggedUnionPojoSupplier.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventStreamTaggedUnionPojoSupplierbuild()EventStreamTaggedUnionPojoSupplier.BuilderdefaultSdkPojoSupplier(Supplier<SdkPojo> defaultPojoSupplier)Registers the defaultSdkPojosupplier.EventStreamTaggedUnionPojoSupplier.BuilderputSdkPojoSupplier(String type, Supplier<SdkPojo> pojoSupplier)
-
-
-
Method Detail
-
putSdkPojoSupplier
public EventStreamTaggedUnionPojoSupplier.Builder putSdkPojoSupplier(String type, Supplier<SdkPojo> pojoSupplier)
- Parameters:
type- Value of ':event-type' header this unmarshaller handles.pojoSupplier- Supplier ofSdkPojo.- Returns:
- This object for method chaining.
-
defaultSdkPojoSupplier
public EventStreamTaggedUnionPojoSupplier.Builder defaultSdkPojoSupplier(Supplier<SdkPojo> defaultPojoSupplier)
Registers the defaultSdkPojosupplier. Used when the value in the ':event-type' header does not match a registered event type (i.e. this is a new event that this version of the SDK doesn't know about).- Parameters:
defaultPojoSupplier- Default POJO supplier to use when event-type doesn't match a registered event type.- Returns:
- This object for method chaining.
-
build
public EventStreamTaggedUnionPojoSupplier build()
-
-