Class CfnReplicator.TopicReplicationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.msk.CfnReplicator.TopicReplicationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReplicator.TopicReplicationProperty>
- Enclosing interface:
CfnReplicator.TopicReplicationProperty
@Stability(Stable)
public static final class CfnReplicator.TopicReplicationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnReplicator.TopicReplicationProperty>
A builder for
CfnReplicator.TopicReplicationProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.copyAccessControlListsForTopics
(Boolean copyAccessControlListsForTopics) copyAccessControlListsForTopics
(IResolvable copyAccessControlListsForTopics) copyTopicConfigurations
(Boolean copyTopicConfigurations) Sets the value ofCfnReplicator.TopicReplicationProperty.getCopyTopicConfigurations()
copyTopicConfigurations
(IResolvable copyTopicConfigurations) Sets the value ofCfnReplicator.TopicReplicationProperty.getCopyTopicConfigurations()
detectAndCopyNewTopics
(Boolean detectAndCopyNewTopics) Sets the value ofCfnReplicator.TopicReplicationProperty.getDetectAndCopyNewTopics()
detectAndCopyNewTopics
(IResolvable detectAndCopyNewTopics) Sets the value ofCfnReplicator.TopicReplicationProperty.getDetectAndCopyNewTopics()
startingPosition
(IResolvable startingPosition) Sets the value ofCfnReplicator.TopicReplicationProperty.getStartingPosition()
startingPosition
(CfnReplicator.ReplicationStartingPositionProperty startingPosition) Sets the value ofCfnReplicator.TopicReplicationProperty.getStartingPosition()
topicNameConfiguration
(IResolvable topicNameConfiguration) Sets the value ofCfnReplicator.TopicReplicationProperty.getTopicNameConfiguration()
topicNameConfiguration
(CfnReplicator.ReplicationTopicNameConfigurationProperty topicNameConfiguration) Sets the value ofCfnReplicator.TopicReplicationProperty.getTopicNameConfiguration()
topicsToExclude
(List<String> topicsToExclude) Sets the value ofCfnReplicator.TopicReplicationProperty.getTopicsToExclude()
topicsToReplicate
(List<String> topicsToReplicate) Sets the value ofCfnReplicator.TopicReplicationProperty.getTopicsToReplicate()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
topicsToReplicate
@Stability(Stable) public CfnReplicator.TopicReplicationProperty.Builder topicsToReplicate(List<String> topicsToReplicate) Sets the value ofCfnReplicator.TopicReplicationProperty.getTopicsToReplicate()
- Parameters:
topicsToReplicate
- List of regular expression patterns indicating the topics to copy. This parameter is required.- Returns:
this
-
copyAccessControlListsForTopics
@Stability(Stable) public CfnReplicator.TopicReplicationProperty.Builder copyAccessControlListsForTopics(Boolean copyAccessControlListsForTopics) - Parameters:
copyAccessControlListsForTopics
- Whether to periodically configure remote topic ACLs to match their corresponding upstream topics.- Returns:
this
-
copyAccessControlListsForTopics
@Stability(Stable) public CfnReplicator.TopicReplicationProperty.Builder copyAccessControlListsForTopics(IResolvable copyAccessControlListsForTopics) - Parameters:
copyAccessControlListsForTopics
- Whether to periodically configure remote topic ACLs to match their corresponding upstream topics.- Returns:
this
-
copyTopicConfigurations
@Stability(Stable) public CfnReplicator.TopicReplicationProperty.Builder copyTopicConfigurations(Boolean copyTopicConfigurations) Sets the value ofCfnReplicator.TopicReplicationProperty.getCopyTopicConfigurations()
- Parameters:
copyTopicConfigurations
- Whether to periodically configure remote topics to match their corresponding upstream topics.- Returns:
this
-
copyTopicConfigurations
@Stability(Stable) public CfnReplicator.TopicReplicationProperty.Builder copyTopicConfigurations(IResolvable copyTopicConfigurations) Sets the value ofCfnReplicator.TopicReplicationProperty.getCopyTopicConfigurations()
- Parameters:
copyTopicConfigurations
- Whether to periodically configure remote topics to match their corresponding upstream topics.- Returns:
this
-
detectAndCopyNewTopics
@Stability(Stable) public CfnReplicator.TopicReplicationProperty.Builder detectAndCopyNewTopics(Boolean detectAndCopyNewTopics) Sets the value ofCfnReplicator.TopicReplicationProperty.getDetectAndCopyNewTopics()
- Parameters:
detectAndCopyNewTopics
- Whether to periodically check for new topics and partitions.- Returns:
this
-
detectAndCopyNewTopics
@Stability(Stable) public CfnReplicator.TopicReplicationProperty.Builder detectAndCopyNewTopics(IResolvable detectAndCopyNewTopics) Sets the value ofCfnReplicator.TopicReplicationProperty.getDetectAndCopyNewTopics()
- Parameters:
detectAndCopyNewTopics
- Whether to periodically check for new topics and partitions.- Returns:
this
-
startingPosition
@Stability(Stable) public CfnReplicator.TopicReplicationProperty.Builder startingPosition(IResolvable startingPosition) Sets the value ofCfnReplicator.TopicReplicationProperty.getStartingPosition()
- Parameters:
startingPosition
- Specifies the position in the topics to start replicating from.- Returns:
this
-
startingPosition
@Stability(Stable) public CfnReplicator.TopicReplicationProperty.Builder startingPosition(CfnReplicator.ReplicationStartingPositionProperty startingPosition) Sets the value ofCfnReplicator.TopicReplicationProperty.getStartingPosition()
- Parameters:
startingPosition
- Specifies the position in the topics to start replicating from.- Returns:
this
-
topicNameConfiguration
@Stability(Stable) public CfnReplicator.TopicReplicationProperty.Builder topicNameConfiguration(IResolvable topicNameConfiguration) Sets the value ofCfnReplicator.TopicReplicationProperty.getTopicNameConfiguration()
- Parameters:
topicNameConfiguration
- Configuration for specifying replicated topic names will be the same as their corresponding upstream topics or prefixed with source cluster alias.- Returns:
this
-
topicNameConfiguration
@Stability(Stable) public CfnReplicator.TopicReplicationProperty.Builder topicNameConfiguration(CfnReplicator.ReplicationTopicNameConfigurationProperty topicNameConfiguration) Sets the value ofCfnReplicator.TopicReplicationProperty.getTopicNameConfiguration()
- Parameters:
topicNameConfiguration
- Configuration for specifying replicated topic names will be the same as their corresponding upstream topics or prefixed with source cluster alias.- Returns:
this
-
topicsToExclude
@Stability(Stable) public CfnReplicator.TopicReplicationProperty.Builder topicsToExclude(List<String> topicsToExclude) Sets the value ofCfnReplicator.TopicReplicationProperty.getTopicsToExclude()
- Parameters:
topicsToExclude
- List of regular expression patterns indicating the topics that should not be replicated.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnReplicator.TopicReplicationProperty>
- Returns:
- a new instance of
CfnReplicator.TopicReplicationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-