Class VpnTunnelOption.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.VpnTunnelOption.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VpnTunnelOption>
- Enclosing interface:
VpnTunnelOption
@Stability(Stable)
public static final class VpnTunnelOption.Builder
extends Object
implements software.amazon.jsii.Builder<VpnTunnelOption>
A builder for
VpnTunnelOption
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.preSharedKey
(String preSharedKey) Deprecated.Use `preSharedKeySecret` insteadpreSharedKeySecret
(SecretValue preSharedKeySecret) Sets the value ofVpnTunnelOption.getPreSharedKeySecret()
tunnelInsideCidr
(String tunnelInsideCidr) Sets the value ofVpnTunnelOption.getTunnelInsideCidr()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
tunnelInsideCidr
Sets the value ofVpnTunnelOption.getTunnelInsideCidr()
- Parameters:
tunnelInsideCidr
- The range of inside IP addresses for the tunnel. Any specified CIDR blocks must be unique across all VPN connections that use the same virtual private gateway. A size /30 CIDR block from the 169.254.0.0/16 range.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<VpnTunnelOption>
- Returns:
- a new instance of
VpnTunnelOption
- Throws:
NullPointerException
- if any required attribute was not provided