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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.ipv6AllowedForDualStack(Boolean ipv6AllowedForDualStack) Sets the value ofCfnCanary.VPCConfigProperty.getIpv6AllowedForDualStack()ipv6AllowedForDualStack(IResolvable ipv6AllowedForDualStack) Sets the value ofCfnCanary.VPCConfigProperty.getIpv6AllowedForDualStack()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
-
ipv6AllowedForDualStack
@Stability(Stable) public CfnCanary.VPCConfigProperty.Builder ipv6AllowedForDualStack(Boolean ipv6AllowedForDualStack) Sets the value ofCfnCanary.VPCConfigProperty.getIpv6AllowedForDualStack()- Parameters:
ipv6AllowedForDualStack- Set this totrueto allow outbound IPv6 traffic on VPC canaries that are connected to dual-stack subnets. The default isfalse.- Returns:
this
-
ipv6AllowedForDualStack
@Stability(Stable) public CfnCanary.VPCConfigProperty.Builder ipv6AllowedForDualStack(IResolvable ipv6AllowedForDualStack) Sets the value ofCfnCanary.VPCConfigProperty.getIpv6AllowedForDualStack()- Parameters:
ipv6AllowedForDualStack- Set this totrueto allow outbound IPv6 traffic on VPC canaries that are connected to dual-stack subnets. The default isfalse.- 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnCanary.VPCConfigProperty>- Returns:
- a new instance of
CfnCanary.VPCConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-