Class CfnCanaryPropsMixin.VPCConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.synthetics.CfnCanaryPropsMixin.VPCConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCanaryPropsMixin.VPCConfigProperty>
- Enclosing interface:
CfnCanaryPropsMixin.VPCConfigProperty
@Stability(Stable)
public static final class CfnCanaryPropsMixin.VPCConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCanaryPropsMixin.VPCConfigProperty>
A builder for
CfnCanaryPropsMixin.VPCConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.ipv6AllowedForDualStack(Boolean ipv6AllowedForDualStack) Sets the value ofCfnCanaryPropsMixin.VPCConfigProperty.getIpv6AllowedForDualStack()ipv6AllowedForDualStack(IResolvable ipv6AllowedForDualStack) Sets the value ofCfnCanaryPropsMixin.VPCConfigProperty.getIpv6AllowedForDualStack()securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnCanaryPropsMixin.VPCConfigProperty.getSecurityGroupIds()Sets the value ofCfnCanaryPropsMixin.VPCConfigProperty.getSubnetIds()Sets the value ofCfnCanaryPropsMixin.VPCConfigProperty.getVpcId()Sets the value ofCfnCanaryPropsMixin.VPCConfigProperty.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ipv6AllowedForDualStack
@Stability(Stable) public CfnCanaryPropsMixin.VPCConfigProperty.Builder ipv6AllowedForDualStack(Boolean ipv6AllowedForDualStack) Sets the value ofCfnCanaryPropsMixin.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 CfnCanaryPropsMixin.VPCConfigProperty.Builder ipv6AllowedForDualStack(IResolvable ipv6AllowedForDualStack) Sets the value ofCfnCanaryPropsMixin.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
-
securityGroupIds
@Stability(Stable) public CfnCanaryPropsMixin.VPCConfigProperty.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnCanaryPropsMixin.VPCConfigProperty.getSecurityGroupIds()- Parameters:
securityGroupIds- The IDs of the security groups for this canary.- Returns:
this
-
subnetIds
@Stability(Stable) public CfnCanaryPropsMixin.VPCConfigProperty.Builder subnetIds(List<? extends Object> subnetIds) Sets the value ofCfnCanaryPropsMixin.VPCConfigProperty.getSubnetIds()- Parameters:
subnetIds- The IDs of the subnets where this canary is to run.- Returns:
this
-
vpcId
Sets the value ofCfnCanaryPropsMixin.VPCConfigProperty.getVpcId()- Parameters:
vpcId- The ID of the VPC where this canary is to run.- Returns:
this
-
vpcId
Sets the value ofCfnCanaryPropsMixin.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<CfnCanaryPropsMixin.VPCConfigProperty>- Returns:
- a new instance of
CfnCanaryPropsMixin.VPCConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-