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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.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
- Kafka Clusters to use in setting up sources / targets for replication. This parameter is required.- Returns:
this
-
kafkaClusters
@Stability(Stable) public CfnReplicatorProps.Builder kafkaClusters(List<? extends Object> kafkaClusters) Sets the value ofCfnReplicatorProps.getKafkaClusters()
- Parameters:
kafkaClusters
- Kafka Clusters to use in setting up sources / targets for replication. 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. Alpha-numeric characters with '-' are allowed.- Returns:
this
-
serviceExecutionRoleArn
@Stability(Stable) public CfnReplicatorProps.Builder serviceExecutionRoleArn(String serviceExecutionRoleArn) Sets the value ofCfnReplicatorProps.getServiceExecutionRoleArn()
- Parameters:
serviceExecutionRoleArn
- The ARN of the IAM role used by the replicator to access resources in the customer's account (e.g source and target clusters). This parameter is required.- 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
- List of tags to attach to created Replicator.- 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
-