Class CfnCanary.VPCConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.synthetics.CfnCanary.VPCConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCanary.VPCConfigProperty>
- Enclosing interface:
CfnCanary.VPCConfigProperty
@Stability(Stable)
public static final class CfnCanary.VPCConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCanary.VPCConfigProperty>
A builder for
CfnCanary.VPCConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.securityGroupIds
(List<String> securityGroupIds) Sets the value ofCfnCanary.VPCConfigProperty.getSecurityGroupIds()
Sets the value ofCfnCanary.VPCConfigProperty.getSubnetIds()
Sets the value ofCfnCanary.VPCConfigProperty.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
securityGroupIds
@Stability(Stable) public CfnCanary.VPCConfigProperty.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnCanary.VPCConfigProperty.getSecurityGroupIds()
- Parameters:
securityGroupIds
- The IDs of the security groups for this canary. This parameter is required.- Returns:
this
-
subnetIds
Sets the value ofCfnCanary.VPCConfigProperty.getSubnetIds()
- Parameters:
subnetIds
- The IDs of the subnets where this canary is to run. This parameter is required.- Returns:
this
-
vpcId
Sets the value ofCfnCanary.VPCConfigProperty.getVpcId()
- Parameters:
vpcId
- The ID of the VPC where this canary is to run.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCanary.VPCConfigProperty>
- Returns:
- a new instance of
CfnCanary.VPCConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-