public static final class CreateVpnConnectionRequest.TunnelOptionsSpecification.Builder extends Object
构造器和说明 |
---|
Builder() |
public CreateVpnConnectionRequest.TunnelOptionsSpecification.Builder customerGatewayId(String customerGatewayId)
> * This parameter is required if the VPN gateway supports the dual-tunnel mode. >* You can specify the parameters in the **TunnelOptionsSpecification** array if you create an IPsec-VPN connection in dual-tunnel mode. >* If you create an IPsec-VPN connection in dual-tunnel mode, you need to configure an active tunnel and a standby tunnel. Each IPsec-VPN connection supports only one active tunnel and one standby tunnel.
public CreateVpnConnectionRequest.TunnelOptionsSpecification.Builder enableDpd(Boolean enableDpd)
* **true** (default) The initiator of the IPsec-VPN connection sends DPD packets to verify the existence and availability of the peer. If no feedback is received from the peer within a specified period of time, the connection fails. ISAKMP SAs and IPsec SAs are deleted. The IPsec tunnel is also deleted. * **false**
public CreateVpnConnectionRequest.TunnelOptionsSpecification.Builder enableNatTraversal(Boolean enableNatTraversal)
* **true** (default) After NAT traversal is enabled, the verification process for the peer UDP port is deleted from IKE negotiations. In addition, the NAT gateway in the tunnel can be found. * **false**
public CreateVpnConnectionRequest.TunnelOptionsSpecification.Builder remoteCaCertificate(String remoteCaCertificate)
* If an SM VPN gateway is used to create the IPsec-VPN connection, this parameter is required. * If a standard VPN gateway is used to create the IPsec-VPN connection, leave this parameter empty.
public CreateVpnConnectionRequest.TunnelOptionsSpecification.Builder role(String role)
* **master**: The tunnel is the active tunnel. * **slave**: The tunnel is the standby tunnel.
public CreateVpnConnectionRequest.TunnelOptionsSpecification.Builder tunnelBgpConfig(CreateVpnConnectionRequest.TunnelBgpConfig tunnelBgpConfig)
public CreateVpnConnectionRequest.TunnelOptionsSpecification.Builder tunnelIkeConfig(CreateVpnConnectionRequest.TunnelIkeConfig tunnelIkeConfig)
public CreateVpnConnectionRequest.TunnelOptionsSpecification.Builder tunnelIpsecConfig(CreateVpnConnectionRequest.TunnelIpsecConfig tunnelIpsecConfig)
public CreateVpnConnectionRequest.TunnelOptionsSpecification build()
Copyright © 2024. All rights reserved.