com.tencentcloudapi.vpc.v20170312.models.CreateVpnConnectionRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-vpc Show documentation
Show all versions of tencentcloud-sdk-java-vpc Show documentation
Tencent Cloud Open API SDK for Java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.vpc.v20170312.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class CreateVpnConnectionRequest extends AbstractModel{
/**
* VPN网关实例ID。
*/
@SerializedName("VpnGatewayId")
@Expose
private String VpnGatewayId;
/**
* 对端网关ID,例如:cgw-2wqq41m9,可通过DescribeCustomerGateways接口查询对端网关。
*/
@SerializedName("CustomerGatewayId")
@Expose
private String CustomerGatewayId;
/**
* 通道名称,可任意命名,但不得超过60个字符。
*/
@SerializedName("VpnConnectionName")
@Expose
private String VpnConnectionName;
/**
* 预共享密钥。
*/
@SerializedName("PreShareKey")
@Expose
private String PreShareKey;
/**
* VPC实例ID。可通过[DescribeVpcs](https://cloud.tencent.com/document/product/215/15778)接口返回值中的VpcId获取。
CCN VPN 形的通道 可以不传VPCID
*/
@SerializedName("VpcId")
@Expose
private String VpcId;
/**
* SPD策略组,例如:{"10.0.0.5/24":["172.123.10.5/16"]},10.0.0.5/24是vpc内网段172.123.10.5/16是IDC网段。用户指定VPC内哪些网段可以和您IDC中哪些网段通信。
*/
@SerializedName("SecurityPolicyDatabases")
@Expose
private SecurityPolicyDatabase [] SecurityPolicyDatabases;
/**
* IKE配置(Internet Key Exchange,因特网密钥交换),IKE具有一套自我保护机制,用户配置网络安全协议
*/
@SerializedName("IKEOptionsSpecification")
@Expose
private IKEOptionsSpecification IKEOptionsSpecification;
/**
* IPSec配置,腾讯云提供IPSec安全会话设置
*/
@SerializedName("IPSECOptionsSpecification")
@Expose
private IPSECOptionsSpecification IPSECOptionsSpecification;
/**
* 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}]
*/
@SerializedName("Tags")
@Expose
private Tag [] Tags;
/**
* 是否支持隧道内健康检查
*/
@SerializedName("EnableHealthCheck")
@Expose
private Boolean EnableHealthCheck;
/**
* 健康检查本端地址
*/
@SerializedName("HealthCheckLocalIp")
@Expose
private String HealthCheckLocalIp;
/**
* 健康检查对端地址
*/
@SerializedName("HealthCheckRemoteIp")
@Expose
private String HealthCheckRemoteIp;
/**
* 通道类型, 例如:["STATIC", "StaticRoute", "Policy"]
*/
@SerializedName("RouteType")
@Expose
private String RouteType;
/**
* 协商类型,默认为active(主动协商)。可选值:active(主动协商),passive(被动协商),flowTrigger(流量协商)
*/
@SerializedName("NegotiationType")
@Expose
private String NegotiationType;
/**
* DPD探测开关。默认为0,表示关闭DPD探测。可选值:0(关闭),1(开启)
*/
@SerializedName("DpdEnable")
@Expose
private Long DpdEnable;
/**
* DPD超时时间。即探测确认对端不存在需要的时间。dpdEnable为1(开启)时有效。默认30,单位为秒
*/
@SerializedName("DpdTimeout")
@Expose
private String DpdTimeout;
/**
* DPD超时后的动作。默认为clear。dpdEnable为1(开启)时有效。可取值为clear(断开)和restart(重试)
*/
@SerializedName("DpdAction")
@Expose
private String DpdAction;
/**
* Get VPN网关实例ID。
* @return VpnGatewayId VPN网关实例ID。
*/
public String getVpnGatewayId() {
return this.VpnGatewayId;
}
/**
* Set VPN网关实例ID。
* @param VpnGatewayId VPN网关实例ID。
*/
public void setVpnGatewayId(String VpnGatewayId) {
this.VpnGatewayId = VpnGatewayId;
}
/**
* Get 对端网关ID,例如:cgw-2wqq41m9,可通过DescribeCustomerGateways接口查询对端网关。
* @return CustomerGatewayId 对端网关ID,例如:cgw-2wqq41m9,可通过DescribeCustomerGateways接口查询对端网关。
*/
public String getCustomerGatewayId() {
return this.CustomerGatewayId;
}
/**
* Set 对端网关ID,例如:cgw-2wqq41m9,可通过DescribeCustomerGateways接口查询对端网关。
* @param CustomerGatewayId 对端网关ID,例如:cgw-2wqq41m9,可通过DescribeCustomerGateways接口查询对端网关。
*/
public void setCustomerGatewayId(String CustomerGatewayId) {
this.CustomerGatewayId = CustomerGatewayId;
}
/**
* Get 通道名称,可任意命名,但不得超过60个字符。
* @return VpnConnectionName 通道名称,可任意命名,但不得超过60个字符。
*/
public String getVpnConnectionName() {
return this.VpnConnectionName;
}
/**
* Set 通道名称,可任意命名,但不得超过60个字符。
* @param VpnConnectionName 通道名称,可任意命名,但不得超过60个字符。
*/
public void setVpnConnectionName(String VpnConnectionName) {
this.VpnConnectionName = VpnConnectionName;
}
/**
* Get 预共享密钥。
* @return PreShareKey 预共享密钥。
*/
public String getPreShareKey() {
return this.PreShareKey;
}
/**
* Set 预共享密钥。
* @param PreShareKey 预共享密钥。
*/
public void setPreShareKey(String PreShareKey) {
this.PreShareKey = PreShareKey;
}
/**
* Get VPC实例ID。可通过[DescribeVpcs](https://cloud.tencent.com/document/product/215/15778)接口返回值中的VpcId获取。
CCN VPN 形的通道 可以不传VPCID
* @return VpcId VPC实例ID。可通过[DescribeVpcs](https://cloud.tencent.com/document/product/215/15778)接口返回值中的VpcId获取。
CCN VPN 形的通道 可以不传VPCID
*/
public String getVpcId() {
return this.VpcId;
}
/**
* Set VPC实例ID。可通过[DescribeVpcs](https://cloud.tencent.com/document/product/215/15778)接口返回值中的VpcId获取。
CCN VPN 形的通道 可以不传VPCID
* @param VpcId VPC实例ID。可通过[DescribeVpcs](https://cloud.tencent.com/document/product/215/15778)接口返回值中的VpcId获取。
CCN VPN 形的通道 可以不传VPCID
*/
public void setVpcId(String VpcId) {
this.VpcId = VpcId;
}
/**
* Get SPD策略组,例如:{"10.0.0.5/24":["172.123.10.5/16"]},10.0.0.5/24是vpc内网段172.123.10.5/16是IDC网段。用户指定VPC内哪些网段可以和您IDC中哪些网段通信。
* @return SecurityPolicyDatabases SPD策略组,例如:{"10.0.0.5/24":["172.123.10.5/16"]},10.0.0.5/24是vpc内网段172.123.10.5/16是IDC网段。用户指定VPC内哪些网段可以和您IDC中哪些网段通信。
*/
public SecurityPolicyDatabase [] getSecurityPolicyDatabases() {
return this.SecurityPolicyDatabases;
}
/**
* Set SPD策略组,例如:{"10.0.0.5/24":["172.123.10.5/16"]},10.0.0.5/24是vpc内网段172.123.10.5/16是IDC网段。用户指定VPC内哪些网段可以和您IDC中哪些网段通信。
* @param SecurityPolicyDatabases SPD策略组,例如:{"10.0.0.5/24":["172.123.10.5/16"]},10.0.0.5/24是vpc内网段172.123.10.5/16是IDC网段。用户指定VPC内哪些网段可以和您IDC中哪些网段通信。
*/
public void setSecurityPolicyDatabases(SecurityPolicyDatabase [] SecurityPolicyDatabases) {
this.SecurityPolicyDatabases = SecurityPolicyDatabases;
}
/**
* Get IKE配置(Internet Key Exchange,因特网密钥交换),IKE具有一套自我保护机制,用户配置网络安全协议
* @return IKEOptionsSpecification IKE配置(Internet Key Exchange,因特网密钥交换),IKE具有一套自我保护机制,用户配置网络安全协议
*/
public IKEOptionsSpecification getIKEOptionsSpecification() {
return this.IKEOptionsSpecification;
}
/**
* Set IKE配置(Internet Key Exchange,因特网密钥交换),IKE具有一套自我保护机制,用户配置网络安全协议
* @param IKEOptionsSpecification IKE配置(Internet Key Exchange,因特网密钥交换),IKE具有一套自我保护机制,用户配置网络安全协议
*/
public void setIKEOptionsSpecification(IKEOptionsSpecification IKEOptionsSpecification) {
this.IKEOptionsSpecification = IKEOptionsSpecification;
}
/**
* Get IPSec配置,腾讯云提供IPSec安全会话设置
* @return IPSECOptionsSpecification IPSec配置,腾讯云提供IPSec安全会话设置
*/
public IPSECOptionsSpecification getIPSECOptionsSpecification() {
return this.IPSECOptionsSpecification;
}
/**
* Set IPSec配置,腾讯云提供IPSec安全会话设置
* @param IPSECOptionsSpecification IPSec配置,腾讯云提供IPSec安全会话设置
*/
public void setIPSECOptionsSpecification(IPSECOptionsSpecification IPSECOptionsSpecification) {
this.IPSECOptionsSpecification = IPSECOptionsSpecification;
}
/**
* Get 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}]
* @return Tags 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}]
*/
public Tag [] getTags() {
return this.Tags;
}
/**
* Set 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}]
* @param Tags 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}]
*/
public void setTags(Tag [] Tags) {
this.Tags = Tags;
}
/**
* Get 是否支持隧道内健康检查
* @return EnableHealthCheck 是否支持隧道内健康检查
*/
public Boolean getEnableHealthCheck() {
return this.EnableHealthCheck;
}
/**
* Set 是否支持隧道内健康检查
* @param EnableHealthCheck 是否支持隧道内健康检查
*/
public void setEnableHealthCheck(Boolean EnableHealthCheck) {
this.EnableHealthCheck = EnableHealthCheck;
}
/**
* Get 健康检查本端地址
* @return HealthCheckLocalIp 健康检查本端地址
*/
public String getHealthCheckLocalIp() {
return this.HealthCheckLocalIp;
}
/**
* Set 健康检查本端地址
* @param HealthCheckLocalIp 健康检查本端地址
*/
public void setHealthCheckLocalIp(String HealthCheckLocalIp) {
this.HealthCheckLocalIp = HealthCheckLocalIp;
}
/**
* Get 健康检查对端地址
* @return HealthCheckRemoteIp 健康检查对端地址
*/
public String getHealthCheckRemoteIp() {
return this.HealthCheckRemoteIp;
}
/**
* Set 健康检查对端地址
* @param HealthCheckRemoteIp 健康检查对端地址
*/
public void setHealthCheckRemoteIp(String HealthCheckRemoteIp) {
this.HealthCheckRemoteIp = HealthCheckRemoteIp;
}
/**
* Get 通道类型, 例如:["STATIC", "StaticRoute", "Policy"]
* @return RouteType 通道类型, 例如:["STATIC", "StaticRoute", "Policy"]
*/
public String getRouteType() {
return this.RouteType;
}
/**
* Set 通道类型, 例如:["STATIC", "StaticRoute", "Policy"]
* @param RouteType 通道类型, 例如:["STATIC", "StaticRoute", "Policy"]
*/
public void setRouteType(String RouteType) {
this.RouteType = RouteType;
}
/**
* Get 协商类型,默认为active(主动协商)。可选值:active(主动协商),passive(被动协商),flowTrigger(流量协商)
* @return NegotiationType 协商类型,默认为active(主动协商)。可选值:active(主动协商),passive(被动协商),flowTrigger(流量协商)
*/
public String getNegotiationType() {
return this.NegotiationType;
}
/**
* Set 协商类型,默认为active(主动协商)。可选值:active(主动协商),passive(被动协商),flowTrigger(流量协商)
* @param NegotiationType 协商类型,默认为active(主动协商)。可选值:active(主动协商),passive(被动协商),flowTrigger(流量协商)
*/
public void setNegotiationType(String NegotiationType) {
this.NegotiationType = NegotiationType;
}
/**
* Get DPD探测开关。默认为0,表示关闭DPD探测。可选值:0(关闭),1(开启)
* @return DpdEnable DPD探测开关。默认为0,表示关闭DPD探测。可选值:0(关闭),1(开启)
*/
public Long getDpdEnable() {
return this.DpdEnable;
}
/**
* Set DPD探测开关。默认为0,表示关闭DPD探测。可选值:0(关闭),1(开启)
* @param DpdEnable DPD探测开关。默认为0,表示关闭DPD探测。可选值:0(关闭),1(开启)
*/
public void setDpdEnable(Long DpdEnable) {
this.DpdEnable = DpdEnable;
}
/**
* Get DPD超时时间。即探测确认对端不存在需要的时间。dpdEnable为1(开启)时有效。默认30,单位为秒
* @return DpdTimeout DPD超时时间。即探测确认对端不存在需要的时间。dpdEnable为1(开启)时有效。默认30,单位为秒
*/
public String getDpdTimeout() {
return this.DpdTimeout;
}
/**
* Set DPD超时时间。即探测确认对端不存在需要的时间。dpdEnable为1(开启)时有效。默认30,单位为秒
* @param DpdTimeout DPD超时时间。即探测确认对端不存在需要的时间。dpdEnable为1(开启)时有效。默认30,单位为秒
*/
public void setDpdTimeout(String DpdTimeout) {
this.DpdTimeout = DpdTimeout;
}
/**
* Get DPD超时后的动作。默认为clear。dpdEnable为1(开启)时有效。可取值为clear(断开)和restart(重试)
* @return DpdAction DPD超时后的动作。默认为clear。dpdEnable为1(开启)时有效。可取值为clear(断开)和restart(重试)
*/
public String getDpdAction() {
return this.DpdAction;
}
/**
* Set DPD超时后的动作。默认为clear。dpdEnable为1(开启)时有效。可取值为clear(断开)和restart(重试)
* @param DpdAction DPD超时后的动作。默认为clear。dpdEnable为1(开启)时有效。可取值为clear(断开)和restart(重试)
*/
public void setDpdAction(String DpdAction) {
this.DpdAction = DpdAction;
}
public CreateVpnConnectionRequest() {
}
/**
* 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.
*/
public CreateVpnConnectionRequest(CreateVpnConnectionRequest source) {
if (source.VpnGatewayId != null) {
this.VpnGatewayId = new String(source.VpnGatewayId);
}
if (source.CustomerGatewayId != null) {
this.CustomerGatewayId = new String(source.CustomerGatewayId);
}
if (source.VpnConnectionName != null) {
this.VpnConnectionName = new String(source.VpnConnectionName);
}
if (source.PreShareKey != null) {
this.PreShareKey = new String(source.PreShareKey);
}
if (source.VpcId != null) {
this.VpcId = new String(source.VpcId);
}
if (source.SecurityPolicyDatabases != null) {
this.SecurityPolicyDatabases = new SecurityPolicyDatabase[source.SecurityPolicyDatabases.length];
for (int i = 0; i < source.SecurityPolicyDatabases.length; i++) {
this.SecurityPolicyDatabases[i] = new SecurityPolicyDatabase(source.SecurityPolicyDatabases[i]);
}
}
if (source.IKEOptionsSpecification != null) {
this.IKEOptionsSpecification = new IKEOptionsSpecification(source.IKEOptionsSpecification);
}
if (source.IPSECOptionsSpecification != null) {
this.IPSECOptionsSpecification = new IPSECOptionsSpecification(source.IPSECOptionsSpecification);
}
if (source.Tags != null) {
this.Tags = new Tag[source.Tags.length];
for (int i = 0; i < source.Tags.length; i++) {
this.Tags[i] = new Tag(source.Tags[i]);
}
}
if (source.EnableHealthCheck != null) {
this.EnableHealthCheck = new Boolean(source.EnableHealthCheck);
}
if (source.HealthCheckLocalIp != null) {
this.HealthCheckLocalIp = new String(source.HealthCheckLocalIp);
}
if (source.HealthCheckRemoteIp != null) {
this.HealthCheckRemoteIp = new String(source.HealthCheckRemoteIp);
}
if (source.RouteType != null) {
this.RouteType = new String(source.RouteType);
}
if (source.NegotiationType != null) {
this.NegotiationType = new String(source.NegotiationType);
}
if (source.DpdEnable != null) {
this.DpdEnable = new Long(source.DpdEnable);
}
if (source.DpdTimeout != null) {
this.DpdTimeout = new String(source.DpdTimeout);
}
if (source.DpdAction != null) {
this.DpdAction = new String(source.DpdAction);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "VpnGatewayId", this.VpnGatewayId);
this.setParamSimple(map, prefix + "CustomerGatewayId", this.CustomerGatewayId);
this.setParamSimple(map, prefix + "VpnConnectionName", this.VpnConnectionName);
this.setParamSimple(map, prefix + "PreShareKey", this.PreShareKey);
this.setParamSimple(map, prefix + "VpcId", this.VpcId);
this.setParamArrayObj(map, prefix + "SecurityPolicyDatabases.", this.SecurityPolicyDatabases);
this.setParamObj(map, prefix + "IKEOptionsSpecification.", this.IKEOptionsSpecification);
this.setParamObj(map, prefix + "IPSECOptionsSpecification.", this.IPSECOptionsSpecification);
this.setParamArrayObj(map, prefix + "Tags.", this.Tags);
this.setParamSimple(map, prefix + "EnableHealthCheck", this.EnableHealthCheck);
this.setParamSimple(map, prefix + "HealthCheckLocalIp", this.HealthCheckLocalIp);
this.setParamSimple(map, prefix + "HealthCheckRemoteIp", this.HealthCheckRemoteIp);
this.setParamSimple(map, prefix + "RouteType", this.RouteType);
this.setParamSimple(map, prefix + "NegotiationType", this.NegotiationType);
this.setParamSimple(map, prefix + "DpdEnable", this.DpdEnable);
this.setParamSimple(map, prefix + "DpdTimeout", this.DpdTimeout);
this.setParamSimple(map, prefix + "DpdAction", this.DpdAction);
}
}