Class CfnPipePropsMixin.AwsVpcConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.pipes.CfnPipePropsMixin.AwsVpcConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipePropsMixin.AwsVpcConfigurationProperty>
- Enclosing interface:
CfnPipePropsMixin.AwsVpcConfigurationProperty
@Stability(Stable)
public static final class CfnPipePropsMixin.AwsVpcConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipePropsMixin.AwsVpcConfigurationProperty>
A builder for
CfnPipePropsMixin.AwsVpcConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassignPublicIp(String assignPublicIp) Sets the value ofCfnPipePropsMixin.AwsVpcConfigurationProperty.getAssignPublicIp()build()Builds the configured instance.securityGroups(List<String> securityGroups) Sets the value ofCfnPipePropsMixin.AwsVpcConfigurationProperty.getSecurityGroups()Sets the value ofCfnPipePropsMixin.AwsVpcConfigurationProperty.getSubnets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
assignPublicIp
@Stability(Stable) public CfnPipePropsMixin.AwsVpcConfigurationProperty.Builder assignPublicIp(String assignPublicIp) Sets the value ofCfnPipePropsMixin.AwsVpcConfigurationProperty.getAssignPublicIp()- Parameters:
assignPublicIp- Specifies whether the task's elastic network interface receives a public IP address. You can specifyENABLEDonly whenLaunchTypeinEcsParametersis set toFARGATE.- Returns:
this
-
securityGroups
@Stability(Stable) public CfnPipePropsMixin.AwsVpcConfigurationProperty.Builder securityGroups(List<String> securityGroups) Sets the value ofCfnPipePropsMixin.AwsVpcConfigurationProperty.getSecurityGroups()- Parameters:
securityGroups- Specifies the security groups associated with the task. 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 CfnPipePropsMixin.AwsVpcConfigurationProperty.Builder subnets(List<String> subnets) Sets the value ofCfnPipePropsMixin.AwsVpcConfigurationProperty.getSubnets()- Parameters:
subnets- Specifies the subnets associated with the task. 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnPipePropsMixin.AwsVpcConfigurationProperty>- Returns:
- a new instance of
CfnPipePropsMixin.AwsVpcConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-