public static final class VpnConnectionProps.Builder
extends java.lang.Object
VpnConnectionProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
VpnConnectionProps.Builder |
asn(java.lang.Number asn)
Sets the value of
VpnConnectionOptions.getAsn() |
VpnConnectionProps |
build()
Builds the configured instance.
|
VpnConnectionProps.Builder |
ip(java.lang.String ip)
Sets the value of
VpnConnectionOptions.getIp() |
VpnConnectionProps.Builder |
staticRoutes(java.util.List<java.lang.String> staticRoutes)
Sets the value of
VpnConnectionOptions.getStaticRoutes() |
VpnConnectionProps.Builder |
tunnelOptions(java.util.List<? extends VpnTunnelOption> tunnelOptions)
Sets the value of
VpnConnectionOptions.getTunnelOptions() |
VpnConnectionProps.Builder |
vpc(IVpc vpc)
Sets the value of
VpnConnectionProps.getVpc() |
public VpnConnectionProps.Builder vpc(IVpc vpc)
VpnConnectionProps.getVpc()
vpc
- The VPC to connect to. This parameter is required.this
public VpnConnectionProps.Builder ip(java.lang.String ip)
VpnConnectionOptions.getIp()
ip
- The ip address of the customer gateway. This parameter is required.this
public VpnConnectionProps.Builder asn(java.lang.Number asn)
VpnConnectionOptions.getAsn()
asn
- The ASN of the customer gateway.this
public VpnConnectionProps.Builder staticRoutes(java.util.List<java.lang.String> staticRoutes)
VpnConnectionOptions.getStaticRoutes()
staticRoutes
- The static routes to be routed from the VPN gateway to the customer gateway.this
public VpnConnectionProps.Builder tunnelOptions(java.util.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
public VpnConnectionProps build()
VpnConnectionProps
java.lang.NullPointerException
- if any required attribute was not provided