
com.tencentcloudapi.bmlb.v20180625.models.L7RulesLocation 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.bmlb.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 L7RulesLocation extends AbstractModel{
/**
* 转发路径。
*/
@SerializedName("Url")
@Expose
private String Url;
/**
* 转发路径实例ID。
*/
@SerializedName("LocationId")
@Expose
private String LocationId;
/**
* 会话保持时间。
*/
@SerializedName("SessionExpire")
@Expose
private Long SessionExpire;
/**
* 是否开启健康检查。
*/
@SerializedName("HealthSwitch")
@Expose
private Long HealthSwitch;
/**
* 健康检查检查路径。
*/
@SerializedName("HttpCheckPath")
@Expose
private String HttpCheckPath;
/**
* 健康检查检查域名。
*/
@SerializedName("HttpCheckDomain")
@Expose
private String HttpCheckDomain;
/**
* 健康检查检查间隔时间。
*/
@SerializedName("IntervalTime")
@Expose
private Long IntervalTime;
/**
* 健康检查健康阈值。
*/
@SerializedName("HealthNum")
@Expose
private Long HealthNum;
/**
* 健康检查不健康阈值。
*/
@SerializedName("UnhealthNum")
@Expose
private Long UnhealthNum;
/**
* 健康检查中认为健康的HTTP返回码的组合。可选值为1~5的集合,1表示HTTP返回码为1xx认为健康。2表示HTTP返回码为2xx认为健康。3表示HTTP返回码为3xx认为健康。4表示HTTP返回码为4xx认为健康。5表示HTTP返回码为5xx认为健康。
*/
@SerializedName("HttpCodes")
@Expose
private Long [] HttpCodes;
/**
* 均衡方式。
*/
@SerializedName("BalanceMode")
@Expose
private String BalanceMode;
/**
* 转发路径当前状态(0代表创建中,1代表正常运行,2代表创建失败,3代表删除中,4代表删除失败)。
*/
@SerializedName("Status")
@Expose
private Long Status;
/**
* 创建时间戳。
*/
@SerializedName("AddTimestamp")
@Expose
private String AddTimestamp;
/**
* Get 转发路径。
* @return Url 转发路径。
*/
public String getUrl() {
return this.Url;
}
/**
* Set 转发路径。
* @param Url 转发路径。
*/
public void setUrl(String Url) {
this.Url = Url;
}
/**
* Get 转发路径实例ID。
* @return LocationId 转发路径实例ID。
*/
public String getLocationId() {
return this.LocationId;
}
/**
* Set 转发路径实例ID。
* @param LocationId 转发路径实例ID。
*/
public void setLocationId(String LocationId) {
this.LocationId = LocationId;
}
/**
* Get 会话保持时间。
* @return SessionExpire 会话保持时间。
*/
public Long getSessionExpire() {
return this.SessionExpire;
}
/**
* Set 会话保持时间。
* @param SessionExpire 会话保持时间。
*/
public void setSessionExpire(Long SessionExpire) {
this.SessionExpire = SessionExpire;
}
/**
* Get 是否开启健康检查。
* @return HealthSwitch 是否开启健康检查。
*/
public Long getHealthSwitch() {
return this.HealthSwitch;
}
/**
* Set 是否开启健康检查。
* @param HealthSwitch 是否开启健康检查。
*/
public void setHealthSwitch(Long HealthSwitch) {
this.HealthSwitch = HealthSwitch;
}
/**
* Get 健康检查检查路径。
* @return HttpCheckPath 健康检查检查路径。
*/
public String getHttpCheckPath() {
return this.HttpCheckPath;
}
/**
* Set 健康检查检查路径。
* @param HttpCheckPath 健康检查检查路径。
*/
public void setHttpCheckPath(String HttpCheckPath) {
this.HttpCheckPath = HttpCheckPath;
}
/**
* Get 健康检查检查域名。
* @return HttpCheckDomain 健康检查检查域名。
*/
public String getHttpCheckDomain() {
return this.HttpCheckDomain;
}
/**
* Set 健康检查检查域名。
* @param HttpCheckDomain 健康检查检查域名。
*/
public void setHttpCheckDomain(String HttpCheckDomain) {
this.HttpCheckDomain = HttpCheckDomain;
}
/**
* Get 健康检查检查间隔时间。
* @return IntervalTime 健康检查检查间隔时间。
*/
public Long getIntervalTime() {
return this.IntervalTime;
}
/**
* Set 健康检查检查间隔时间。
* @param IntervalTime 健康检查检查间隔时间。
*/
public void setIntervalTime(Long IntervalTime) {
this.IntervalTime = IntervalTime;
}
/**
* Get 健康检查健康阈值。
* @return HealthNum 健康检查健康阈值。
*/
public Long getHealthNum() {
return this.HealthNum;
}
/**
* Set 健康检查健康阈值。
* @param HealthNum 健康检查健康阈值。
*/
public void setHealthNum(Long HealthNum) {
this.HealthNum = HealthNum;
}
/**
* Get 健康检查不健康阈值。
* @return UnhealthNum 健康检查不健康阈值。
*/
public Long getUnhealthNum() {
return this.UnhealthNum;
}
/**
* Set 健康检查不健康阈值。
* @param UnhealthNum 健康检查不健康阈值。
*/
public void setUnhealthNum(Long UnhealthNum) {
this.UnhealthNum = UnhealthNum;
}
/**
* Get 健康检查中认为健康的HTTP返回码的组合。可选值为1~5的集合,1表示HTTP返回码为1xx认为健康。2表示HTTP返回码为2xx认为健康。3表示HTTP返回码为3xx认为健康。4表示HTTP返回码为4xx认为健康。5表示HTTP返回码为5xx认为健康。
* @return HttpCodes 健康检查中认为健康的HTTP返回码的组合。可选值为1~5的集合,1表示HTTP返回码为1xx认为健康。2表示HTTP返回码为2xx认为健康。3表示HTTP返回码为3xx认为健康。4表示HTTP返回码为4xx认为健康。5表示HTTP返回码为5xx认为健康。
*/
public Long [] getHttpCodes() {
return this.HttpCodes;
}
/**
* Set 健康检查中认为健康的HTTP返回码的组合。可选值为1~5的集合,1表示HTTP返回码为1xx认为健康。2表示HTTP返回码为2xx认为健康。3表示HTTP返回码为3xx认为健康。4表示HTTP返回码为4xx认为健康。5表示HTTP返回码为5xx认为健康。
* @param HttpCodes 健康检查中认为健康的HTTP返回码的组合。可选值为1~5的集合,1表示HTTP返回码为1xx认为健康。2表示HTTP返回码为2xx认为健康。3表示HTTP返回码为3xx认为健康。4表示HTTP返回码为4xx认为健康。5表示HTTP返回码为5xx认为健康。
*/
public void setHttpCodes(Long [] HttpCodes) {
this.HttpCodes = HttpCodes;
}
/**
* Get 均衡方式。
* @return BalanceMode 均衡方式。
*/
public String getBalanceMode() {
return this.BalanceMode;
}
/**
* Set 均衡方式。
* @param BalanceMode 均衡方式。
*/
public void setBalanceMode(String BalanceMode) {
this.BalanceMode = BalanceMode;
}
/**
* Get 转发路径当前状态(0代表创建中,1代表正常运行,2代表创建失败,3代表删除中,4代表删除失败)。
* @return Status 转发路径当前状态(0代表创建中,1代表正常运行,2代表创建失败,3代表删除中,4代表删除失败)。
*/
public Long getStatus() {
return this.Status;
}
/**
* Set 转发路径当前状态(0代表创建中,1代表正常运行,2代表创建失败,3代表删除中,4代表删除失败)。
* @param Status 转发路径当前状态(0代表创建中,1代表正常运行,2代表创建失败,3代表删除中,4代表删除失败)。
*/
public void setStatus(Long Status) {
this.Status = Status;
}
/**
* Get 创建时间戳。
* @return AddTimestamp 创建时间戳。
*/
public String getAddTimestamp() {
return this.AddTimestamp;
}
/**
* Set 创建时间戳。
* @param AddTimestamp 创建时间戳。
*/
public void setAddTimestamp(String AddTimestamp) {
this.AddTimestamp = AddTimestamp;
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Url", this.Url);
this.setParamSimple(map, prefix + "LocationId", this.LocationId);
this.setParamSimple(map, prefix + "SessionExpire", this.SessionExpire);
this.setParamSimple(map, prefix + "HealthSwitch", this.HealthSwitch);
this.setParamSimple(map, prefix + "HttpCheckPath", this.HttpCheckPath);
this.setParamSimple(map, prefix + "HttpCheckDomain", this.HttpCheckDomain);
this.setParamSimple(map, prefix + "IntervalTime", this.IntervalTime);
this.setParamSimple(map, prefix + "HealthNum", this.HealthNum);
this.setParamSimple(map, prefix + "UnhealthNum", this.UnhealthNum);
this.setParamArraySimple(map, prefix + "HttpCodes.", this.HttpCodes);
this.setParamSimple(map, prefix + "BalanceMode", this.BalanceMode);
this.setParamSimple(map, prefix + "Status", this.Status);
this.setParamSimple(map, prefix + "AddTimestamp", this.AddTimestamp);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy