![JAR search and dependency download from the Maven repository](/logo.png)
com.tencentcloudapi.teo.v20220901.models.CreateL4ProxyRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud 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.teo.v20220901.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class CreateL4ProxyRequest extends AbstractModel {
/**
* Zone ID.
*/
@SerializedName("ZoneId")
@Expose
private String ZoneId;
/**
* Name of the L4 proxy instance, which can contain 1-50 characters, including a-z, 0-9, and hyphens (-). However, hyphens (-) cannot be used individually or consecutively and should not be placed at the beginning or end of the name. Modification is not allowed after creation.
*/
@SerializedName("ProxyName")
@Expose
private String ProxyName;
/**
* Acceleration zone of the L4 proxy instance.
mainland: Chinese mainland availability zone;
overseas: global availability zone (excluding the Chinese mainland);
global: global availability zone.
*/
@SerializedName("Area")
@Expose
private String Area;
/**
* Whether to enable IPv6 access. If this parameter is not input, the default value `off` is used. This configuration can be enabled only in certain acceleration zones and security protection configurations. For details, see [Creating an L4 Proxy Instance] (https://intl.cloud.tencent.com/document/product/1552/90025?from_cn_redirect=1). Valid values:
on: Enable;
off: Disable.
*/
@SerializedName("Ipv6")
@Expose
private String Ipv6;
/**
* Whether to enable static IP. If this parameter is not input, the default value `off` is used. This configuration can be enabled only in certain acceleration zones and security protection configurations. For details, see [Creating an L4 Proxy Instance] (https://intl.cloud.tencent.com/document/product/1552/90025?from_cn_redirect=1). Valid values:
on: Enable;
off: Disable.
*/
@SerializedName("StaticIp")
@Expose
private String StaticIp;
/**
* Whether to enable network optimization for the Chinese mainland. If this parameter is not input, the default value `off` is used. This configuration can be enabled only in certain acceleration zones and security protection configurations. For details, see [Creating an L4 Proxy Instance] (https://intl.cloud.tencent.com/document/product/1552/90025?from_cn_redirect=1). Valid values:
on: Enable;
off: Disable.
*/
@SerializedName("AccelerateMainland")
@Expose
private String AccelerateMainland;
/**
* Configuration of L3/L4 DDoS protection. If this parameter is not input, the default platform protection option is used. For details, see [Exclusive DDoS Protection Usage] (https://intl.cloud.tencent.com/document/product/1552/95994?from_cn_redirect=1).
*/
@SerializedName("DDosProtectionConfig")
@Expose
private DDosProtectionConfig DDosProtectionConfig;
/**
* Get Zone ID.
* @return ZoneId Zone ID.
*/
public String getZoneId() {
return this.ZoneId;
}
/**
* Set Zone ID.
* @param ZoneId Zone ID.
*/
public void setZoneId(String ZoneId) {
this.ZoneId = ZoneId;
}
/**
* Get Name of the L4 proxy instance, which can contain 1-50 characters, including a-z, 0-9, and hyphens (-). However, hyphens (-) cannot be used individually or consecutively and should not be placed at the beginning or end of the name. Modification is not allowed after creation.
* @return ProxyName Name of the L4 proxy instance, which can contain 1-50 characters, including a-z, 0-9, and hyphens (-). However, hyphens (-) cannot be used individually or consecutively and should not be placed at the beginning or end of the name. Modification is not allowed after creation.
*/
public String getProxyName() {
return this.ProxyName;
}
/**
* Set Name of the L4 proxy instance, which can contain 1-50 characters, including a-z, 0-9, and hyphens (-). However, hyphens (-) cannot be used individually or consecutively and should not be placed at the beginning or end of the name. Modification is not allowed after creation.
* @param ProxyName Name of the L4 proxy instance, which can contain 1-50 characters, including a-z, 0-9, and hyphens (-). However, hyphens (-) cannot be used individually or consecutively and should not be placed at the beginning or end of the name. Modification is not allowed after creation.
*/
public void setProxyName(String ProxyName) {
this.ProxyName = ProxyName;
}
/**
* Get Acceleration zone of the L4 proxy instance.
mainland: Chinese mainland availability zone;
overseas: global availability zone (excluding the Chinese mainland);
global: global availability zone.
* @return Area Acceleration zone of the L4 proxy instance.
mainland: Chinese mainland availability zone;
overseas: global availability zone (excluding the Chinese mainland);
global: global availability zone.
*/
public String getArea() {
return this.Area;
}
/**
* Set Acceleration zone of the L4 proxy instance.
mainland: Chinese mainland availability zone;
overseas: global availability zone (excluding the Chinese mainland);
global: global availability zone.
* @param Area Acceleration zone of the L4 proxy instance.
mainland: Chinese mainland availability zone;
overseas: global availability zone (excluding the Chinese mainland);
global: global availability zone.
*/
public void setArea(String Area) {
this.Area = Area;
}
/**
* Get Whether to enable IPv6 access. If this parameter is not input, the default value `off` is used. This configuration can be enabled only in certain acceleration zones and security protection configurations. For details, see [Creating an L4 Proxy Instance] (https://intl.cloud.tencent.com/document/product/1552/90025?from_cn_redirect=1). Valid values:
on: Enable;
off: Disable.
* @return Ipv6 Whether to enable IPv6 access. If this parameter is not input, the default value `off` is used. This configuration can be enabled only in certain acceleration zones and security protection configurations. For details, see [Creating an L4 Proxy Instance] (https://intl.cloud.tencent.com/document/product/1552/90025?from_cn_redirect=1). Valid values:
on: Enable;
off: Disable.
*/
public String getIpv6() {
return this.Ipv6;
}
/**
* Set Whether to enable IPv6 access. If this parameter is not input, the default value `off` is used. This configuration can be enabled only in certain acceleration zones and security protection configurations. For details, see [Creating an L4 Proxy Instance] (https://intl.cloud.tencent.com/document/product/1552/90025?from_cn_redirect=1). Valid values:
on: Enable;
off: Disable.
* @param Ipv6 Whether to enable IPv6 access. If this parameter is not input, the default value `off` is used. This configuration can be enabled only in certain acceleration zones and security protection configurations. For details, see [Creating an L4 Proxy Instance] (https://intl.cloud.tencent.com/document/product/1552/90025?from_cn_redirect=1). Valid values:
on: Enable;
off: Disable.
*/
public void setIpv6(String Ipv6) {
this.Ipv6 = Ipv6;
}
/**
* Get Whether to enable static IP. If this parameter is not input, the default value `off` is used. This configuration can be enabled only in certain acceleration zones and security protection configurations. For details, see [Creating an L4 Proxy Instance] (https://intl.cloud.tencent.com/document/product/1552/90025?from_cn_redirect=1). Valid values:
on: Enable;
off: Disable.
* @return StaticIp Whether to enable static IP. If this parameter is not input, the default value `off` is used. This configuration can be enabled only in certain acceleration zones and security protection configurations. For details, see [Creating an L4 Proxy Instance] (https://intl.cloud.tencent.com/document/product/1552/90025?from_cn_redirect=1). Valid values:
on: Enable;
off: Disable.
*/
public String getStaticIp() {
return this.StaticIp;
}
/**
* Set Whether to enable static IP. If this parameter is not input, the default value `off` is used. This configuration can be enabled only in certain acceleration zones and security protection configurations. For details, see [Creating an L4 Proxy Instance] (https://intl.cloud.tencent.com/document/product/1552/90025?from_cn_redirect=1). Valid values:
on: Enable;
off: Disable.
* @param StaticIp Whether to enable static IP. If this parameter is not input, the default value `off` is used. This configuration can be enabled only in certain acceleration zones and security protection configurations. For details, see [Creating an L4 Proxy Instance] (https://intl.cloud.tencent.com/document/product/1552/90025?from_cn_redirect=1). Valid values:
on: Enable;
off: Disable.
*/
public void setStaticIp(String StaticIp) {
this.StaticIp = StaticIp;
}
/**
* Get Whether to enable network optimization for the Chinese mainland. If this parameter is not input, the default value `off` is used. This configuration can be enabled only in certain acceleration zones and security protection configurations. For details, see [Creating an L4 Proxy Instance] (https://intl.cloud.tencent.com/document/product/1552/90025?from_cn_redirect=1). Valid values:
on: Enable;
off: Disable.
* @return AccelerateMainland Whether to enable network optimization for the Chinese mainland. If this parameter is not input, the default value `off` is used. This configuration can be enabled only in certain acceleration zones and security protection configurations. For details, see [Creating an L4 Proxy Instance] (https://intl.cloud.tencent.com/document/product/1552/90025?from_cn_redirect=1). Valid values:
on: Enable;
off: Disable.
*/
public String getAccelerateMainland() {
return this.AccelerateMainland;
}
/**
* Set Whether to enable network optimization for the Chinese mainland. If this parameter is not input, the default value `off` is used. This configuration can be enabled only in certain acceleration zones and security protection configurations. For details, see [Creating an L4 Proxy Instance] (https://intl.cloud.tencent.com/document/product/1552/90025?from_cn_redirect=1). Valid values:
on: Enable;
off: Disable.
* @param AccelerateMainland Whether to enable network optimization for the Chinese mainland. If this parameter is not input, the default value `off` is used. This configuration can be enabled only in certain acceleration zones and security protection configurations. For details, see [Creating an L4 Proxy Instance] (https://intl.cloud.tencent.com/document/product/1552/90025?from_cn_redirect=1). Valid values:
on: Enable;
off: Disable.
*/
public void setAccelerateMainland(String AccelerateMainland) {
this.AccelerateMainland = AccelerateMainland;
}
/**
* Get Configuration of L3/L4 DDoS protection. If this parameter is not input, the default platform protection option is used. For details, see [Exclusive DDoS Protection Usage] (https://intl.cloud.tencent.com/document/product/1552/95994?from_cn_redirect=1).
* @return DDosProtectionConfig Configuration of L3/L4 DDoS protection. If this parameter is not input, the default platform protection option is used. For details, see [Exclusive DDoS Protection Usage] (https://intl.cloud.tencent.com/document/product/1552/95994?from_cn_redirect=1).
*/
public DDosProtectionConfig getDDosProtectionConfig() {
return this.DDosProtectionConfig;
}
/**
* Set Configuration of L3/L4 DDoS protection. If this parameter is not input, the default platform protection option is used. For details, see [Exclusive DDoS Protection Usage] (https://intl.cloud.tencent.com/document/product/1552/95994?from_cn_redirect=1).
* @param DDosProtectionConfig Configuration of L3/L4 DDoS protection. If this parameter is not input, the default platform protection option is used. For details, see [Exclusive DDoS Protection Usage] (https://intl.cloud.tencent.com/document/product/1552/95994?from_cn_redirect=1).
*/
public void setDDosProtectionConfig(DDosProtectionConfig DDosProtectionConfig) {
this.DDosProtectionConfig = DDosProtectionConfig;
}
public CreateL4ProxyRequest() {
}
/**
* 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 CreateL4ProxyRequest(CreateL4ProxyRequest source) {
if (source.ZoneId != null) {
this.ZoneId = new String(source.ZoneId);
}
if (source.ProxyName != null) {
this.ProxyName = new String(source.ProxyName);
}
if (source.Area != null) {
this.Area = new String(source.Area);
}
if (source.Ipv6 != null) {
this.Ipv6 = new String(source.Ipv6);
}
if (source.StaticIp != null) {
this.StaticIp = new String(source.StaticIp);
}
if (source.AccelerateMainland != null) {
this.AccelerateMainland = new String(source.AccelerateMainland);
}
if (source.DDosProtectionConfig != null) {
this.DDosProtectionConfig = new DDosProtectionConfig(source.DDosProtectionConfig);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "ZoneId", this.ZoneId);
this.setParamSimple(map, prefix + "ProxyName", this.ProxyName);
this.setParamSimple(map, prefix + "Area", this.Area);
this.setParamSimple(map, prefix + "Ipv6", this.Ipv6);
this.setParamSimple(map, prefix + "StaticIp", this.StaticIp);
this.setParamSimple(map, prefix + "AccelerateMainland", this.AccelerateMainland);
this.setParamObj(map, prefix + "DDosProtectionConfig.", this.DDosProtectionConfig);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy