Class CfnReplicatorProps.Builder
java.lang.Object
software.amazon.awscdk.services.msk.CfnReplicatorProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReplicatorProps>
- Enclosing interface:
CfnReplicatorProps
@Stability(Stable)
public static final class CfnReplicatorProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnReplicatorProps>
A builder for
CfnReplicatorProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.currentVersion
(String currentVersion) Sets the value ofCfnReplicatorProps.getCurrentVersion()
description
(String description) Sets the value ofCfnReplicatorProps.getDescription()
kafkaClusters
(List<? extends Object> kafkaClusters) Sets the value ofCfnReplicatorProps.getKafkaClusters()
kafkaClusters
(IResolvable kafkaClusters) Sets the value ofCfnReplicatorProps.getKafkaClusters()
replicationInfoList
(List<? extends Object> replicationInfoList) Sets the value ofCfnReplicatorProps.getReplicationInfoList()
replicationInfoList
(IResolvable replicationInfoList) Sets the value ofCfnReplicatorProps.getReplicationInfoList()
replicatorName
(String replicatorName) Sets the value ofCfnReplicatorProps.getReplicatorName()
serviceExecutionRoleArn
(String serviceExecutionRoleArn) Sets the value ofCfnReplicatorProps.getServiceExecutionRoleArn()
Sets the value ofCfnReplicatorProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
kafkaClusters
Sets the value ofCfnReplicatorProps.getKafkaClusters()
- Parameters:
kafkaClusters
- Specifies a list of Kafka clusters which are targets of the replicator. This parameter is required.- Returns:
this
-
kafkaClusters
@Stability(Stable) public CfnReplicatorProps.Builder kafkaClusters(List<? extends Object> kafkaClusters) Sets the value ofCfnReplicatorProps.getKafkaClusters()
- Parameters:
kafkaClusters
- Specifies a list of Kafka clusters which are targets of the replicator. This parameter is required.- Returns:
this
-
replicationInfoList
@Stability(Stable) public CfnReplicatorProps.Builder replicationInfoList(IResolvable replicationInfoList) Sets the value ofCfnReplicatorProps.getReplicationInfoList()
- Parameters:
replicationInfoList
- A list of replication configurations, where each configuration targets a given source cluster to target cluster replication flow. This parameter is required.- Returns:
this
-
replicationInfoList
@Stability(Stable) public CfnReplicatorProps.Builder replicationInfoList(List<? extends Object> replicationInfoList) Sets the value ofCfnReplicatorProps.getReplicationInfoList()
- Parameters:
replicationInfoList
- A list of replication configurations, where each configuration targets a given source cluster to target cluster replication flow. This parameter is required.- Returns:
this
-
replicatorName
Sets the value ofCfnReplicatorProps.getReplicatorName()
- Parameters:
replicatorName
- The name of the replicator. This parameter is required.- Returns:
this
-
serviceExecutionRoleArn
@Stability(Stable) public CfnReplicatorProps.Builder serviceExecutionRoleArn(String serviceExecutionRoleArn) Sets the value ofCfnReplicatorProps.getServiceExecutionRoleArn()
- Parameters:
serviceExecutionRoleArn
- The Amazon Resource Name (ARN) of the IAM role used by the replicator to access external resources. This parameter is required.- Returns:
this
-
currentVersion
Sets the value ofCfnReplicatorProps.getCurrentVersion()
- Parameters:
currentVersion
- The current version of the MSK replicator.- Returns:
this
-
description
Sets the value ofCfnReplicatorProps.getDescription()
- Parameters:
description
- A summary description of the replicator.- Returns:
this
-
tags
Sets the value ofCfnReplicatorProps.getTags()
- Parameters:
tags
- A collection of tags associated with a resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnReplicatorProps>
- Returns:
- a new instance of
CfnReplicatorProps
- Throws:
NullPointerException
- if any required attribute was not provided
-