com.tencentcloudapi.teo.v20220901.models.ModifyL4ProxyRulesRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-teo Show documentation
Show all versions of tencentcloud-sdk-java-teo 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.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 ModifyL4ProxyRulesRequest extends AbstractModel {
/**
* 站点 ID。
*/
@SerializedName("ZoneId")
@Expose
private String ZoneId;
/**
* 四层代理实例 ID。
*/
@SerializedName("ProxyId")
@Expose
private String ProxyId;
/**
* 转发规则列表。单次最多支持 200 条转发规则。
注意:L4ProxyRule 在此处使用时,RuleId 为必填字段;Protocol、PortRange、OriginType、OriginValue、OriginPortRange、ClientIPPassThroughMode、SessionPersist、SessionPersistTime、RuleTag 均为选填字段,不填写表示不修改;Status 请勿填写。
*/
@SerializedName("L4ProxyRules")
@Expose
private L4ProxyRule [] L4ProxyRules;
/**
* 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 四层代理实例 ID。
* @return ProxyId 四层代理实例 ID。
*/
public String getProxyId() {
return this.ProxyId;
}
/**
* Set 四层代理实例 ID。
* @param ProxyId 四层代理实例 ID。
*/
public void setProxyId(String ProxyId) {
this.ProxyId = ProxyId;
}
/**
* Get 转发规则列表。单次最多支持 200 条转发规则。
注意:L4ProxyRule 在此处使用时,RuleId 为必填字段;Protocol、PortRange、OriginType、OriginValue、OriginPortRange、ClientIPPassThroughMode、SessionPersist、SessionPersistTime、RuleTag 均为选填字段,不填写表示不修改;Status 请勿填写。
* @return L4ProxyRules 转发规则列表。单次最多支持 200 条转发规则。
注意:L4ProxyRule 在此处使用时,RuleId 为必填字段;Protocol、PortRange、OriginType、OriginValue、OriginPortRange、ClientIPPassThroughMode、SessionPersist、SessionPersistTime、RuleTag 均为选填字段,不填写表示不修改;Status 请勿填写。
*/
public L4ProxyRule [] getL4ProxyRules() {
return this.L4ProxyRules;
}
/**
* Set 转发规则列表。单次最多支持 200 条转发规则。
注意:L4ProxyRule 在此处使用时,RuleId 为必填字段;Protocol、PortRange、OriginType、OriginValue、OriginPortRange、ClientIPPassThroughMode、SessionPersist、SessionPersistTime、RuleTag 均为选填字段,不填写表示不修改;Status 请勿填写。
* @param L4ProxyRules 转发规则列表。单次最多支持 200 条转发规则。
注意:L4ProxyRule 在此处使用时,RuleId 为必填字段;Protocol、PortRange、OriginType、OriginValue、OriginPortRange、ClientIPPassThroughMode、SessionPersist、SessionPersistTime、RuleTag 均为选填字段,不填写表示不修改;Status 请勿填写。
*/
public void setL4ProxyRules(L4ProxyRule [] L4ProxyRules) {
this.L4ProxyRules = L4ProxyRules;
}
public ModifyL4ProxyRulesRequest() {
}
/**
* 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 ModifyL4ProxyRulesRequest(ModifyL4ProxyRulesRequest source) {
if (source.ZoneId != null) {
this.ZoneId = new String(source.ZoneId);
}
if (source.ProxyId != null) {
this.ProxyId = new String(source.ProxyId);
}
if (source.L4ProxyRules != null) {
this.L4ProxyRules = new L4ProxyRule[source.L4ProxyRules.length];
for (int i = 0; i < source.L4ProxyRules.length; i++) {
this.L4ProxyRules[i] = new L4ProxyRule(source.L4ProxyRules[i]);
}
}
}
/**
* 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 + "ProxyId", this.ProxyId);
this.setParamArrayObj(map, prefix + "L4ProxyRules.", this.L4ProxyRules);
}
}