
com.tencentcloudapi.teo.v20220106.models.ApplicationProxy Maven / Gradle / Ivy
/*
* 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.v20220106.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ApplicationProxy extends AbstractModel{
/**
* 代理ID。
*/
@SerializedName("ProxyId")
@Expose
private String ProxyId;
/**
* 当ProxyType=hostname时,表示域名或子域名;
当ProxyType=instance时,表示代理名称。
*/
@SerializedName("ProxyName")
@Expose
private String ProxyName;
/**
* 调度模式,取值有:
ip:表示Anycast IP调度;
domain:表示CNAME调度。
*/
@SerializedName("PlatType")
@Expose
private String PlatType;
/**
* 是否开启安全,取值有:
0:关闭安全;
1:开启安全。
*/
@SerializedName("SecurityType")
@Expose
private Long SecurityType;
/**
* 是否开启加速,取值有:
0:关闭加速;
1:开启加速。
*/
@SerializedName("AccelerateType")
@Expose
private Long AccelerateType;
/**
* 字段已经废弃。
*/
@SerializedName("ForwardClientIp")
@Expose
private String ForwardClientIp;
/**
* 字段已经废弃。
*/
@SerializedName("SessionPersist")
@Expose
private Boolean SessionPersist;
/**
* 规则列表。
*/
@SerializedName("Rule")
@Expose
private ApplicationProxyRule [] Rule;
/**
* 状态,取值有:
online:启用;
offline:停用;
progress:部署中;
stopping:停用中;
fail:部署失败/停用失败。
*/
@SerializedName("Status")
@Expose
private String Status;
/**
* 调度信息。
*/
@SerializedName("ScheduleValue")
@Expose
private String [] ScheduleValue;
/**
* 更新时间。
*/
@SerializedName("UpdateTime")
@Expose
private String UpdateTime;
/**
* 站点ID。
*/
@SerializedName("ZoneId")
@Expose
private String ZoneId;
/**
* 站点名称。
*/
@SerializedName("ZoneName")
@Expose
private String ZoneName;
/**
* 会话保持时间。
*/
@SerializedName("SessionPersistTime")
@Expose
private Long SessionPersistTime;
/**
* 四层代理模式,取值有:
hostname:表示子域名模式;
instance:表示实例模式。
*/
@SerializedName("ProxyType")
@Expose
private String ProxyType;
/**
* 当ProxyType=hostname时:
表示代理加速唯一标识。
*/
@SerializedName("HostId")
@Expose
private String HostId;
/**
* Ipv6访问配置。
*/
@SerializedName("Ipv6")
@Expose
private Ipv6Access Ipv6;
/**
* 加速区域,取值有:
mainland:中国大陆境内;
overseas:全球(不含中国大陆)。
默认值:overseas
*/
@SerializedName("Area")
@Expose
private String Area;
/**
* 封禁状态,取值有:
banned:已封禁;
banning:封禁中;
recover:已解封;
recovering:解封禁中。
*/
@SerializedName("BanStatus")
@Expose
private String BanStatus;
/**
* Get 代理ID。
* @return ProxyId 代理ID。
*/
public String getProxyId() {
return this.ProxyId;
}
/**
* Set 代理ID。
* @param ProxyId 代理ID。
*/
public void setProxyId(String ProxyId) {
this.ProxyId = ProxyId;
}
/**
* Get 当ProxyType=hostname时,表示域名或子域名;
当ProxyType=instance时,表示代理名称。
* @return ProxyName 当ProxyType=hostname时,表示域名或子域名;
当ProxyType=instance时,表示代理名称。
*/
public String getProxyName() {
return this.ProxyName;
}
/**
* Set 当ProxyType=hostname时,表示域名或子域名;
当ProxyType=instance时,表示代理名称。
* @param ProxyName 当ProxyType=hostname时,表示域名或子域名;
当ProxyType=instance时,表示代理名称。
*/
public void setProxyName(String ProxyName) {
this.ProxyName = ProxyName;
}
/**
* Get 调度模式,取值有:
ip:表示Anycast IP调度;
domain:表示CNAME调度。
* @return PlatType 调度模式,取值有:
ip:表示Anycast IP调度;
domain:表示CNAME调度。
*/
public String getPlatType() {
return this.PlatType;
}
/**
* Set 调度模式,取值有:
ip:表示Anycast IP调度;
domain:表示CNAME调度。
* @param PlatType 调度模式,取值有:
ip:表示Anycast IP调度;
domain:表示CNAME调度。
*/
public void setPlatType(String PlatType) {
this.PlatType = PlatType;
}
/**
* Get 是否开启安全,取值有:
0:关闭安全;
1:开启安全。
* @return SecurityType 是否开启安全,取值有:
0:关闭安全;
1:开启安全。
*/
public Long getSecurityType() {
return this.SecurityType;
}
/**
* Set 是否开启安全,取值有:
0:关闭安全;
1:开启安全。
* @param SecurityType 是否开启安全,取值有:
0:关闭安全;
1:开启安全。
*/
public void setSecurityType(Long SecurityType) {
this.SecurityType = SecurityType;
}
/**
* Get 是否开启加速,取值有:
0:关闭加速;
1:开启加速。
* @return AccelerateType 是否开启加速,取值有:
0:关闭加速;
1:开启加速。
*/
public Long getAccelerateType() {
return this.AccelerateType;
}
/**
* Set 是否开启加速,取值有:
0:关闭加速;
1:开启加速。
* @param AccelerateType 是否开启加速,取值有:
0:关闭加速;
1:开启加速。
*/
public void setAccelerateType(Long AccelerateType) {
this.AccelerateType = AccelerateType;
}
/**
* Get 字段已经废弃。
* @return ForwardClientIp 字段已经废弃。
*/
public String getForwardClientIp() {
return this.ForwardClientIp;
}
/**
* Set 字段已经废弃。
* @param ForwardClientIp 字段已经废弃。
*/
public void setForwardClientIp(String ForwardClientIp) {
this.ForwardClientIp = ForwardClientIp;
}
/**
* Get 字段已经废弃。
* @return SessionPersist 字段已经废弃。
*/
public Boolean getSessionPersist() {
return this.SessionPersist;
}
/**
* Set 字段已经废弃。
* @param SessionPersist 字段已经废弃。
*/
public void setSessionPersist(Boolean SessionPersist) {
this.SessionPersist = SessionPersist;
}
/**
* Get 规则列表。
* @return Rule 规则列表。
*/
public ApplicationProxyRule [] getRule() {
return this.Rule;
}
/**
* Set 规则列表。
* @param Rule 规则列表。
*/
public void setRule(ApplicationProxyRule [] Rule) {
this.Rule = Rule;
}
/**
* Get 状态,取值有:
online:启用;
offline:停用;
progress:部署中;
stopping:停用中;
fail:部署失败/停用失败。
* @return Status 状态,取值有:
online:启用;
offline:停用;
progress:部署中;
stopping:停用中;
fail:部署失败/停用失败。
*/
public String getStatus() {
return this.Status;
}
/**
* Set 状态,取值有:
online:启用;
offline:停用;
progress:部署中;
stopping:停用中;
fail:部署失败/停用失败。
* @param Status 状态,取值有:
online:启用;
offline:停用;
progress:部署中;
stopping:停用中;
fail:部署失败/停用失败。
*/
public void setStatus(String Status) {
this.Status = Status;
}
/**
* Get 调度信息。
* @return ScheduleValue 调度信息。
*/
public String [] getScheduleValue() {
return this.ScheduleValue;
}
/**
* Set 调度信息。
* @param ScheduleValue 调度信息。
*/
public void setScheduleValue(String [] ScheduleValue) {
this.ScheduleValue = ScheduleValue;
}
/**
* Get 更新时间。
* @return UpdateTime 更新时间。
*/
public String getUpdateTime() {
return this.UpdateTime;
}
/**
* Set 更新时间。
* @param UpdateTime 更新时间。
*/
public void setUpdateTime(String UpdateTime) {
this.UpdateTime = UpdateTime;
}
/**
* Get 站点ID。
* @return ZoneId 站点ID。
*/
public String getZoneId() {
return this.ZoneId;
}
/**
* Set 站点ID。
* @param ZoneId 站点ID。
*/
public void setZoneId(String ZoneId) {
this.ZoneId = ZoneId;
}
/**
* Get 站点名称。
* @return ZoneName 站点名称。
*/
public String getZoneName() {
return this.ZoneName;
}
/**
* Set 站点名称。
* @param ZoneName 站点名称。
*/
public void setZoneName(String ZoneName) {
this.ZoneName = ZoneName;
}
/**
* Get 会话保持时间。
* @return SessionPersistTime 会话保持时间。
*/
public Long getSessionPersistTime() {
return this.SessionPersistTime;
}
/**
* Set 会话保持时间。
* @param SessionPersistTime 会话保持时间。
*/
public void setSessionPersistTime(Long SessionPersistTime) {
this.SessionPersistTime = SessionPersistTime;
}
/**
* Get 四层代理模式,取值有:
hostname:表示子域名模式;
instance:表示实例模式。
* @return ProxyType 四层代理模式,取值有:
hostname:表示子域名模式;
instance:表示实例模式。
*/
public String getProxyType() {
return this.ProxyType;
}
/**
* Set 四层代理模式,取值有:
hostname:表示子域名模式;
instance:表示实例模式。
* @param ProxyType 四层代理模式,取值有:
hostname:表示子域名模式;
instance:表示实例模式。
*/
public void setProxyType(String ProxyType) {
this.ProxyType = ProxyType;
}
/**
* Get 当ProxyType=hostname时:
表示代理加速唯一标识。
* @return HostId 当ProxyType=hostname时:
表示代理加速唯一标识。
*/
public String getHostId() {
return this.HostId;
}
/**
* Set 当ProxyType=hostname时:
表示代理加速唯一标识。
* @param HostId 当ProxyType=hostname时:
表示代理加速唯一标识。
*/
public void setHostId(String HostId) {
this.HostId = HostId;
}
/**
* Get Ipv6访问配置。
* @return Ipv6 Ipv6访问配置。
*/
public Ipv6Access getIpv6() {
return this.Ipv6;
}
/**
* Set Ipv6访问配置。
* @param Ipv6 Ipv6访问配置。
*/
public void setIpv6(Ipv6Access Ipv6) {
this.Ipv6 = Ipv6;
}
/**
* Get 加速区域,取值有:
mainland:中国大陆境内;
overseas:全球(不含中国大陆)。
默认值:overseas
* @return Area 加速区域,取值有:
mainland:中国大陆境内;
overseas:全球(不含中国大陆)。
默认值:overseas
*/
public String getArea() {
return this.Area;
}
/**
* Set 加速区域,取值有:
mainland:中国大陆境内;
overseas:全球(不含中国大陆)。
默认值:overseas
* @param Area 加速区域,取值有:
mainland:中国大陆境内;
overseas:全球(不含中国大陆)。
默认值:overseas
*/
public void setArea(String Area) {
this.Area = Area;
}
/**
* Get 封禁状态,取值有:
banned:已封禁;
banning:封禁中;
recover:已解封;
recovering:解封禁中。
* @return BanStatus 封禁状态,取值有:
banned:已封禁;
banning:封禁中;
recover:已解封;
recovering:解封禁中。
*/
public String getBanStatus() {
return this.BanStatus;
}
/**
* Set 封禁状态,取值有:
banned:已封禁;
banning:封禁中;
recover:已解封;
recovering:解封禁中。
* @param BanStatus 封禁状态,取值有:
banned:已封禁;
banning:封禁中;
recover:已解封;
recovering:解封禁中。
*/
public void setBanStatus(String BanStatus) {
this.BanStatus = BanStatus;
}
public ApplicationProxy() {
}
/**
* 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 ApplicationProxy(ApplicationProxy source) {
if (source.ProxyId != null) {
this.ProxyId = new String(source.ProxyId);
}
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.ForwardClientIp != null) {
this.ForwardClientIp = new String(source.ForwardClientIp);
}
if (source.SessionPersist != null) {
this.SessionPersist = new Boolean(source.SessionPersist);
}
if (source.Rule != null) {
this.Rule = new ApplicationProxyRule[source.Rule.length];
for (int i = 0; i < source.Rule.length; i++) {
this.Rule[i] = new ApplicationProxyRule(source.Rule[i]);
}
}
if (source.Status != null) {
this.Status = new String(source.Status);
}
if (source.ScheduleValue != null) {
this.ScheduleValue = new String[source.ScheduleValue.length];
for (int i = 0; i < source.ScheduleValue.length; i++) {
this.ScheduleValue[i] = new String(source.ScheduleValue[i]);
}
}
if (source.UpdateTime != null) {
this.UpdateTime = new String(source.UpdateTime);
}
if (source.ZoneId != null) {
this.ZoneId = new String(source.ZoneId);
}
if (source.ZoneName != null) {
this.ZoneName = new String(source.ZoneName);
}
if (source.SessionPersistTime != null) {
this.SessionPersistTime = new Long(source.SessionPersistTime);
}
if (source.ProxyType != null) {
this.ProxyType = new String(source.ProxyType);
}
if (source.HostId != null) {
this.HostId = new String(source.HostId);
}
if (source.Ipv6 != null) {
this.Ipv6 = new Ipv6Access(source.Ipv6);
}
if (source.Area != null) {
this.Area = new String(source.Area);
}
if (source.BanStatus != null) {
this.BanStatus = new String(source.BanStatus);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "ProxyId", this.ProxyId);
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 + "ForwardClientIp", this.ForwardClientIp);
this.setParamSimple(map, prefix + "SessionPersist", this.SessionPersist);
this.setParamArrayObj(map, prefix + "Rule.", this.Rule);
this.setParamSimple(map, prefix + "Status", this.Status);
this.setParamArraySimple(map, prefix + "ScheduleValue.", this.ScheduleValue);
this.setParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
this.setParamSimple(map, prefix + "ZoneId", this.ZoneId);
this.setParamSimple(map, prefix + "ZoneName", this.ZoneName);
this.setParamSimple(map, prefix + "SessionPersistTime", this.SessionPersistTime);
this.setParamSimple(map, prefix + "ProxyType", this.ProxyType);
this.setParamSimple(map, prefix + "HostId", this.HostId);
this.setParamObj(map, prefix + "Ipv6.", this.Ipv6);
this.setParamSimple(map, prefix + "Area", this.Area);
this.setParamSimple(map, prefix + "BanStatus", this.BanStatus);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy