public static final class EventStreamTaggedUnionPojoSupplier.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
EventStreamTaggedUnionPojoSupplier |
build() |
EventStreamTaggedUnionPojoSupplier.Builder |
defaultSdkPojoSupplier(Supplier<SdkPojo> defaultPojoSupplier)
Registers the default
SdkPojo supplier. |
EventStreamTaggedUnionPojoSupplier.Builder |
putSdkPojoSupplier(String type,
Supplier<SdkPojo> pojoSupplier)
|
public EventStreamTaggedUnionPojoSupplier.Builder putSdkPojoSupplier(String type, Supplier<SdkPojo> pojoSupplier)
type - Value of ':event-type' header this unmarshaller handles.pojoSupplier - Supplier of SdkPojo.public EventStreamTaggedUnionPojoSupplier.Builder defaultSdkPojoSupplier(Supplier<SdkPojo> defaultPojoSupplier)
SdkPojo 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).defaultPojoSupplier - Default POJO supplier to use when event-type doesn't match a registered event type.public EventStreamTaggedUnionPojoSupplier build()
Copyright © 2023. All rights reserved.