com.tencentcloudapi.bmvpc.v20180625.models.VpnConnection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-bmvpc Show documentation
Show all versions of tencentcloud-sdk-java-bmvpc 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.bmvpc.v20180625.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class VpnConnection extends AbstractModel{
/**
* 通道实例ID。
*/
@SerializedName("VpnConnectionId")
@Expose
private String VpnConnectionId;
/**
* 通道名称。
*/
@SerializedName("VpnConnectionName")
@Expose
private String VpnConnectionName;
/**
* VPC实例ID。
*/
@SerializedName("VpcId")
@Expose
private String VpcId;
/**
* VPN网关实例ID。
*/
@SerializedName("VpnGatewayId")
@Expose
private String VpnGatewayId;
/**
* 对端网关实例ID。
*/
@SerializedName("CustomerGatewayId")
@Expose
private String CustomerGatewayId;
/**
* 预共享密钥。
*/
@SerializedName("PreShareKey")
@Expose
private String PreShareKey;
/**
* 通道传输协议。
*/
@SerializedName("VpnProto")
@Expose
private String VpnProto;
/**
* 创建时间。
*/
@SerializedName("CreateTime")
@Expose
private String CreateTime;
/**
* 通道的生产状态
*/
@SerializedName("State")
@Expose
private String State;
/**
* 通道连接状态
*/
@SerializedName("NetStatus")
@Expose
private String NetStatus;
/**
* SPD。
*/
@SerializedName("SecurityPolicyDatabaseSet")
@Expose
private SecurityPolicyDatabase [] SecurityPolicyDatabaseSet;
/**
* IKE选项。
*/
@SerializedName("IKEOptionsSpecification")
@Expose
private IKEOptionsSpecification IKEOptionsSpecification;
/**
* IPSEC选项。
*/
@SerializedName("IPSECOptionsSpecification")
@Expose
private IPSECOptionsSpecification IPSECOptionsSpecification;
/**
* 可用区
*/
@SerializedName("Zone")
@Expose
private String Zone;
/**
* VPC网段
*/
@SerializedName("VpcCidrBlock")
@Expose
private String VpcCidrBlock;
/**
* VPC名称
*/
@SerializedName("VpcName")
@Expose
private String VpcName;
/**
* VPN网关名称
*/
@SerializedName("VpnGatewayName")
@Expose
private String VpnGatewayName;
/**
* 对端网关名称
*/
@SerializedName("CustomerGatewayName")
@Expose
private String CustomerGatewayName;
/**
* IPSEC VPN通道路由策略目的端地址
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("DestinationCidr")
@Expose
private String [] DestinationCidr;
/**
* IPSEC VPN通道路由策略源端地址
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("SourceCidr")
@Expose
private String [] SourceCidr;
/**
* Get 通道实例ID。
* @return VpnConnectionId 通道实例ID。
*/
public String getVpnConnectionId() {
return this.VpnConnectionId;
}
/**
* Set 通道实例ID。
* @param VpnConnectionId 通道实例ID。
*/
public void setVpnConnectionId(String VpnConnectionId) {
this.VpnConnectionId = VpnConnectionId;
}
/**
* Get 通道名称。
* @return VpnConnectionName 通道名称。
*/
public String getVpnConnectionName() {
return this.VpnConnectionName;
}
/**
* Set 通道名称。
* @param VpnConnectionName 通道名称。
*/
public void setVpnConnectionName(String VpnConnectionName) {
this.VpnConnectionName = VpnConnectionName;
}
/**
* Get VPC实例ID。
* @return VpcId VPC实例ID。
*/
public String getVpcId() {
return this.VpcId;
}
/**
* Set VPC实例ID。
* @param VpcId VPC实例ID。
*/
public void setVpcId(String VpcId) {
this.VpcId = VpcId;
}
/**
* 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。
* @return CustomerGatewayId 对端网关实例ID。
*/
public String getCustomerGatewayId() {
return this.CustomerGatewayId;
}
/**
* Set 对端网关实例ID。
* @param CustomerGatewayId 对端网关实例ID。
*/
public void setCustomerGatewayId(String CustomerGatewayId) {
this.CustomerGatewayId = CustomerGatewayId;
}
/**
* Get 预共享密钥。
* @return PreShareKey 预共享密钥。
*/
public String getPreShareKey() {
return this.PreShareKey;
}
/**
* Set 预共享密钥。
* @param PreShareKey 预共享密钥。
*/
public void setPreShareKey(String PreShareKey) {
this.PreShareKey = PreShareKey;
}
/**
* Get 通道传输协议。
* @return VpnProto 通道传输协议。
*/
public String getVpnProto() {
return this.VpnProto;
}
/**
* Set 通道传输协议。
* @param VpnProto 通道传输协议。
*/
public void setVpnProto(String VpnProto) {
this.VpnProto = VpnProto;
}
/**
* Get 创建时间。
* @return CreateTime 创建时间。
*/
public String getCreateTime() {
return this.CreateTime;
}
/**
* Set 创建时间。
* @param CreateTime 创建时间。
*/
public void setCreateTime(String CreateTime) {
this.CreateTime = CreateTime;
}
/**
* Get 通道的生产状态
* @return State 通道的生产状态
*/
public String getState() {
return this.State;
}
/**
* Set 通道的生产状态
* @param State 通道的生产状态
*/
public void setState(String State) {
this.State = State;
}
/**
* Get 通道连接状态
* @return NetStatus 通道连接状态
*/
public String getNetStatus() {
return this.NetStatus;
}
/**
* Set 通道连接状态
* @param NetStatus 通道连接状态
*/
public void setNetStatus(String NetStatus) {
this.NetStatus = NetStatus;
}
/**
* Get SPD。
* @return SecurityPolicyDatabaseSet SPD。
*/
public SecurityPolicyDatabase [] getSecurityPolicyDatabaseSet() {
return this.SecurityPolicyDatabaseSet;
}
/**
* Set SPD。
* @param SecurityPolicyDatabaseSet SPD。
*/
public void setSecurityPolicyDatabaseSet(SecurityPolicyDatabase [] SecurityPolicyDatabaseSet) {
this.SecurityPolicyDatabaseSet = SecurityPolicyDatabaseSet;
}
/**
* Get IKE选项。
* @return IKEOptionsSpecification IKE选项。
*/
public IKEOptionsSpecification getIKEOptionsSpecification() {
return this.IKEOptionsSpecification;
}
/**
* Set IKE选项。
* @param IKEOptionsSpecification IKE选项。
*/
public void setIKEOptionsSpecification(IKEOptionsSpecification IKEOptionsSpecification) {
this.IKEOptionsSpecification = IKEOptionsSpecification;
}
/**
* Get IPSEC选项。
* @return IPSECOptionsSpecification IPSEC选项。
*/
public IPSECOptionsSpecification getIPSECOptionsSpecification() {
return this.IPSECOptionsSpecification;
}
/**
* Set IPSEC选项。
* @param IPSECOptionsSpecification IPSEC选项。
*/
public void setIPSECOptionsSpecification(IPSECOptionsSpecification IPSECOptionsSpecification) {
this.IPSECOptionsSpecification = IPSECOptionsSpecification;
}
/**
* Get 可用区
* @return Zone 可用区
*/
public String getZone() {
return this.Zone;
}
/**
* Set 可用区
* @param Zone 可用区
*/
public void setZone(String Zone) {
this.Zone = Zone;
}
/**
* Get VPC网段
* @return VpcCidrBlock VPC网段
*/
public String getVpcCidrBlock() {
return this.VpcCidrBlock;
}
/**
* Set VPC网段
* @param VpcCidrBlock VPC网段
*/
public void setVpcCidrBlock(String VpcCidrBlock) {
this.VpcCidrBlock = VpcCidrBlock;
}
/**
* Get VPC名称
* @return VpcName VPC名称
*/
public String getVpcName() {
return this.VpcName;
}
/**
* Set VPC名称
* @param VpcName VPC名称
*/
public void setVpcName(String VpcName) {
this.VpcName = VpcName;
}
/**
* Get VPN网关名称
* @return VpnGatewayName VPN网关名称
*/
public String getVpnGatewayName() {
return this.VpnGatewayName;
}
/**
* Set VPN网关名称
* @param VpnGatewayName VPN网关名称
*/
public void setVpnGatewayName(String VpnGatewayName) {
this.VpnGatewayName = VpnGatewayName;
}
/**
* Get 对端网关名称
* @return CustomerGatewayName 对端网关名称
*/
public String getCustomerGatewayName() {
return this.CustomerGatewayName;
}
/**
* Set 对端网关名称
* @param CustomerGatewayName 对端网关名称
*/
public void setCustomerGatewayName(String CustomerGatewayName) {
this.CustomerGatewayName = CustomerGatewayName;
}
/**
* Get IPSEC VPN通道路由策略目的端地址
注意:此字段可能返回 null,表示取不到有效值。
* @return DestinationCidr IPSEC VPN通道路由策略目的端地址
注意:此字段可能返回 null,表示取不到有效值。
*/
public String [] getDestinationCidr() {
return this.DestinationCidr;
}
/**
* Set IPSEC VPN通道路由策略目的端地址
注意:此字段可能返回 null,表示取不到有效值。
* @param DestinationCidr IPSEC VPN通道路由策略目的端地址
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setDestinationCidr(String [] DestinationCidr) {
this.DestinationCidr = DestinationCidr;
}
/**
* Get IPSEC VPN通道路由策略源端地址
注意:此字段可能返回 null,表示取不到有效值。
* @return SourceCidr IPSEC VPN通道路由策略源端地址
注意:此字段可能返回 null,表示取不到有效值。
*/
public String [] getSourceCidr() {
return this.SourceCidr;
}
/**
* Set IPSEC VPN通道路由策略源端地址
注意:此字段可能返回 null,表示取不到有效值。
* @param SourceCidr IPSEC VPN通道路由策略源端地址
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setSourceCidr(String [] SourceCidr) {
this.SourceCidr = SourceCidr;
}
public VpnConnection() {
}
/**
* 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 VpnConnection(VpnConnection source) {
if (source.VpnConnectionId != null) {
this.VpnConnectionId = new String(source.VpnConnectionId);
}
if (source.VpnConnectionName != null) {
this.VpnConnectionName = new String(source.VpnConnectionName);
}
if (source.VpcId != null) {
this.VpcId = new String(source.VpcId);
}
if (source.VpnGatewayId != null) {
this.VpnGatewayId = new String(source.VpnGatewayId);
}
if (source.CustomerGatewayId != null) {
this.CustomerGatewayId = new String(source.CustomerGatewayId);
}
if (source.PreShareKey != null) {
this.PreShareKey = new String(source.PreShareKey);
}
if (source.VpnProto != null) {
this.VpnProto = new String(source.VpnProto);
}
if (source.CreateTime != null) {
this.CreateTime = new String(source.CreateTime);
}
if (source.State != null) {
this.State = new String(source.State);
}
if (source.NetStatus != null) {
this.NetStatus = new String(source.NetStatus);
}
if (source.SecurityPolicyDatabaseSet != null) {
this.SecurityPolicyDatabaseSet = new SecurityPolicyDatabase[source.SecurityPolicyDatabaseSet.length];
for (int i = 0; i < source.SecurityPolicyDatabaseSet.length; i++) {
this.SecurityPolicyDatabaseSet[i] = new SecurityPolicyDatabase(source.SecurityPolicyDatabaseSet[i]);
}
}
if (source.IKEOptionsSpecification != null) {
this.IKEOptionsSpecification = new IKEOptionsSpecification(source.IKEOptionsSpecification);
}
if (source.IPSECOptionsSpecification != null) {
this.IPSECOptionsSpecification = new IPSECOptionsSpecification(source.IPSECOptionsSpecification);
}
if (source.Zone != null) {
this.Zone = new String(source.Zone);
}
if (source.VpcCidrBlock != null) {
this.VpcCidrBlock = new String(source.VpcCidrBlock);
}
if (source.VpcName != null) {
this.VpcName = new String(source.VpcName);
}
if (source.VpnGatewayName != null) {
this.VpnGatewayName = new String(source.VpnGatewayName);
}
if (source.CustomerGatewayName != null) {
this.CustomerGatewayName = new String(source.CustomerGatewayName);
}
if (source.DestinationCidr != null) {
this.DestinationCidr = new String[source.DestinationCidr.length];
for (int i = 0; i < source.DestinationCidr.length; i++) {
this.DestinationCidr[i] = new String(source.DestinationCidr[i]);
}
}
if (source.SourceCidr != null) {
this.SourceCidr = new String[source.SourceCidr.length];
for (int i = 0; i < source.SourceCidr.length; i++) {
this.SourceCidr[i] = new String(source.SourceCidr[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "VpnConnectionId", this.VpnConnectionId);
this.setParamSimple(map, prefix + "VpnConnectionName", this.VpnConnectionName);
this.setParamSimple(map, prefix + "VpcId", this.VpcId);
this.setParamSimple(map, prefix + "VpnGatewayId", this.VpnGatewayId);
this.setParamSimple(map, prefix + "CustomerGatewayId", this.CustomerGatewayId);
this.setParamSimple(map, prefix + "PreShareKey", this.PreShareKey);
this.setParamSimple(map, prefix + "VpnProto", this.VpnProto);
this.setParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.setParamSimple(map, prefix + "State", this.State);
this.setParamSimple(map, prefix + "NetStatus", this.NetStatus);
this.setParamArrayObj(map, prefix + "SecurityPolicyDatabaseSet.", this.SecurityPolicyDatabaseSet);
this.setParamObj(map, prefix + "IKEOptionsSpecification.", this.IKEOptionsSpecification);
this.setParamObj(map, prefix + "IPSECOptionsSpecification.", this.IPSECOptionsSpecification);
this.setParamSimple(map, prefix + "Zone", this.Zone);
this.setParamSimple(map, prefix + "VpcCidrBlock", this.VpcCidrBlock);
this.setParamSimple(map, prefix + "VpcName", this.VpcName);
this.setParamSimple(map, prefix + "VpnGatewayName", this.VpnGatewayName);
this.setParamSimple(map, prefix + "CustomerGatewayName", this.CustomerGatewayName);
this.setParamArraySimple(map, prefix + "DestinationCidr.", this.DestinationCidr);
this.setParamArraySimple(map, prefix + "SourceCidr.", this.SourceCidr);
}
}