Class CfnRuntime.VpcConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CfnRuntime.VpcConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuntime.VpcConfigProperty>
- Enclosing interface:
CfnRuntime.VpcConfigProperty
@Stability(Stable)
public static final class CfnRuntime.VpcConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuntime.VpcConfigProperty>
A builder for
CfnRuntime.VpcConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.securityGroups(List<String> securityGroups) Sets the value ofCfnRuntime.VpcConfigProperty.getSecurityGroups()Sets the value ofCfnRuntime.VpcConfigProperty.getSubnets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
securityGroups
@Stability(Stable) public CfnRuntime.VpcConfigProperty.Builder securityGroups(List<String> securityGroups) Sets the value ofCfnRuntime.VpcConfigProperty.getSecurityGroups()- Parameters:
securityGroups- Security groups for VPC. This parameter is required.- Returns:
this
-
subnets
Sets the value ofCfnRuntime.VpcConfigProperty.getSubnets()- Parameters:
subnets- Subnets for VPC. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRuntime.VpcConfigProperty>- Returns:
- a new instance of
CfnRuntime.VpcConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-