Class CfnProjectPropsMixin.VpcConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.devicefarm.CfnProjectPropsMixin.VpcConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProjectPropsMixin.VpcConfigProperty>
- Enclosing interface:
CfnProjectPropsMixin.VpcConfigProperty
@Stability(Stable)
public static final class CfnProjectPropsMixin.VpcConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProjectPropsMixin.VpcConfigProperty>
A builder for
CfnProjectPropsMixin.VpcConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnProjectPropsMixin.VpcConfigProperty.getSecurityGroupIds()Sets the value ofCfnProjectPropsMixin.VpcConfigProperty.getSubnetIds()Sets the value ofCfnProjectPropsMixin.VpcConfigProperty.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
securityGroupIds
@Stability(Stable) public CfnProjectPropsMixin.VpcConfigProperty.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnProjectPropsMixin.VpcConfigProperty.getSecurityGroupIds()- Parameters:
securityGroupIds- A list of VPC security group IDs. 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
@Stability(Stable) public CfnProjectPropsMixin.VpcConfigProperty.Builder subnetIds(List<String> subnetIds) Sets the value ofCfnProjectPropsMixin.VpcConfigProperty.getSubnetIds()- Parameters:
subnetIds- A subnet is a range of IP addresses in your VPC. 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 ofCfnProjectPropsMixin.VpcConfigProperty.getVpcId()- Parameters:
vpcId- A list of VPC IDs. Each VPC is given a unique ID upon creation.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnProjectPropsMixin.VpcConfigProperty>- Returns:
- a new instance of
CfnProjectPropsMixin.VpcConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-