Class CfnReplicator.ConsumerGroupReplicationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.msk.CfnReplicator.ConsumerGroupReplicationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReplicator.ConsumerGroupReplicationProperty>
- Enclosing interface:
CfnReplicator.ConsumerGroupReplicationProperty
@Stability(Stable)
public static final class CfnReplicator.ConsumerGroupReplicationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnReplicator.ConsumerGroupReplicationProperty>
A builder for
CfnReplicator.ConsumerGroupReplicationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.consumerGroupsToExclude(List<String> consumerGroupsToExclude) consumerGroupsToReplicate(List<String> consumerGroupsToReplicate) detectAndCopyNewConsumerGroups(Boolean detectAndCopyNewConsumerGroups) detectAndCopyNewConsumerGroups(IResolvable detectAndCopyNewConsumerGroups) synchroniseConsumerGroupOffsets(Boolean synchroniseConsumerGroupOffsets) synchroniseConsumerGroupOffsets(IResolvable synchroniseConsumerGroupOffsets)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
consumerGroupsToReplicate
@Stability(Stable) public CfnReplicator.ConsumerGroupReplicationProperty.Builder consumerGroupsToReplicate(List<String> consumerGroupsToReplicate) - Parameters:
consumerGroupsToReplicate- List of regular expression patterns indicating the consumer groups to copy. This parameter is required.- Returns:
this
-
consumerGroupsToExclude
@Stability(Stable) public CfnReplicator.ConsumerGroupReplicationProperty.Builder consumerGroupsToExclude(List<String> consumerGroupsToExclude) - Parameters:
consumerGroupsToExclude- List of regular expression patterns indicating the consumer groups that should not be replicated.- Returns:
this
-
detectAndCopyNewConsumerGroups
@Stability(Stable) public CfnReplicator.ConsumerGroupReplicationProperty.Builder detectAndCopyNewConsumerGroups(Boolean detectAndCopyNewConsumerGroups) Sets the value ofCfnReplicator.ConsumerGroupReplicationProperty.getDetectAndCopyNewConsumerGroups()- Parameters:
detectAndCopyNewConsumerGroups- Enables synchronization of consumer groups to target cluster.- Returns:
this
-
detectAndCopyNewConsumerGroups
@Stability(Stable) public CfnReplicator.ConsumerGroupReplicationProperty.Builder detectAndCopyNewConsumerGroups(IResolvable detectAndCopyNewConsumerGroups) Sets the value ofCfnReplicator.ConsumerGroupReplicationProperty.getDetectAndCopyNewConsumerGroups()- Parameters:
detectAndCopyNewConsumerGroups- Enables synchronization of consumer groups to target cluster.- Returns:
this
-
synchroniseConsumerGroupOffsets
@Stability(Stable) public CfnReplicator.ConsumerGroupReplicationProperty.Builder synchroniseConsumerGroupOffsets(Boolean synchroniseConsumerGroupOffsets) Sets the value ofCfnReplicator.ConsumerGroupReplicationProperty.getSynchroniseConsumerGroupOffsets()- Parameters:
synchroniseConsumerGroupOffsets- Enables synchronization of consumer group offsets to target cluster. The translated offsets will be written to topic __consumer_offsets.- Returns:
this
-
synchroniseConsumerGroupOffsets
@Stability(Stable) public CfnReplicator.ConsumerGroupReplicationProperty.Builder synchroniseConsumerGroupOffsets(IResolvable synchroniseConsumerGroupOffsets) Sets the value ofCfnReplicator.ConsumerGroupReplicationProperty.getSynchroniseConsumerGroupOffsets()- Parameters:
synchroniseConsumerGroupOffsets- Enables synchronization of consumer group offsets to target cluster. The translated offsets will be written to topic __consumer_offsets.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnReplicator.ConsumerGroupReplicationProperty>- Returns:
- a new instance of
CfnReplicator.ConsumerGroupReplicationProperty - Throws:
NullPointerException- if any required attribute was not provided
-