Class CfnDataSource.DataSourceVpcConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.qbusiness.CfnDataSource.DataSourceVpcConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSource.DataSourceVpcConfigurationProperty>
- Enclosing interface:
CfnDataSource.DataSourceVpcConfigurationProperty
@Stability(Stable)
public static final class CfnDataSource.DataSourceVpcConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSource.DataSourceVpcConfigurationProperty>
A builder for
CfnDataSource.DataSourceVpcConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.securityGroupIds
(List<String> securityGroupIds) Sets the value ofCfnDataSource.DataSourceVpcConfigurationProperty.getSecurityGroupIds()
Sets the value ofCfnDataSource.DataSourceVpcConfigurationProperty.getSubnetIds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
securityGroupIds
@Stability(Stable) public CfnDataSource.DataSourceVpcConfigurationProperty.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnDataSource.DataSourceVpcConfigurationProperty.getSecurityGroupIds()
- Parameters:
securityGroupIds
- A list of identifiers of security groups within your Amazon VPC. This parameter is required. The security groups should enable Amazon Q Business to connect to the data source.- Returns:
this
-
subnetIds
@Stability(Stable) public CfnDataSource.DataSourceVpcConfigurationProperty.Builder subnetIds(List<String> subnetIds) Sets the value ofCfnDataSource.DataSourceVpcConfigurationProperty.getSubnetIds()
- Parameters:
subnetIds
- A list of identifiers for subnets within your Amazon VPC. This parameter is required. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataSource.DataSourceVpcConfigurationProperty>
- Returns:
- a new instance of
CfnDataSource.DataSourceVpcConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-