public static final class CreateVpnGatewayRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateVpnGatewayRequest.Builder |
autoPay(Boolean autoPay)
Specifies whether to enable automatic payment.
|
CreateVpnGatewayRequest.Builder |
bandwidth(Integer bandwidth)
The maximum bandwidth of the VPN gateway.
|
CreateVpnGatewayRequest |
build() |
CreateVpnGatewayRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
CreateVpnGatewayRequest.Builder |
disasterRecoveryVSwitchId(String disasterRecoveryVSwitchId)
The second vSwitch with which you want to associate the VPN gateway.
|
CreateVpnGatewayRequest.Builder |
enableIpsec(Boolean enableIpsec)
Specifies whether to enable IPsec-VPN for the VPN gateway.
|
CreateVpnGatewayRequest.Builder |
enableSsl(Boolean enableSsl)
Specifies whether to enable SSL-VPN.
|
CreateVpnGatewayRequest.Builder |
instanceChargeType(String instanceChargeType)
The billing method of the VPN gateway.
|
CreateVpnGatewayRequest.Builder |
name(String name)
The name of the VPN gateway.
|
CreateVpnGatewayRequest.Builder |
networkType(String networkType)
The network type of the VPN gateway.
|
CreateVpnGatewayRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
CreateVpnGatewayRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateVpnGatewayRequest.Builder |
period(Integer period)
The subscription duration.
|
CreateVpnGatewayRequest.Builder |
regionId(String regionId)
The region ID of the VPN gateway.
|
CreateVpnGatewayRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group to which the VPN gateway belongs.
|
CreateVpnGatewayRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateVpnGatewayRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
CreateVpnGatewayRequest.Builder |
sslConnections(Integer sslConnections)
The maximum number of clients that can be connected at the same time.
|
CreateVpnGatewayRequest.Builder |
vpcId(String vpcId)
The ID of the virtual private cloud (VPC) where you want to create the VPN gateway.
|
CreateVpnGatewayRequest.Builder |
vpnType(String vpnType)
The type of the VPN gateway.
|
CreateVpnGatewayRequest.Builder |
vSwitchId(String vSwitchId)
The vSwitch with which you want to associate the VPN gateway.
|
public CreateVpnGatewayRequest.Builder autoPay(Boolean autoPay)
* **true** * **false** (default) > To create a VPN gateway, we recommend that you enable automatic payment. If you disable automatic payment, you must manually pay the bill to create the VPN gateway.
public CreateVpnGatewayRequest.Builder bandwidth(Integer bandwidth)
* If you want to create a public VPN gateway, valid values are **10**, **100**, **200**, **500**, and **1000**. * If you want to create a private VPN gateway, valid values are **200** and **1000**. > The maximum bandwidth supported by VPN gateways in some regions is 500 Mbit/s. For more information, see [VPN gateway limits](~~65290~~).
public CreateVpnGatewayRequest.Builder clientToken(String clientToken)
You can use the client to generate a value, and you must make sure that each request has a unique token value. The client token can contain only ASCII characters. > If you do not specify this parameter, the system automatically uses the value of **RequestId** as the value of **ClientToken**. The value of **RequestId** for each API request is different.
public CreateVpnGatewayRequest.Builder disasterRecoveryVSwitchId(String disasterRecoveryVSwitchId)
* If you call this operation in a region that supports the IPsec-VPN connections in dual-tunnel mode, this parameter is required. * You need to specify two vSwitches in different zones in the virtual private cloud (VPC) that is associated with the VPN gateway to implement disaster recovery across zones. * For a region that supports only one zone, disaster recovery across zones is not supported. We recommend that you specify two vSwitches in the zone to implement high availability. You can specify the same vSwitch. For more information about the regions and zones that support the IPsec-VPN connections in dual-tunnel mode, see [IPsec-VPN connections support the dual-tunnel mode](~~2358946~~).
public CreateVpnGatewayRequest.Builder enableIpsec(Boolean enableIpsec)
* **true** (default) * **false**
public CreateVpnGatewayRequest.Builder enableSsl(Boolean enableSsl)
* **true** * **false** (default)
public CreateVpnGatewayRequest.Builder instanceChargeType(String instanceChargeType)
public CreateVpnGatewayRequest.Builder name(String name)
The name must be 2 to 100 characters in length and cannot start with `http://` or `https://`. It must start with a letter and can contain letters, digits, underscores (\_), hyphens (-), and periods (.). Other special characters are not supported.
public CreateVpnGatewayRequest.Builder networkType(String networkType)
* **public** (default) * **private**
public CreateVpnGatewayRequest.Builder ownerAccount(String ownerAccount)
public CreateVpnGatewayRequest.Builder ownerId(Long ownerId)
public CreateVpnGatewayRequest.Builder period(Integer period)
public CreateVpnGatewayRequest.Builder regionId(String regionId)
public CreateVpnGatewayRequest.Builder resourceGroupId(String resourceGroupId)
* You can call the [ListResourceGroups](~~158855~~) operation to query resource group IDs. * If you do not specify a resource group ID, the VPN gateway belongs to the default resource group. * After the VPN gateway is created, the following resources also belong to the resource group and you cannot change the resource group: SSL servers, SSL client certificates, IPsec servers, and IPsec-VPN connections. If you move the VPN gateway to a new resource group, the preceding resources are also moved to the new resource group.
public CreateVpnGatewayRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateVpnGatewayRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateVpnGatewayRequest.Builder sslConnections(Integer sslConnections)
public CreateVpnGatewayRequest.Builder vSwitchId(String vSwitchId)
* If you call this operation in a region that supports the IPsec-VPN connections in dual-tunnel mode, this parameter is required. You must specify a vSwitch and specify **DisasterRecoveryVSwitchId**. * If you call this operation in a region that supports the IPsec-VPN connections in single-tunnel mode and do not specify a vSwitch, the system automatically specifies a vSwitch.
public CreateVpnGatewayRequest.Builder vpcId(String vpcId)
public CreateVpnGatewayRequest.Builder vpnType(String vpnType)
Set the value to **Normal** (default), which specifies a standard NAT gateway.
public CreateVpnGatewayRequest build()
Copyright © 2024. All rights reserved.