Class CfnPipe.PipeSourceSelfManagedKafkaParametersProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pipes.CfnPipe.PipeSourceSelfManagedKafkaParametersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipe.PipeSourceSelfManagedKafkaParametersProperty>
- Enclosing interface:
CfnPipe.PipeSourceSelfManagedKafkaParametersProperty
@Stability(Stable)
public static final class CfnPipe.PipeSourceSelfManagedKafkaParametersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipe.PipeSourceSelfManagedKafkaParametersProperty>
A builder for
CfnPipe.PipeSourceSelfManagedKafkaParametersProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadditionalBootstrapServers(List<String> additionalBootstrapServers) Sets the value ofCfnPipe.PipeSourceSelfManagedKafkaParametersProperty.getBatchSize()build()Builds the configured instance.consumerGroupId(String consumerGroupId) credentials(IResolvable credentials) Sets the value ofCfnPipe.PipeSourceSelfManagedKafkaParametersProperty.getCredentials()Sets the value ofCfnPipe.PipeSourceSelfManagedKafkaParametersProperty.getCredentials()maximumBatchingWindowInSeconds(Number maximumBatchingWindowInSeconds) serverRootCaCertificate(String serverRootCaCertificate) startingPosition(String startingPosition) Sets the value ofCfnPipe.PipeSourceSelfManagedKafkaParametersProperty.getTopicName()vpc(IResolvable vpc) Sets the value ofCfnPipe.PipeSourceSelfManagedKafkaParametersProperty.getVpc()Sets the value ofCfnPipe.PipeSourceSelfManagedKafkaParametersProperty.getVpc()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
topicName
@Stability(Stable) public CfnPipe.PipeSourceSelfManagedKafkaParametersProperty.Builder topicName(String topicName) Sets the value ofCfnPipe.PipeSourceSelfManagedKafkaParametersProperty.getTopicName()- Parameters:
topicName- The name of the topic that the pipe will read from. This parameter is required.- Returns:
this
-
additionalBootstrapServers
@Stability(Stable) public CfnPipe.PipeSourceSelfManagedKafkaParametersProperty.Builder additionalBootstrapServers(List<String> additionalBootstrapServers) Sets the value ofCfnPipe.PipeSourceSelfManagedKafkaParametersProperty.getAdditionalBootstrapServers()- Parameters:
additionalBootstrapServers- An array of server URLs.- Returns:
this
-
batchSize
@Stability(Stable) public CfnPipe.PipeSourceSelfManagedKafkaParametersProperty.Builder batchSize(Number batchSize) Sets the value ofCfnPipe.PipeSourceSelfManagedKafkaParametersProperty.getBatchSize()- Parameters:
batchSize- The maximum number of records to include in each batch.- Returns:
this
-
consumerGroupId
@Stability(Stable) public CfnPipe.PipeSourceSelfManagedKafkaParametersProperty.Builder consumerGroupId(String consumerGroupId) - Parameters:
consumerGroupId- The name of the destination queue to consume.- Returns:
this
-
credentials
@Stability(Stable) public CfnPipe.PipeSourceSelfManagedKafkaParametersProperty.Builder credentials(IResolvable credentials) Sets the value ofCfnPipe.PipeSourceSelfManagedKafkaParametersProperty.getCredentials()- Parameters:
credentials- The credentials needed to access the resource.- Returns:
this
-
credentials
@Stability(Stable) public CfnPipe.PipeSourceSelfManagedKafkaParametersProperty.Builder credentials(CfnPipe.SelfManagedKafkaAccessConfigurationCredentialsProperty credentials) Sets the value ofCfnPipe.PipeSourceSelfManagedKafkaParametersProperty.getCredentials()- Parameters:
credentials- The credentials needed to access the resource.- Returns:
this
-
maximumBatchingWindowInSeconds
@Stability(Stable) public CfnPipe.PipeSourceSelfManagedKafkaParametersProperty.Builder maximumBatchingWindowInSeconds(Number maximumBatchingWindowInSeconds) Sets the value ofCfnPipe.PipeSourceSelfManagedKafkaParametersProperty.getMaximumBatchingWindowInSeconds()- Parameters:
maximumBatchingWindowInSeconds- The maximum length of a time to wait for events.- Returns:
this
-
serverRootCaCertificate
@Stability(Stable) public CfnPipe.PipeSourceSelfManagedKafkaParametersProperty.Builder serverRootCaCertificate(String serverRootCaCertificate) - Parameters:
serverRootCaCertificate- The ARN of the Secrets Manager secret used for certification.- Returns:
this
-
startingPosition
@Stability(Stable) public CfnPipe.PipeSourceSelfManagedKafkaParametersProperty.Builder startingPosition(String startingPosition) - Parameters:
startingPosition- The position in a stream from which to start reading.- Returns:
this
-
vpc
@Stability(Stable) public CfnPipe.PipeSourceSelfManagedKafkaParametersProperty.Builder vpc(IResolvable vpc) Sets the value ofCfnPipe.PipeSourceSelfManagedKafkaParametersProperty.getVpc()- Parameters:
vpc- This structure specifies the VPC subnets and security groups for the stream, and whether a public IP address is to be used.- Returns:
this
-
vpc
@Stability(Stable) public CfnPipe.PipeSourceSelfManagedKafkaParametersProperty.Builder vpc(CfnPipe.SelfManagedKafkaAccessConfigurationVpcProperty vpc) Sets the value ofCfnPipe.PipeSourceSelfManagedKafkaParametersProperty.getVpc()- Parameters:
vpc- This structure specifies the VPC subnets and security groups for the stream, and whether a public IP address is to be used.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPipe.PipeSourceSelfManagedKafkaParametersProperty>- Returns:
- a new instance of
CfnPipe.PipeSourceSelfManagedKafkaParametersProperty - Throws:
NullPointerException- if any required attribute was not provided
-