![JAR search and dependency download from the Maven repository](/logo.png)
com.tencentcloudapi.teo.v20220901.models.CreateApplicationProxyRequest 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 CreateApplicationProxyRequest extends AbstractModel {
/**
* Site ID.
*/
@SerializedName("ZoneId")
@Expose
private String ZoneId;
/**
* Domain name or subdomain name when `ProxyType=hostname`;
Instance name when `ProxyType=instance`.
*/
@SerializedName("ProxyName")
@Expose
private String ProxyName;
/**
* The scheduling mode. Values:
`ip`: Schedule via Anycast IP.
`domain`: Schedule via CNAME.
*/
@SerializedName("PlatType")
@Expose
private String PlatType;
/**
* Whether to enable security protection. Values:
`0`: Disable security protection.
`1`: Enable security protection.
*/
@SerializedName("SecurityType")
@Expose
private Long SecurityType;
/**
* Whether to enable acceleration. Values:
`0`: Disable acceleration.
`1`: Enable acceleration.
*/
@SerializedName("AccelerateType")
@Expose
private Long AccelerateType;
/**
* Layer 4 proxy mode, with value: instance: instance mode. If not specified, the default value instance will be used.
*/
@SerializedName("ProxyType")
@Expose
private String ProxyType;
/**
* The session persistence duration. Value range: 30-3600 (in seconds).
If not specified, this field uses the default value 600.
*/
@SerializedName("SessionPersistTime")
@Expose
private Long SessionPersistTime;
/**
* Ipv6 access configuration.
IPv6 access is disabled if it is not specified.
*/
@SerializedName("Ipv6")
@Expose
private Ipv6 Ipv6;
/**
* The rule details.
If this field is not specified, an application proxy rule will not be created.
*/
@SerializedName("ApplicationProxyRules")
@Expose
private ApplicationProxyRule [] ApplicationProxyRules;
/**
* Cross-MLC-border acceleration. It is disabled if this parameter is not specified.
*/
@SerializedName("AccelerateMainland")
@Expose
private AccelerateMainland AccelerateMainland;
/**
* Get Site ID.
* @return ZoneId Site ID.
*/
public String getZoneId() {
return this.ZoneId;
}
/**
* Set Site ID.
* @param ZoneId Site ID.
*/
public void setZoneId(String ZoneId) {
this.ZoneId = ZoneId;
}
/**
* Get Domain name or subdomain name when `ProxyType=hostname`;
Instance name when `ProxyType=instance`.
* @return ProxyName Domain name or subdomain name when `ProxyType=hostname`;
Instance name when `ProxyType=instance`.
*/
public String getProxyName() {
return this.ProxyName;
}
/**
* Set Domain name or subdomain name when `ProxyType=hostname`;
Instance name when `ProxyType=instance`.
* @param ProxyName Domain name or subdomain name when `ProxyType=hostname`;
Instance name when `ProxyType=instance`.
*/
public void setProxyName(String ProxyName) {
this.ProxyName = ProxyName;
}
/**
* Get The scheduling mode. Values:
`ip`: Schedule via Anycast IP.
`domain`: Schedule via CNAME.
* @return PlatType The scheduling mode. Values:
`ip`: Schedule via Anycast IP.
`domain`: Schedule via CNAME.
*/
public String getPlatType() {
return this.PlatType;
}
/**
* Set The scheduling mode. Values:
`ip`: Schedule via Anycast IP.
`domain`: Schedule via CNAME.
* @param PlatType The scheduling mode. Values:
`ip`: Schedule via Anycast IP.
`domain`: Schedule via CNAME.
*/
public void setPlatType(String PlatType) {
this.PlatType = PlatType;
}
/**
* Get Whether to enable security protection. Values:
`0`: Disable security protection.
`1`: Enable security protection.
* @return SecurityType Whether to enable security protection. Values:
`0`: Disable security protection.
`1`: Enable security protection.
*/
public Long getSecurityType() {
return this.SecurityType;
}
/**
* Set Whether to enable security protection. Values:
`0`: Disable security protection.
`1`: Enable security protection.
* @param SecurityType Whether to enable security protection. Values:
`0`: Disable security protection.
`1`: Enable security protection.
*/
public void setSecurityType(Long SecurityType) {
this.SecurityType = SecurityType;
}
/**
* Get Whether to enable acceleration. Values:
`0`: Disable acceleration.
`1`: Enable acceleration.
* @return AccelerateType Whether to enable acceleration. Values:
`0`: Disable acceleration.
`1`: Enable acceleration.
*/
public Long getAccelerateType() {
return this.AccelerateType;
}
/**
* Set Whether to enable acceleration. Values:
`0`: Disable acceleration.
`1`: Enable acceleration.
* @param AccelerateType Whether to enable acceleration. Values:
`0`: Disable acceleration.
`1`: Enable acceleration.
*/
public void setAccelerateType(Long AccelerateType) {
this.AccelerateType = AccelerateType;
}
/**
* Get Layer 4 proxy mode, with value: instance: instance mode. If not specified, the default value instance will be used.
* @return ProxyType Layer 4 proxy mode, with value: instance: instance mode. If not specified, the default value instance will be used.
*/
public String getProxyType() {
return this.ProxyType;
}
/**
* Set Layer 4 proxy mode, with value: instance: instance mode. If not specified, the default value instance will be used.
* @param ProxyType Layer 4 proxy mode, with value: instance: instance mode. If not specified, the default value instance will be used.
*/
public void setProxyType(String ProxyType) {
this.ProxyType = ProxyType;
}
/**
* Get The session persistence duration. Value range: 30-3600 (in seconds).
If not specified, this field uses the default value 600.
* @return SessionPersistTime The session persistence duration. Value range: 30-3600 (in seconds).
If not specified, this field uses the default value 600.
*/
public Long getSessionPersistTime() {
return this.SessionPersistTime;
}
/**
* Set The session persistence duration. Value range: 30-3600 (in seconds).
If not specified, this field uses the default value 600.
* @param SessionPersistTime The session persistence duration. Value range: 30-3600 (in seconds).
If not specified, this field uses the default value 600.
*/
public void setSessionPersistTime(Long SessionPersistTime) {
this.SessionPersistTime = SessionPersistTime;
}
/**
* Get Ipv6 access configuration.
IPv6 access is disabled if it is not specified.
* @return Ipv6 Ipv6 access configuration.
IPv6 access is disabled if it is not specified.
*/
public Ipv6 getIpv6() {
return this.Ipv6;
}
/**
* Set Ipv6 access configuration.
IPv6 access is disabled if it is not specified.
* @param Ipv6 Ipv6 access configuration.
IPv6 access is disabled if it is not specified.
*/
public void setIpv6(Ipv6 Ipv6) {
this.Ipv6 = Ipv6;
}
/**
* Get The rule details.
If this field is not specified, an application proxy rule will not be created.
* @return ApplicationProxyRules The rule details.
If this field is not specified, an application proxy rule will not be created.
*/
public ApplicationProxyRule [] getApplicationProxyRules() {
return this.ApplicationProxyRules;
}
/**
* Set The rule details.
If this field is not specified, an application proxy rule will not be created.
* @param ApplicationProxyRules The rule details.
If this field is not specified, an application proxy rule will not be created.
*/
public void setApplicationProxyRules(ApplicationProxyRule [] ApplicationProxyRules) {
this.ApplicationProxyRules = ApplicationProxyRules;
}
/**
* Get Cross-MLC-border acceleration. It is disabled if this parameter is not specified.
* @return AccelerateMainland Cross-MLC-border acceleration. It is disabled if this parameter is not specified.
*/
public AccelerateMainland getAccelerateMainland() {
return this.AccelerateMainland;
}
/**
* Set Cross-MLC-border acceleration. It is disabled if this parameter is not specified.
* @param AccelerateMainland Cross-MLC-border acceleration. It is disabled if this parameter is not specified.
*/
public void setAccelerateMainland(AccelerateMainland AccelerateMainland) {
this.AccelerateMainland = AccelerateMainland;
}
public CreateApplicationProxyRequest() {
}
/**
* 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 CreateApplicationProxyRequest(CreateApplicationProxyRequest source) {
if (source.ZoneId != null) {
this.ZoneId = new String(source.ZoneId);
}
if (source.ProxyName != null) {
this.ProxyName = new String(source.ProxyName);
}
if (source.PlatType != null) {
this.PlatType = new String(source.PlatType);
}
if (source.SecurityType != null) {
this.SecurityType = new Long(source.SecurityType);
}
if (source.AccelerateType != null) {
this.AccelerateType = new Long(source.AccelerateType);
}
if (source.ProxyType != null) {
this.ProxyType = new String(source.ProxyType);
}
if (source.SessionPersistTime != null) {
this.SessionPersistTime = new Long(source.SessionPersistTime);
}
if (source.Ipv6 != null) {
this.Ipv6 = new Ipv6(source.Ipv6);
}
if (source.ApplicationProxyRules != null) {
this.ApplicationProxyRules = new ApplicationProxyRule[source.ApplicationProxyRules.length];
for (int i = 0; i < source.ApplicationProxyRules.length; i++) {
this.ApplicationProxyRules[i] = new ApplicationProxyRule(source.ApplicationProxyRules[i]);
}
}
if (source.AccelerateMainland != null) {
this.AccelerateMainland = new AccelerateMainland(source.AccelerateMainland);
}
}
/**
* 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 + "PlatType", this.PlatType);
this.setParamSimple(map, prefix + "SecurityType", this.SecurityType);
this.setParamSimple(map, prefix + "AccelerateType", this.AccelerateType);
this.setParamSimple(map, prefix + "ProxyType", this.ProxyType);
this.setParamSimple(map, prefix + "SessionPersistTime", this.SessionPersistTime);
this.setParamObj(map, prefix + "Ipv6.", this.Ipv6);
this.setParamArrayObj(map, prefix + "ApplicationProxyRules.", this.ApplicationProxyRules);
this.setParamObj(map, prefix + "AccelerateMainland.", this.AccelerateMainland);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy