Class CfnPipe.PipeSourceManagedStreamingKafkaParametersProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pipes.CfnPipe.PipeSourceManagedStreamingKafkaParametersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipe.PipeSourceManagedStreamingKafkaParametersProperty>
- Enclosing interface:
CfnPipe.PipeSourceManagedStreamingKafkaParametersProperty
@Stability(Stable)
public static final class CfnPipe.PipeSourceManagedStreamingKafkaParametersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipe.PipeSourceManagedStreamingKafkaParametersProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnPipe.PipeSourceManagedStreamingKafkaParametersProperty.getBatchSize()
build()
Builds the configured instance.consumerGroupId
(String consumerGroupId) credentials
(IResolvable credentials) credentials
(CfnPipe.MSKAccessCredentialsProperty credentials) maximumBatchingWindowInSeconds
(Number maximumBatchingWindowInSeconds) startingPosition
(String startingPosition) Sets the value ofCfnPipe.PipeSourceManagedStreamingKafkaParametersProperty.getTopicName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
topicName
@Stability(Stable) public CfnPipe.PipeSourceManagedStreamingKafkaParametersProperty.Builder topicName(String topicName) Sets the value ofCfnPipe.PipeSourceManagedStreamingKafkaParametersProperty.getTopicName()
- Parameters:
topicName
- The name of the topic that the pipe will read from. This parameter is required.- Returns:
this
-
batchSize
@Stability(Stable) public CfnPipe.PipeSourceManagedStreamingKafkaParametersProperty.Builder batchSize(Number batchSize) Sets the value ofCfnPipe.PipeSourceManagedStreamingKafkaParametersProperty.getBatchSize()
- Parameters:
batchSize
- The maximum number of records to include in each batch.- Returns:
this
-
consumerGroupId
@Stability(Stable) public CfnPipe.PipeSourceManagedStreamingKafkaParametersProperty.Builder consumerGroupId(String consumerGroupId) - Parameters:
consumerGroupId
- The name of the destination queue to consume.- Returns:
this
-
credentials
@Stability(Stable) public CfnPipe.PipeSourceManagedStreamingKafkaParametersProperty.Builder credentials(IResolvable credentials) - Parameters:
credentials
- The credentials needed to access the resource.- Returns:
this
-
credentials
@Stability(Stable) public CfnPipe.PipeSourceManagedStreamingKafkaParametersProperty.Builder credentials(CfnPipe.MSKAccessCredentialsProperty credentials) - Parameters:
credentials
- The credentials needed to access the resource.- Returns:
this
-
maximumBatchingWindowInSeconds
@Stability(Stable) public CfnPipe.PipeSourceManagedStreamingKafkaParametersProperty.Builder maximumBatchingWindowInSeconds(Number maximumBatchingWindowInSeconds) Sets the value ofCfnPipe.PipeSourceManagedStreamingKafkaParametersProperty.getMaximumBatchingWindowInSeconds()
- Parameters:
maximumBatchingWindowInSeconds
- The maximum length of a time to wait for events.- Returns:
this
-
startingPosition
@Stability(Stable) public CfnPipe.PipeSourceManagedStreamingKafkaParametersProperty.Builder startingPosition(String startingPosition) - Parameters:
startingPosition
- (Streams only) The position in a stream from which to start reading.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPipe.PipeSourceManagedStreamingKafkaParametersProperty>
- Returns:
- a new instance of
CfnPipe.PipeSourceManagedStreamingKafkaParametersProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-