Class CfnAgentSpace.VpcConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.securityagent.CfnAgentSpace.VpcConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAgentSpace.VpcConfigProperty>
- Enclosing interface:
CfnAgentSpace.VpcConfigProperty
@Stability(Stable)
public static final class CfnAgentSpace.VpcConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAgentSpace.VpcConfigProperty>
A builder for
CfnAgentSpace.VpcConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.securityGroupArns(List<String> securityGroupArns) Sets the value ofCfnAgentSpace.VpcConfigProperty.getSecurityGroupArns()subnetArns(List<String> subnetArns) Sets the value ofCfnAgentSpace.VpcConfigProperty.getSubnetArns()Sets the value ofCfnAgentSpace.VpcConfigProperty.getVpcArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
securityGroupArns
@Stability(Stable) public CfnAgentSpace.VpcConfigProperty.Builder securityGroupArns(List<String> securityGroupArns) Sets the value ofCfnAgentSpace.VpcConfigProperty.getSecurityGroupArns()- Parameters:
securityGroupArns- List of security group ARNs in the customer VPC.- Returns:
this
-
subnetArns
@Stability(Stable) public CfnAgentSpace.VpcConfigProperty.Builder subnetArns(List<String> subnetArns) Sets the value ofCfnAgentSpace.VpcConfigProperty.getSubnetArns()- Parameters:
subnetArns- List of subnet ARNs in the customer VPC.- Returns:
this
-
vpcArn
Sets the value ofCfnAgentSpace.VpcConfigProperty.getVpcArn()- Parameters:
vpcArn- ARN of the customer VPC.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAgentSpace.VpcConfigProperty>- Returns:
- a new instance of
CfnAgentSpace.VpcConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-