Class CfnVpcConnectionProps.Builder
java.lang.Object
software.amazon.awscdk.services.msk.CfnVpcConnectionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVpcConnectionProps>
- Enclosing interface:
- CfnVpcConnectionProps
@Stability(Stable)
public static final class CfnVpcConnectionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVpcConnectionProps>
A builder for
CfnVpcConnectionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthentication(String authentication) Sets the value ofCfnVpcConnectionProps.getAuthentication()build()Builds the configured instance.clientSubnets(List<String> clientSubnets) Sets the value ofCfnVpcConnectionProps.getClientSubnets()securityGroups(List<String> securityGroups) Sets the value ofCfnVpcConnectionProps.getSecurityGroups()Sets the value ofCfnVpcConnectionProps.getTags()targetClusterArn(String targetClusterArn) Sets the value ofCfnVpcConnectionProps.getTargetClusterArn()Sets the value ofCfnVpcConnectionProps.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authentication
Sets the value ofCfnVpcConnectionProps.getAuthentication()- Parameters:
authentication- The type of private link authentication. This parameter is required.- Returns:
this
-
clientSubnets
Sets the value ofCfnVpcConnectionProps.getClientSubnets()- Parameters:
clientSubnets- The list of subnets in the client VPC to connect to. This parameter is required.- Returns:
this
-
securityGroups
Sets the value ofCfnVpcConnectionProps.getSecurityGroups()- Parameters:
securityGroups- The security groups to attach to the ENIs for the broker nodes. This parameter is required.- Returns:
this
-
targetClusterArn
Sets the value ofCfnVpcConnectionProps.getTargetClusterArn()- Parameters:
targetClusterArn- The Amazon Resource Name (ARN) of the cluster. This parameter is required.- Returns:
this
-
vpcId
Sets the value ofCfnVpcConnectionProps.getVpcId()- Parameters:
vpcId- The VPC id of the remote client. This parameter is required.- Returns:
this
-
tags
Sets the value ofCfnVpcConnectionProps.getTags()- Parameters:
tags- Create tags when creating the VPC connection.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVpcConnectionProps>- Returns:
- a new instance of
CfnVpcConnectionProps - Throws:
NullPointerException- if any required attribute was not provided
-