Class CfnAnomalyDetector.VpcConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lookoutmetrics.CfnAnomalyDetector.VpcConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalyDetector.VpcConfigurationProperty>
- Enclosing interface:
CfnAnomalyDetector.VpcConfigurationProperty
@Stability(Stable)
public static final class CfnAnomalyDetector.VpcConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnomalyDetector.VpcConfigurationProperty>
A builder for
CfnAnomalyDetector.VpcConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.securityGroupIdList(List<String> securityGroupIdList) Sets the value ofCfnAnomalyDetector.VpcConfigurationProperty.getSecurityGroupIdList()subnetIdList(List<String> subnetIdList) Sets the value ofCfnAnomalyDetector.VpcConfigurationProperty.getSubnetIdList()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
securityGroupIdList
@Stability(Stable) public CfnAnomalyDetector.VpcConfigurationProperty.Builder securityGroupIdList(List<String> securityGroupIdList) Sets the value ofCfnAnomalyDetector.VpcConfigurationProperty.getSecurityGroupIdList()- Parameters:
securityGroupIdList- An array of strings containing the list of security groups. This parameter is required.- Returns:
this
-
subnetIdList
@Stability(Stable) public CfnAnomalyDetector.VpcConfigurationProperty.Builder subnetIdList(List<String> subnetIdList) Sets the value ofCfnAnomalyDetector.VpcConfigurationProperty.getSubnetIdList()- Parameters:
subnetIdList- An array of strings containing the Amazon VPC subnet IDs (e.g.,subnet-0bb1c79de3EXAMPLE. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAnomalyDetector.VpcConfigurationProperty>- Returns:
- a new instance of
CfnAnomalyDetector.VpcConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-