Class CfnReplicator.ReplicationInfoProperty.Builder
java.lang.Object
software.amazon.awscdk.services.msk.CfnReplicator.ReplicationInfoProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReplicator.ReplicationInfoProperty>
- Enclosing interface:
CfnReplicator.ReplicationInfoProperty
@Stability(Stable)
public static final class CfnReplicator.ReplicationInfoProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnReplicator.ReplicationInfoProperty>
A builder for
CfnReplicator.ReplicationInfoProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.consumerGroupReplication
(IResolvable consumerGroupReplication) Sets the value ofCfnReplicator.ReplicationInfoProperty.getConsumerGroupReplication()
consumerGroupReplication
(CfnReplicator.ConsumerGroupReplicationProperty consumerGroupReplication) Sets the value ofCfnReplicator.ReplicationInfoProperty.getConsumerGroupReplication()
sourceKafkaClusterArn
(String sourceKafkaClusterArn) Sets the value ofCfnReplicator.ReplicationInfoProperty.getSourceKafkaClusterArn()
targetCompressionType
(String targetCompressionType) Sets the value ofCfnReplicator.ReplicationInfoProperty.getTargetCompressionType()
targetKafkaClusterArn
(String targetKafkaClusterArn) Sets the value ofCfnReplicator.ReplicationInfoProperty.getTargetKafkaClusterArn()
topicReplication
(IResolvable topicReplication) Sets the value ofCfnReplicator.ReplicationInfoProperty.getTopicReplication()
topicReplication
(CfnReplicator.TopicReplicationProperty topicReplication) Sets the value ofCfnReplicator.ReplicationInfoProperty.getTopicReplication()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
consumerGroupReplication
@Stability(Stable) public CfnReplicator.ReplicationInfoProperty.Builder consumerGroupReplication(IResolvable consumerGroupReplication) Sets the value ofCfnReplicator.ReplicationInfoProperty.getConsumerGroupReplication()
- Parameters:
consumerGroupReplication
- Configuration relating to consumer group replication. This parameter is required.- Returns:
this
-
consumerGroupReplication
@Stability(Stable) public CfnReplicator.ReplicationInfoProperty.Builder consumerGroupReplication(CfnReplicator.ConsumerGroupReplicationProperty consumerGroupReplication) Sets the value ofCfnReplicator.ReplicationInfoProperty.getConsumerGroupReplication()
- Parameters:
consumerGroupReplication
- Configuration relating to consumer group replication. This parameter is required.- Returns:
this
-
sourceKafkaClusterArn
@Stability(Stable) public CfnReplicator.ReplicationInfoProperty.Builder sourceKafkaClusterArn(String sourceKafkaClusterArn) Sets the value ofCfnReplicator.ReplicationInfoProperty.getSourceKafkaClusterArn()
- Parameters:
sourceKafkaClusterArn
- The ARN of the source Kafka cluster. This parameter is required.- Returns:
this
-
targetCompressionType
@Stability(Stable) public CfnReplicator.ReplicationInfoProperty.Builder targetCompressionType(String targetCompressionType) Sets the value ofCfnReplicator.ReplicationInfoProperty.getTargetCompressionType()
- Parameters:
targetCompressionType
- The compression type to use when producing records to target cluster. This parameter is required.- Returns:
this
-
targetKafkaClusterArn
@Stability(Stable) public CfnReplicator.ReplicationInfoProperty.Builder targetKafkaClusterArn(String targetKafkaClusterArn) Sets the value ofCfnReplicator.ReplicationInfoProperty.getTargetKafkaClusterArn()
- Parameters:
targetKafkaClusterArn
- The ARN of the target Kafka cluster. This parameter is required.- Returns:
this
-
topicReplication
@Stability(Stable) public CfnReplicator.ReplicationInfoProperty.Builder topicReplication(IResolvable topicReplication) Sets the value ofCfnReplicator.ReplicationInfoProperty.getTopicReplication()
- Parameters:
topicReplication
- Configuration relating to topic replication. This parameter is required.- Returns:
this
-
topicReplication
@Stability(Stable) public CfnReplicator.ReplicationInfoProperty.Builder topicReplication(CfnReplicator.TopicReplicationProperty topicReplication) Sets the value ofCfnReplicator.ReplicationInfoProperty.getTopicReplication()
- Parameters:
topicReplication
- Configuration relating to topic replication. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnReplicator.ReplicationInfoProperty>
- Returns:
- a new instance of
CfnReplicator.ReplicationInfoProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-