Class EventStreamTaggedUnionPojoSupplier.Builder
java.lang.Object
software.amazon.awssdk.awscore.eventstream.EventStreamTaggedUnionPojoSupplier.Builder
- Enclosing class:
EventStreamTaggedUnionPojoSupplier
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
defaultSdkPojoSupplier
(Supplier<SdkPojo> defaultPojoSupplier) Registers the defaultSdkPojo
supplier.putSdkPojoSupplier
(String type, Supplier<SdkPojo> pojoSupplier)
-
Method Details
-
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 defaultSdkPojo
supplier. 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
-