public class CreateVpnGatewayRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
Boolean |
autoPay
Specifies whether to enable automatic payment.
|
Integer |
bandwidth
The maximum bandwidth of the VPN gateway.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
disasterRecoveryVSwitchId
The second vSwitch with which you want to associate the VPN gateway.
|
Boolean |
enableIpsec
Specifies whether to enable IPsec-VPN for the VPN gateway.
|
Boolean |
enableSsl
Specifies whether to enable SSL-VPN.
|
String |
instanceChargeType
The billing method of the VPN gateway.
|
String |
name
The name of the VPN gateway.
|
String |
networkType
The network type of the VPN gateway.
|
String |
ownerAccount |
Long |
ownerId |
Integer |
period
The subscription duration.
|
String |
regionId
The region ID of the VPN gateway.
|
String |
resourceGroupId
The ID of the resource group to which the VPN gateway belongs.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
Integer |
sslConnections
The maximum number of clients that can be connected at the same time.
|
String |
vpcId
The ID of the virtual private cloud (VPC) where you want to create the VPN gateway.
|
String |
vpnType
The type of the VPN gateway.
|
String |
vSwitchId
The vSwitch with which you want to associate the VPN gateway.
|
构造器和说明 |
---|
CreateVpnGatewayRequest() |
@NameInMap(value="AutoPay") public Boolean autoPay
Specifies whether to enable automatic payment. Valid values:
example: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.
false
@NameInMap(value="Bandwidth") public Integer bandwidth
The maximum bandwidth of the VPN gateway. Unit: Mbit/s.
The maximum bandwidth supported by VPN gateways in some regions is 500 Mbit/s. For more information, see VPN gateway limits.
This parameter is required.
example:5
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request.
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.
example: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.
02fb3da4****
@NameInMap(value="DisasterRecoveryVSwitchId") public String disasterRecoveryVSwitchId
The second vSwitch with which you want to associate the VPN gateway.
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.
example:vsw-p0wiz7obm0tbimu4r****
@NameInMap(value="EnableIpsec") public Boolean enableIpsec
Specifies whether to enable IPsec-VPN for the VPN gateway. Valid values:
true
@NameInMap(value="EnableSsl") public Boolean enableSsl
Specifies whether to enable SSL-VPN. Valid values:
false
@NameInMap(value="InstanceChargeType") public String instanceChargeType
The billing method of the VPN gateway. Set the value to POSTPAY, which specifies the pay-as-you-go billing method.
example:Example value for the Alibaba Cloud China site: PREPAY. Example value for the Alibaba Cloud International site: POSTPAY.
@NameInMap(value="Name") public String name
The name of the VPN gateway. The default value is the ID of the VPN gateway.
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.
MYVPN
@NameInMap(value="NetworkType") public String networkType
The network type of the VPN gateway. Valid values:
public
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="Period") public Integer period
The subscription duration. Unit: month. Valid values: 1 to 9, 12, 24, and 36.
example:1
@NameInMap(value="RegionId") public String regionId
The region ID of the VPN gateway. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group to which the VPN gateway belongs.
You can call the ListResourceGroups 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.
rg-acfmzs372yg****
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="SslConnections") public Integer sslConnections
The maximum number of clients that can be connected at the same time. Valid values: 5 (default), 10, 20, 50, 100, 200, 500, and 1000.
example:5
@NameInMap(value="VSwitchId") public String vSwitchId
The vSwitch with which you want to associate the VPN gateway.
vsw-bp1j5miw2bae9s2vt****
@NameInMap(value="VpcId") public String vpcId
The ID of the virtual private cloud (VPC) where you want to create the VPN gateway.
This parameter is required.
example:vpc-bp1ub1yt9cvakoelj****
@NameInMap(value="VpnType") public String vpnType
The type of the VPN gateway. Valid values:
Set the value to Normal (default), which specifies a standard NAT gateway.
example:Normal
public static CreateVpnGatewayRequest build(Map<String,?> map) throws Exception
Exception
public CreateVpnGatewayRequest setAutoPay(Boolean autoPay)
public Boolean getAutoPay()
public CreateVpnGatewayRequest setBandwidth(Integer bandwidth)
public Integer getBandwidth()
public CreateVpnGatewayRequest setClientToken(String clientToken)
public String getClientToken()
public CreateVpnGatewayRequest setDisasterRecoveryVSwitchId(String disasterRecoveryVSwitchId)
public String getDisasterRecoveryVSwitchId()
public CreateVpnGatewayRequest setEnableIpsec(Boolean enableIpsec)
public Boolean getEnableIpsec()
public CreateVpnGatewayRequest setEnableSsl(Boolean enableSsl)
public Boolean getEnableSsl()
public CreateVpnGatewayRequest setInstanceChargeType(String instanceChargeType)
public String getInstanceChargeType()
public CreateVpnGatewayRequest setName(String name)
public String getName()
public CreateVpnGatewayRequest setNetworkType(String networkType)
public String getNetworkType()
public CreateVpnGatewayRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public CreateVpnGatewayRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateVpnGatewayRequest setPeriod(Integer period)
public Integer getPeriod()
public CreateVpnGatewayRequest setRegionId(String regionId)
public String getRegionId()
public CreateVpnGatewayRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateVpnGatewayRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateVpnGatewayRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CreateVpnGatewayRequest setSslConnections(Integer sslConnections)
public Integer getSslConnections()
public CreateVpnGatewayRequest setVSwitchId(String vSwitchId)
public String getVSwitchId()
public CreateVpnGatewayRequest setVpcId(String vpcId)
public String getVpcId()
public CreateVpnGatewayRequest setVpnType(String vpnType)
public String getVpnType()
Copyright © 2024. All rights reserved.