@Stability(value=Experimental) public static final class VpnConnectionProps.Builder extends Object implements software.amazon.jsii.Builder<VpnConnectionProps>
VpnConnectionProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
VpnConnectionProps.Builder |
asn(Number asn)
Sets the value of
VpnConnectionOptions.getAsn() |
VpnConnectionProps |
build()
Builds the configured instance.
|
VpnConnectionProps.Builder |
ip(String ip)
Sets the value of
VpnConnectionOptions.getIp() |
VpnConnectionProps.Builder |
staticRoutes(List<String> staticRoutes)
Sets the value of
VpnConnectionOptions.getStaticRoutes() |
VpnConnectionProps.Builder |
tunnelOptions(List<? extends VpnTunnelOption> tunnelOptions)
Sets the value of
VpnConnectionOptions.getTunnelOptions() |
VpnConnectionProps.Builder |
vpc(IVpc vpc)
Sets the value of
VpnConnectionProps.getVpc() |
@Stability(value=Experimental) public VpnConnectionProps.Builder vpc(IVpc vpc)
VpnConnectionProps.getVpc()vpc - The VPC to connect to. This parameter is required.this@Stability(value=Experimental) public VpnConnectionProps.Builder ip(String ip)
VpnConnectionOptions.getIp()ip - The ip address of the customer gateway. This parameter is required.this@Stability(value=Experimental) public VpnConnectionProps.Builder asn(Number asn)
VpnConnectionOptions.getAsn()asn - The ASN of the customer gateway.this@Stability(value=Experimental) public VpnConnectionProps.Builder staticRoutes(List<String> staticRoutes)
VpnConnectionOptions.getStaticRoutes()staticRoutes - The static routes to be routed from the VPN gateway to the customer gateway.this@Stability(value=Experimental) public VpnConnectionProps.Builder tunnelOptions(List<? extends VpnTunnelOption> tunnelOptions)
VpnConnectionOptions.getTunnelOptions()tunnelOptions - The tunnel options for the VPN connection.
At most two elements (one per tunnel).
Duplicates not allowed.this@Stability(value=Experimental) public VpnConnectionProps build()
build in interface software.amazon.jsii.Builder<VpnConnectionProps>VpnConnectionPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.