Class CfnProject.VpcConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.devicefarm.CfnProject.VpcConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProject.VpcConfigProperty>
- Enclosing interface:
CfnProject.VpcConfigProperty
@Stability(Stable)
public static final class CfnProject.VpcConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProject.VpcConfigProperty>
A builder for
CfnProject.VpcConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.securityGroupIds
(List<String> securityGroupIds) Sets the value ofCfnProject.VpcConfigProperty.getSecurityGroupIds()
Sets the value ofCfnProject.VpcConfigProperty.getSubnetIds()
Sets the value ofCfnProject.VpcConfigProperty.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
securityGroupIds
@Stability(Stable) public CfnProject.VpcConfigProperty.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnProject.VpcConfigProperty.getSecurityGroupIds()
- Parameters:
securityGroupIds
- A list of VPC security group IDs. This parameter is required. A security group allows inbound traffic from network interfaces (and their associated instances) that are assigned to the same security group. See Security groups in the Amazon Virtual Private Cloud user guide .- Returns:
this
-
subnetIds
Sets the value ofCfnProject.VpcConfigProperty.getSubnetIds()
- Parameters:
subnetIds
- A subnet is a range of IP addresses in your VPC. This parameter is required. You can launch Amazon resources, such as EC2 instances, into a specific subnet. When you create a subnet, you specify the IPv4 CIDR block for the subnet, which is a subset of the VPC CIDR block. See VPCs and subnets in the Amazon Virtual Private Cloud user guide .- Returns:
this
-
vpcId
Sets the value ofCfnProject.VpcConfigProperty.getVpcId()
- Parameters:
vpcId
- A list of VPC IDs. This parameter is required. Each VPC is given a unique ID upon creation.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnProject.VpcConfigProperty>
- Returns:
- a new instance of
CfnProject.VpcConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-