com.tencentcloudapi.bmvpc.v20180625.models.IPSECOptionsSpecification 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 IPSECOptionsSpecification extends AbstractModel{
/**
* PFS:可选值:'NULL', 'DH-GROUP1', 'DH-GROUP2', 'DH-GROUP5', 'DH-GROUP14', 'DH-GROUP24',默认为NULL
*/
@SerializedName("PfsDhGroup")
@Expose
private String PfsDhGroup;
/**
* IPsec SA lifetime(KB):单位KB,取值范围:2560-604800
*/
@SerializedName("IPSECSaLifetimeTraffic")
@Expose
private Long IPSECSaLifetimeTraffic;
/**
* 加密算法,可选值:'3DES-CBC', 'AES-CBC-128', 'AES-CBC-192', 'AES-CBC-256', 'DES-CBC', 'NULL', 默认为AES-CBC-128
*/
@SerializedName("EncryptAlgorithm")
@Expose
private String EncryptAlgorithm;
/**
* 认证算法:可选值:'MD5', 'SHA1',默认为
*/
@SerializedName("IntegrityAlgorith")
@Expose
private String IntegrityAlgorith;
/**
* IPsec SA lifetime(s):单位秒,取值范围:180-604800
*/
@SerializedName("IPSECSaLifetimeSeconds")
@Expose
private Long IPSECSaLifetimeSeconds;
/**
* 安全协议,默认为ESP
*/
@SerializedName("SecurityProto")
@Expose
private String SecurityProto;
/**
* 报文封装模式:默认为Tunnel
*/
@SerializedName("EncapMode")
@Expose
private String EncapMode;
/**
* Get PFS:可选值:'NULL', 'DH-GROUP1', 'DH-GROUP2', 'DH-GROUP5', 'DH-GROUP14', 'DH-GROUP24',默认为NULL
* @return PfsDhGroup PFS:可选值:'NULL', 'DH-GROUP1', 'DH-GROUP2', 'DH-GROUP5', 'DH-GROUP14', 'DH-GROUP24',默认为NULL
*/
public String getPfsDhGroup() {
return this.PfsDhGroup;
}
/**
* Set PFS:可选值:'NULL', 'DH-GROUP1', 'DH-GROUP2', 'DH-GROUP5', 'DH-GROUP14', 'DH-GROUP24',默认为NULL
* @param PfsDhGroup PFS:可选值:'NULL', 'DH-GROUP1', 'DH-GROUP2', 'DH-GROUP5', 'DH-GROUP14', 'DH-GROUP24',默认为NULL
*/
public void setPfsDhGroup(String PfsDhGroup) {
this.PfsDhGroup = PfsDhGroup;
}
/**
* Get IPsec SA lifetime(KB):单位KB,取值范围:2560-604800
* @return IPSECSaLifetimeTraffic IPsec SA lifetime(KB):单位KB,取值范围:2560-604800
*/
public Long getIPSECSaLifetimeTraffic() {
return this.IPSECSaLifetimeTraffic;
}
/**
* Set IPsec SA lifetime(KB):单位KB,取值范围:2560-604800
* @param IPSECSaLifetimeTraffic IPsec SA lifetime(KB):单位KB,取值范围:2560-604800
*/
public void setIPSECSaLifetimeTraffic(Long IPSECSaLifetimeTraffic) {
this.IPSECSaLifetimeTraffic = IPSECSaLifetimeTraffic;
}
/**
* Get 加密算法,可选值:'3DES-CBC', 'AES-CBC-128', 'AES-CBC-192', 'AES-CBC-256', 'DES-CBC', 'NULL', 默认为AES-CBC-128
* @return EncryptAlgorithm 加密算法,可选值:'3DES-CBC', 'AES-CBC-128', 'AES-CBC-192', 'AES-CBC-256', 'DES-CBC', 'NULL', 默认为AES-CBC-128
*/
public String getEncryptAlgorithm() {
return this.EncryptAlgorithm;
}
/**
* Set 加密算法,可选值:'3DES-CBC', 'AES-CBC-128', 'AES-CBC-192', 'AES-CBC-256', 'DES-CBC', 'NULL', 默认为AES-CBC-128
* @param EncryptAlgorithm 加密算法,可选值:'3DES-CBC', 'AES-CBC-128', 'AES-CBC-192', 'AES-CBC-256', 'DES-CBC', 'NULL', 默认为AES-CBC-128
*/
public void setEncryptAlgorithm(String EncryptAlgorithm) {
this.EncryptAlgorithm = EncryptAlgorithm;
}
/**
* Get 认证算法:可选值:'MD5', 'SHA1',默认为
* @return IntegrityAlgorith 认证算法:可选值:'MD5', 'SHA1',默认为
*/
public String getIntegrityAlgorith() {
return this.IntegrityAlgorith;
}
/**
* Set 认证算法:可选值:'MD5', 'SHA1',默认为
* @param IntegrityAlgorith 认证算法:可选值:'MD5', 'SHA1',默认为
*/
public void setIntegrityAlgorith(String IntegrityAlgorith) {
this.IntegrityAlgorith = IntegrityAlgorith;
}
/**
* Get IPsec SA lifetime(s):单位秒,取值范围:180-604800
* @return IPSECSaLifetimeSeconds IPsec SA lifetime(s):单位秒,取值范围:180-604800
*/
public Long getIPSECSaLifetimeSeconds() {
return this.IPSECSaLifetimeSeconds;
}
/**
* Set IPsec SA lifetime(s):单位秒,取值范围:180-604800
* @param IPSECSaLifetimeSeconds IPsec SA lifetime(s):单位秒,取值范围:180-604800
*/
public void setIPSECSaLifetimeSeconds(Long IPSECSaLifetimeSeconds) {
this.IPSECSaLifetimeSeconds = IPSECSaLifetimeSeconds;
}
/**
* Get 安全协议,默认为ESP
* @return SecurityProto 安全协议,默认为ESP
*/
public String getSecurityProto() {
return this.SecurityProto;
}
/**
* Set 安全协议,默认为ESP
* @param SecurityProto 安全协议,默认为ESP
*/
public void setSecurityProto(String SecurityProto) {
this.SecurityProto = SecurityProto;
}
/**
* Get 报文封装模式:默认为Tunnel
* @return EncapMode 报文封装模式:默认为Tunnel
*/
public String getEncapMode() {
return this.EncapMode;
}
/**
* Set 报文封装模式:默认为Tunnel
* @param EncapMode 报文封装模式:默认为Tunnel
*/
public void setEncapMode(String EncapMode) {
this.EncapMode = EncapMode;
}
public IPSECOptionsSpecification() {
}
/**
* 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 IPSECOptionsSpecification(IPSECOptionsSpecification source) {
if (source.PfsDhGroup != null) {
this.PfsDhGroup = new String(source.PfsDhGroup);
}
if (source.IPSECSaLifetimeTraffic != null) {
this.IPSECSaLifetimeTraffic = new Long(source.IPSECSaLifetimeTraffic);
}
if (source.EncryptAlgorithm != null) {
this.EncryptAlgorithm = new String(source.EncryptAlgorithm);
}
if (source.IntegrityAlgorith != null) {
this.IntegrityAlgorith = new String(source.IntegrityAlgorith);
}
if (source.IPSECSaLifetimeSeconds != null) {
this.IPSECSaLifetimeSeconds = new Long(source.IPSECSaLifetimeSeconds);
}
if (source.SecurityProto != null) {
this.SecurityProto = new String(source.SecurityProto);
}
if (source.EncapMode != null) {
this.EncapMode = new String(source.EncapMode);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "PfsDhGroup", this.PfsDhGroup);
this.setParamSimple(map, prefix + "IPSECSaLifetimeTraffic", this.IPSECSaLifetimeTraffic);
this.setParamSimple(map, prefix + "EncryptAlgorithm", this.EncryptAlgorithm);
this.setParamSimple(map, prefix + "IntegrityAlgorith", this.IntegrityAlgorith);
this.setParamSimple(map, prefix + "IPSECSaLifetimeSeconds", this.IPSECSaLifetimeSeconds);
this.setParamSimple(map, prefix + "SecurityProto", this.SecurityProto);
this.setParamSimple(map, prefix + "EncapMode", this.EncapMode);
}
}