public class VpnConnection extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
VpnConnection()  | 
VpnConnection(VpnConnection 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 | 
getCreatedTime()
Get Creation Time. 
 | 
String | 
getCustomerGatewayId()
Get Customer gateway instance ID. 
 | 
String | 
getDpdAction()
Get The action to take in case of DPD timeout. 
 | 
Long | 
getDpdEnable()
Get Whether to enable DPD. 
 | 
String | 
getDpdTimeout()
Get DPD timeout period. 
 | 
Boolean | 
getEnableHealthCheck()
Get Whether the health check is supported. 
 | 
String | 
getEncryptProto()
Get Tunnel encryption protocol. 
 | 
String | 
getHealthCheckLocalIp()
Get Local IP address for the health check 
 | 
String | 
getHealthCheckRemoteIp()
Get Peer IP address for the health check 
 | 
String | 
getHealthCheckStatus()
Get Tunnel health check status. 
 | 
IKEOptionsSpecification | 
getIKEOptionsSpecification()
Get IKE options. 
 | 
IPSECOptionsSpecification | 
getIPSECOptionsSpecification()
Get IPSEC options. 
 | 
String | 
getNegotiationType()
Get Negotiation type
Note: This field may return null, indicating that no valid values can be obtained. 
 | 
String | 
getNetStatus()
Get Connection status of the tunnel. 
 | 
String | 
getPreShareKey()
Get The pre-shared key. 
 | 
String | 
getRouteType()
Get Route Type. 
 | 
SecurityPolicyDatabase[] | 
getSecurityPolicyDatabaseSet()
Get SPD. 
 | 
String | 
getState()
Get Production status of the tunnel. 
 | 
Tag[] | 
getTagSet()
Get Array of tag key-value pairs 
 | 
String | 
getVpcId()
Get VPC instance ID. 
 | 
String | 
getVpnConnectionId()
Get Tunnel instance ID. 
 | 
String | 
getVpnConnectionName()
Get Tunnel name. 
 | 
String | 
getVpnGatewayId()
Get The ID of the VPN gateway instance. 
 | 
String | 
getVpnProto()
Get Tunnel transmission protocol. 
 | 
void | 
setCreatedTime(String CreatedTime)
Set Creation Time. 
 | 
void | 
setCustomerGatewayId(String CustomerGatewayId)
Set Customer gateway instance ID. 
 | 
void | 
setDpdAction(String DpdAction)
Set The action to take in case of DPD timeout. 
 | 
void | 
setDpdEnable(Long DpdEnable)
Set Whether to enable DPD. 
 | 
void | 
setDpdTimeout(String DpdTimeout)
Set DPD timeout period. 
 | 
void | 
setEnableHealthCheck(Boolean EnableHealthCheck)
Set Whether the health check is supported. 
 | 
void | 
setEncryptProto(String EncryptProto)
Set Tunnel encryption protocol. 
 | 
void | 
setHealthCheckLocalIp(String HealthCheckLocalIp)
Set Local IP address for the health check 
 | 
void | 
setHealthCheckRemoteIp(String HealthCheckRemoteIp)
Set Peer IP address for the health check 
 | 
void | 
setHealthCheckStatus(String HealthCheckStatus)
Set Tunnel health check status. 
 | 
void | 
setIKEOptionsSpecification(IKEOptionsSpecification IKEOptionsSpecification)
Set IKE options. 
 | 
void | 
setIPSECOptionsSpecification(IPSECOptionsSpecification IPSECOptionsSpecification)
Set IPSEC options. 
 | 
void | 
setNegotiationType(String NegotiationType)
Set Negotiation type
Note: This field may return null, indicating that no valid values can be obtained. 
 | 
void | 
setNetStatus(String NetStatus)
Set Connection status of the tunnel. 
 | 
void | 
setPreShareKey(String PreShareKey)
Set The pre-shared key. 
 | 
void | 
setRouteType(String RouteType)
Set Route Type. 
 | 
void | 
setSecurityPolicyDatabaseSet(SecurityPolicyDatabase[] SecurityPolicyDatabaseSet)
Set SPD. 
 | 
void | 
setState(String State)
Set Production status of the tunnel. 
 | 
void | 
setTagSet(Tag[] TagSet)
Set Array of tag key-value pairs 
 | 
void | 
setVpcId(String VpcId)
Set VPC instance ID. 
 | 
void | 
setVpnConnectionId(String VpnConnectionId)
Set Tunnel instance ID. 
 | 
void | 
setVpnConnectionName(String VpnConnectionName)
Set Tunnel name. 
 | 
void | 
setVpnGatewayId(String VpnGatewayId)
Set The ID of the VPN gateway instance. 
 | 
void | 
setVpnProto(String VpnProto)
Set Tunnel transmission protocol. 
 | 
void | 
toMap(HashMap<String,String> map,
     String prefix)
Internal implementation, normal users should not use it. 
 | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic VpnConnection()
public VpnConnection(VpnConnection source)
public String getVpnConnectionId()
public void setVpnConnectionId(String VpnConnectionId)
VpnConnectionId - Tunnel instance ID.public String getVpnConnectionName()
public void setVpnConnectionName(String VpnConnectionName)
VpnConnectionName - Tunnel name.public String getVpcId()
public void setVpcId(String VpcId)
VpcId - VPC instance ID.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 - Customer gateway instance ID.public String getPreShareKey()
public void setPreShareKey(String PreShareKey)
PreShareKey - The pre-shared key.public String getVpnProto()
public void setVpnProto(String VpnProto)
VpnProto - Tunnel transmission protocol.public String getEncryptProto()
public void setEncryptProto(String EncryptProto)
EncryptProto - Tunnel encryption protocol.public String getRouteType()
public void setRouteType(String RouteType)
RouteType - Route Type.public String getCreatedTime()
public void setCreatedTime(String CreatedTime)
CreatedTime - Creation Time.public String getState()
public void setState(String State)
State - Production status of the tunnel. PENDING: Creating; AVAILABLE: Running; DELETING: Deleting.public String getNetStatus()
public void setNetStatus(String NetStatus)
NetStatus - Connection status of the tunnel. AVAILABLE: Connected.public SecurityPolicyDatabase[] getSecurityPolicyDatabaseSet()
public void setSecurityPolicyDatabaseSet(SecurityPolicyDatabase[] SecurityPolicyDatabaseSet)
SecurityPolicyDatabaseSet - SPD.public IKEOptionsSpecification getIKEOptionsSpecification()
public void setIKEOptionsSpecification(IKEOptionsSpecification IKEOptionsSpecification)
IKEOptionsSpecification - IKE options.public IPSECOptionsSpecification getIPSECOptionsSpecification()
public void setIPSECOptionsSpecification(IPSECOptionsSpecification IPSECOptionsSpecification)
IPSECOptionsSpecification - IPSEC options.public Boolean getEnableHealthCheck()
public void setEnableHealthCheck(Boolean EnableHealthCheck)
EnableHealthCheck - Whether the health check is supported.public String getHealthCheckLocalIp()
public void setHealthCheckLocalIp(String HealthCheckLocalIp)
HealthCheckLocalIp - Local IP address for the health checkpublic String getHealthCheckRemoteIp()
public void setHealthCheckRemoteIp(String HealthCheckRemoteIp)
HealthCheckRemoteIp - Peer IP address for the health checkpublic String getHealthCheckStatus()
public void setHealthCheckStatus(String HealthCheckStatus)
HealthCheckStatus - Tunnel health check status. Valid values: AVAILABLE: healthy; UNAVAILABLE: unhealthy. This parameter will be returned only after health check is enabled.public Long getDpdEnable()
public void setDpdEnable(Long DpdEnable)
DpdEnable - Whether to enable DPD. Values: `0` (Disable) and `1` (Enable)
Note: This field may return null, indicating that no valid values can be obtained.public String getDpdTimeout()
public void setDpdTimeout(String DpdTimeout)
DpdTimeout - DPD timeout period. 
Note: This field may return null, indicating that no valid values can be obtained.public String getDpdAction()
public void setDpdAction(String DpdAction)
DpdAction - The action to take in case of DPD timeout. Values: `clear` (Disconnect) and `restart` (retry). This parameter only takes effect when `DpdEnable` is set to `1`.
Note: This field may return null, indicating that no valid values can be obtained.public Tag[] getTagSet()
public void setTagSet(Tag[] TagSet)
TagSet - Array of tag key-value pairspublic String getNegotiationType()
public void setNegotiationType(String NegotiationType)
NegotiationType - Negotiation type
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2025. All rights reserved.