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 Details

    • putSdkPojoSupplier

      public EventStreamTaggedUnionPojoSupplier.Builder putSdkPojoSupplier(String type, Supplier<SdkPojo> pojoSupplier)
      Registers a new Supplier of an SdkPojo associated with a given event type.
      Parameters:
      type - Value of ':event-type' header this unmarshaller handles.
      pojoSupplier - Supplier of SdkPojo.
      Returns:
      This object for method chaining.
    • defaultSdkPojoSupplier

      public EventStreamTaggedUnionPojoSupplier.Builder defaultSdkPojoSupplier(Supplier<SdkPojo> defaultPojoSupplier)
      Registers the default 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).
      Parameters:
      defaultPojoSupplier - Default POJO supplier to use when event-type doesn't match a registered event type.
      Returns:
      This object for method chaining.
    • build