Interface DirectKafkaSource.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<DirectKafkaSource.Builder,
,DirectKafkaSource> SdkBuilder<DirectKafkaSource.Builder,
,DirectKafkaSource> SdkPojo
- Enclosing class:
DirectKafkaSource
public static interface DirectKafkaSource.Builder
extends SdkPojo, CopyableBuilder<DirectKafkaSource.Builder,DirectKafkaSource>
-
Method Summary
Modifier and TypeMethodDescriptiondefault DirectKafkaSource.Builder
dataPreviewOptions
(Consumer<StreamingDataPreviewOptions.Builder> dataPreviewOptions) Specifies options related to data preview for viewing a sample of your data.dataPreviewOptions
(StreamingDataPreviewOptions dataPreviewOptions) Specifies options related to data preview for viewing a sample of your data.detectSchema
(Boolean detectSchema) Whether to automatically determine the schema from the incoming data.The name of the data store.default DirectKafkaSource.Builder
streamingOptions
(Consumer<KafkaStreamingSourceOptions.Builder> streamingOptions) Specifies the streaming options.streamingOptions
(KafkaStreamingSourceOptions streamingOptions) Specifies the streaming options.windowSize
(Integer windowSize) The amount of time to spend processing each micro batch.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
The name of the data store.
- Parameters:
name
- The name of the data store.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
streamingOptions
Specifies the streaming options.
- Parameters:
streamingOptions
- Specifies the streaming options.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
streamingOptions
default DirectKafkaSource.Builder streamingOptions(Consumer<KafkaStreamingSourceOptions.Builder> streamingOptions) Specifies the streaming options.
This is a convenience method that creates an instance of theKafkaStreamingSourceOptions.Builder
avoiding the need to create one manually viaKafkaStreamingSourceOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostreamingOptions(KafkaStreamingSourceOptions)
.- Parameters:
streamingOptions
- a consumer that will call methods onKafkaStreamingSourceOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
windowSize
The amount of time to spend processing each micro batch.
- Parameters:
windowSize
- The amount of time to spend processing each micro batch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
detectSchema
Whether to automatically determine the schema from the incoming data.
- Parameters:
detectSchema
- Whether to automatically determine the schema from the incoming data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataPreviewOptions
Specifies options related to data preview for viewing a sample of your data.
- Parameters:
dataPreviewOptions
- Specifies options related to data preview for viewing a sample of your data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataPreviewOptions
default DirectKafkaSource.Builder dataPreviewOptions(Consumer<StreamingDataPreviewOptions.Builder> dataPreviewOptions) Specifies options related to data preview for viewing a sample of your data.
This is a convenience method that creates an instance of theStreamingDataPreviewOptions.Builder
avoiding the need to create one manually viaStreamingDataPreviewOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todataPreviewOptions(StreamingDataPreviewOptions)
.- Parameters:
dataPreviewOptions
- a consumer that will call methods onStreamingDataPreviewOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-