Class KinesisStreamsSourceBuilder<T>

  • Type Parameters:
    T - type of elements that should be read from the source stream

    @Experimental
    public class KinesisStreamsSourceBuilder<T>
    extends Object
    Builder to construct the KinesisStreamsSource.

    The following example shows the minimum setup to create a KinesisStreamsSource that reads String values from a Kinesis Data Streams stream with ARN of arn:aws:kinesis:us-east-1:012345678901:stream/your_stream_name.

    
     KinesisStreamsSource<String> kdsSource =
                     KinesisStreamsSource.<String>builder()
                             .setStreamArn("arn:aws:kinesis:us-east-1:012345678901:stream/your_stream_name")
                             .setDeserializationSchema(new SimpleStringSchema())
                             .build();
     

    If the following parameters are not set in this builder, the following defaults will be used: