public class CreateVpnConnectionRequest extends AbstractModel
Constructor and Description |
---|
CreateVpnConnectionRequest() |
CreateVpnConnectionRequest(CreateVpnConnectionRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getCustomerGatewayId()
Get The ID of the customer gateway, such as `cgw-2wqq41m9`.
|
String |
getDpdAction()
Get The action after DPD timeout.
|
Long |
getDpdEnable()
Get Specifies whether to enable DPD.
|
String |
getDpdTimeout()
Get DPD timeout period.
|
Boolean |
getEnableHealthCheck()
Get Whether the tunnel health check is supported.
|
String |
getHealthCheckLocalIp()
Get Local IP of health check.
|
String |
getHealthCheckRemoteIp()
Get Peer IP of health check.
|
IKEOptionsSpecification |
getIKEOptionsSpecification()
Get Internet Key Exchange (IKE) configuration.
|
IPSECOptionsSpecification |
getIPSECOptionsSpecification()
Get IPSec configuration.
|
String |
getNegotiationType()
Get Negotiation type.
|
String |
getPreShareKey()
Get The pre-shared key.
|
String |
getRouteType()
Get Tunnel type.
|
SecurityPolicyDatabase[] |
getSecurityPolicyDatabases()
Get The SPD policy group, for example: {"10.0.0.5/24":["172.123.10.5/16"]}.
|
Tag[] |
getTags()
Get Bound tags, such as [{"Key": "city", "Value": "shanghai"}].
|
String |
getVpcId()
Get VPC instance ID, which can be obtained from the `VpcId` field in the response of the [`DescribeVpcs`](https://intl.cloud.tencent.com/document/product/215/15778?from_cn_redirect=1) API.
|
String |
getVpnConnectionName()
Get Gateway can be named freely, but the maximum length is 60 characters.
|
String |
getVpnGatewayId()
Get The ID of the VPN gateway instance.
|
void |
setCustomerGatewayId(String CustomerGatewayId)
Set The ID of the customer gateway, such as `cgw-2wqq41m9`.
|
void |
setDpdAction(String DpdAction)
Set The action after DPD timeout.
|
void |
setDpdEnable(Long DpdEnable)
Set Specifies whether to enable DPD.
|
void |
setDpdTimeout(String DpdTimeout)
Set DPD timeout period.
|
void |
setEnableHealthCheck(Boolean EnableHealthCheck)
Set Whether the tunnel health check is supported.
|
void |
setHealthCheckLocalIp(String HealthCheckLocalIp)
Set Local IP of health check.
|
void |
setHealthCheckRemoteIp(String HealthCheckRemoteIp)
Set Peer IP of health check.
|
void |
setIKEOptionsSpecification(IKEOptionsSpecification IKEOptionsSpecification)
Set Internet Key Exchange (IKE) configuration.
|
void |
setIPSECOptionsSpecification(IPSECOptionsSpecification IPSECOptionsSpecification)
Set IPSec configuration.
|
void |
setNegotiationType(String NegotiationType)
Set Negotiation type.
|
void |
setPreShareKey(String PreShareKey)
Set The pre-shared key.
|
void |
setRouteType(String RouteType)
Set Tunnel type.
|
void |
setSecurityPolicyDatabases(SecurityPolicyDatabase[] SecurityPolicyDatabases)
Set The SPD policy group, for example: {"10.0.0.5/24":["172.123.10.5/16"]}.
|
void |
setTags(Tag[] Tags)
Set Bound tags, such as [{"Key": "city", "Value": "shanghai"}].
|
void |
setVpcId(String VpcId)
Set VPC instance ID, which can be obtained from the `VpcId` field in the response of the [`DescribeVpcs`](https://intl.cloud.tencent.com/document/product/215/15778?from_cn_redirect=1) API.
|
void |
setVpnConnectionName(String VpnConnectionName)
Set Gateway can be named freely, but the maximum length is 60 characters.
|
void |
setVpnGatewayId(String VpnGatewayId)
Set The ID of the VPN gateway instance.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public CreateVpnConnectionRequest()
public CreateVpnConnectionRequest(CreateVpnConnectionRequest source)
public String getVpnGatewayId()
public void setVpnGatewayId(String VpnGatewayId)
VpnGatewayId
- The ID of the VPN gateway instance.public String getCustomerGatewayId()
public void setCustomerGatewayId(String CustomerGatewayId)
CustomerGatewayId
- The ID of the customer gateway, such as `cgw-2wqq41m9`. You can query the customer gateway by using the [DescribeCustomerGateways](https://intl.cloud.tencent.com/document/product/215/17516?from_cn_redirect=1) API.public String getVpnConnectionName()
public void setVpnConnectionName(String VpnConnectionName)
VpnConnectionName
- Gateway can be named freely, but the maximum length is 60 characters.public String getPreShareKey()
public void setPreShareKey(String PreShareKey)
PreShareKey
- The pre-shared key.public String getVpcId()
public void setVpcId(String VpcId)
VpcId
- VPC instance ID, which can be obtained from the `VpcId` field in the response of the [`DescribeVpcs`](https://intl.cloud.tencent.com/document/product/215/15778?from_cn_redirect=1) API.
This parameter is optional for a CCN-based VPN tunnel.public SecurityPolicyDatabase[] getSecurityPolicyDatabases()
public void setSecurityPolicyDatabases(SecurityPolicyDatabase[] SecurityPolicyDatabases)
SecurityPolicyDatabases
- The SPD policy group, for example: {"10.0.0.5/24":["172.123.10.5/16"]}. 10.0.0.5/24 is the VPC internal IP range, and 172.123.10.5/16 is the IDC IP range. The user specifies the IP range in the VPC that can communicate with the IP range in the IDC.public IKEOptionsSpecification getIKEOptionsSpecification()
public void setIKEOptionsSpecification(IKEOptionsSpecification IKEOptionsSpecification)
IKEOptionsSpecification
- Internet Key Exchange (IKE) configuration. IKE has a self-protection mechanism. The network security protocol is configured by the user.public IPSECOptionsSpecification getIPSECOptionsSpecification()
public void setIPSECOptionsSpecification(IPSECOptionsSpecification IPSECOptionsSpecification)
IPSECOptionsSpecification
- IPSec configuration. The IPSec secure session configuration is provided by Tencent Cloud.public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- Bound tags, such as [{"Key": "city", "Value": "shanghai"}].public Boolean getEnableHealthCheck()
public void setEnableHealthCheck(Boolean EnableHealthCheck)
EnableHealthCheck
- Whether the tunnel health check is supported. The default value is `False`.public String getHealthCheckLocalIp()
public void setHealthCheckLocalIp(String HealthCheckLocalIp)
HealthCheckLocalIp
- Local IP of health check. It defaults to a random IP within 169.254.128.0/17.public String getHealthCheckRemoteIp()
public void setHealthCheckRemoteIp(String HealthCheckRemoteIp)
HealthCheckRemoteIp
- Peer IP of health check. It defaults to a random IP within 169.254.128.0/17.public String getRouteType()
public void setRouteType(String RouteType)
RouteType
- Tunnel type. Valid values: `STATIC`, `StaticRoute`, and `Policy`.public String getNegotiationType()
public void setNegotiationType(String NegotiationType)
NegotiationType
- Negotiation type. Valid values: `active` (default value), `passive` and `flowTrigger`.public Long getDpdEnable()
public void setDpdEnable(Long DpdEnable)
DpdEnable
- Specifies whether to enable DPD. Valid values: `0` (disable) and `1` (enable)public String getDpdTimeout()
public void setDpdTimeout(String DpdTimeout)
DpdTimeout
- DPD timeout period. Default: 30; unit: second. If the request is not responded within this period, the peer end is considered not exists. This parameter is valid when the value of `DpdEnable` is 1.public String getDpdAction()
public void setDpdAction(String DpdAction)
DpdAction
- The action after DPD timeout. Valid values: `clear` (disconnect) and `restart` (try again). It’s valid when `DpdEnable` is `1`.Copyright © 2023. All rights reserved.