Class CfnPipe.SelfManagedKafkaAccessConfigurationVpcProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pipes.CfnPipe.SelfManagedKafkaAccessConfigurationVpcProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipe.SelfManagedKafkaAccessConfigurationVpcProperty>
- Enclosing interface:
CfnPipe.SelfManagedKafkaAccessConfigurationVpcProperty
@Stability(Stable)
public static final class CfnPipe.SelfManagedKafkaAccessConfigurationVpcProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipe.SelfManagedKafkaAccessConfigurationVpcProperty>
A builder for
CfnPipe.SelfManagedKafkaAccessConfigurationVpcProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.securityGroup
(List<String> securityGroup) Sets the value ofCfnPipe.SelfManagedKafkaAccessConfigurationVpcProperty.getSubnets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
securityGroup
@Stability(Stable) public CfnPipe.SelfManagedKafkaAccessConfigurationVpcProperty.Builder securityGroup(List<String> securityGroup) - Parameters:
securityGroup
- Specifies the security groups associated with the stream. These security groups must all be in the same VPC. You can specify as many as five security groups. If you do not specify a security group, the default security group for the VPC is used.- Returns:
this
-
subnets
@Stability(Stable) public CfnPipe.SelfManagedKafkaAccessConfigurationVpcProperty.Builder subnets(List<String> subnets) Sets the value ofCfnPipe.SelfManagedKafkaAccessConfigurationVpcProperty.getSubnets()
- Parameters:
subnets
- Specifies the subnets associated with the stream. These subnets must all be in the same VPC. You can specify as many as 16 subnets.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPipe.SelfManagedKafkaAccessConfigurationVpcProperty>
- Returns:
- a new instance of
CfnPipe.SelfManagedKafkaAccessConfigurationVpcProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-