Class CfnPipe.AwsVpcConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pipes.CfnPipe.AwsVpcConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipe.AwsVpcConfigurationProperty>
- Enclosing interface:
CfnPipe.AwsVpcConfigurationProperty
@Stability(Stable)
public static final class CfnPipe.AwsVpcConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipe.AwsVpcConfigurationProperty>
A builder for
CfnPipe.AwsVpcConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassignPublicIp
(String assignPublicIp) Sets the value ofCfnPipe.AwsVpcConfigurationProperty.getAssignPublicIp()
build()
Builds the configured instance.securityGroups
(List<String> securityGroups) Sets the value ofCfnPipe.AwsVpcConfigurationProperty.getSecurityGroups()
Sets the value ofCfnPipe.AwsVpcConfigurationProperty.getSubnets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
subnets
Sets the value ofCfnPipe.AwsVpcConfigurationProperty.getSubnets()
- Parameters:
subnets
- Specifies the subnets associated with the task. This parameter is required. These subnets must all be in the same VPC. You can specify as many as 16 subnets.- Returns:
this
-
assignPublicIp
@Stability(Stable) public CfnPipe.AwsVpcConfigurationProperty.Builder assignPublicIp(String assignPublicIp) Sets the value ofCfnPipe.AwsVpcConfigurationProperty.getAssignPublicIp()
- Parameters:
assignPublicIp
- Specifies whether the task's elastic network interface receives a public IP address. You can specifyENABLED
only whenLaunchType
inEcsParameters
is set toFARGATE
.- Returns:
this
-
securityGroups
@Stability(Stable) public CfnPipe.AwsVpcConfigurationProperty.Builder securityGroups(List<String> securityGroups) Sets the value ofCfnPipe.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
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPipe.AwsVpcConfigurationProperty>
- Returns:
- a new instance of
CfnPipe.AwsVpcConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-