
com.tencentcloudapi.clb.v20180317.models.RuleInput 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.clb.v20180317.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class RuleInput extends AbstractModel{
/**
* 转发规则的域名。长度限制为:1~80。
*/
@SerializedName("Domain")
@Expose
private String Domain;
/**
* 转发规则的路径。长度限制为:1~200。
*/
@SerializedName("Url")
@Expose
private String Url;
/**
* 会话保持时间。设置为0表示关闭会话保持,开启会话保持可取值30~3600,单位:秒。
*/
@SerializedName("SessionExpireTime")
@Expose
private Long SessionExpireTime;
/**
* 健康检查信息。详情请参见:[健康检查](https://cloud.tencent.com/document/product/214/6097)
*/
@SerializedName("HealthCheck")
@Expose
private HealthCheck HealthCheck;
/**
* 证书信息
*/
@SerializedName("Certificate")
@Expose
private CertificateInput Certificate;
/**
* 规则的请求转发方式,可选值:WRR、LEAST_CONN、IP_HASH
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。
*/
@SerializedName("Scheduler")
@Expose
private String Scheduler;
/**
* 负载均衡与后端服务之间的转发协议,目前支持 HTTP/HTTPS/TRPC
*/
@SerializedName("ForwardType")
@Expose
private String ForwardType;
/**
* 是否将该域名设为默认域名,注意,一个监听器下只能设置一个默认域名。
*/
@SerializedName("DefaultServer")
@Expose
private Boolean DefaultServer;
/**
* 是否开启Http2,注意,只有HTTPS域名才能开启Http2。
*/
@SerializedName("Http2")
@Expose
private Boolean Http2;
/**
* 后端目标类型,NODE表示绑定普通节点,TARGETGROUP表示绑定目标组
*/
@SerializedName("TargetType")
@Expose
private String TargetType;
/**
* TRPC被调服务器路由,ForwardType为TRPC时必填
*/
@SerializedName("TrpcCallee")
@Expose
private String TrpcCallee;
/**
* TRPC调用服务接口,ForwardType为TRPC时必填
*/
@SerializedName("TrpcFunc")
@Expose
private String TrpcFunc;
/**
* 是否开启QUIC,注意,只有HTTPS域名才能开启QUIC
*/
@SerializedName("Quic")
@Expose
private Boolean Quic;
/**
* Get 转发规则的域名。长度限制为:1~80。
* @return Domain 转发规则的域名。长度限制为:1~80。
*/
public String getDomain() {
return this.Domain;
}
/**
* Set 转发规则的域名。长度限制为:1~80。
* @param Domain 转发规则的域名。长度限制为:1~80。
*/
public void setDomain(String Domain) {
this.Domain = Domain;
}
/**
* Get 转发规则的路径。长度限制为:1~200。
* @return Url 转发规则的路径。长度限制为:1~200。
*/
public String getUrl() {
return this.Url;
}
/**
* Set 转发规则的路径。长度限制为:1~200。
* @param Url 转发规则的路径。长度限制为:1~200。
*/
public void setUrl(String Url) {
this.Url = Url;
}
/**
* Get 会话保持时间。设置为0表示关闭会话保持,开启会话保持可取值30~3600,单位:秒。
* @return SessionExpireTime 会话保持时间。设置为0表示关闭会话保持,开启会话保持可取值30~3600,单位:秒。
*/
public Long getSessionExpireTime() {
return this.SessionExpireTime;
}
/**
* Set 会话保持时间。设置为0表示关闭会话保持,开启会话保持可取值30~3600,单位:秒。
* @param SessionExpireTime 会话保持时间。设置为0表示关闭会话保持,开启会话保持可取值30~3600,单位:秒。
*/
public void setSessionExpireTime(Long SessionExpireTime) {
this.SessionExpireTime = SessionExpireTime;
}
/**
* Get 健康检查信息。详情请参见:[健康检查](https://cloud.tencent.com/document/product/214/6097)
* @return HealthCheck 健康检查信息。详情请参见:[健康检查](https://cloud.tencent.com/document/product/214/6097)
*/
public HealthCheck getHealthCheck() {
return this.HealthCheck;
}
/**
* Set 健康检查信息。详情请参见:[健康检查](https://cloud.tencent.com/document/product/214/6097)
* @param HealthCheck 健康检查信息。详情请参见:[健康检查](https://cloud.tencent.com/document/product/214/6097)
*/
public void setHealthCheck(HealthCheck HealthCheck) {
this.HealthCheck = HealthCheck;
}
/**
* Get 证书信息
* @return Certificate 证书信息
*/
public CertificateInput getCertificate() {
return this.Certificate;
}
/**
* Set 证书信息
* @param Certificate 证书信息
*/
public void setCertificate(CertificateInput Certificate) {
this.Certificate = Certificate;
}
/**
* Get 规则的请求转发方式,可选值:WRR、LEAST_CONN、IP_HASH
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。
* @return Scheduler 规则的请求转发方式,可选值:WRR、LEAST_CONN、IP_HASH
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。
*/
public String getScheduler() {
return this.Scheduler;
}
/**
* Set 规则的请求转发方式,可选值:WRR、LEAST_CONN、IP_HASH
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。
* @param Scheduler 规则的请求转发方式,可选值:WRR、LEAST_CONN、IP_HASH
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。
*/
public void setScheduler(String Scheduler) {
this.Scheduler = Scheduler;
}
/**
* Get 负载均衡与后端服务之间的转发协议,目前支持 HTTP/HTTPS/TRPC
* @return ForwardType 负载均衡与后端服务之间的转发协议,目前支持 HTTP/HTTPS/TRPC
*/
public String getForwardType() {
return this.ForwardType;
}
/**
* Set 负载均衡与后端服务之间的转发协议,目前支持 HTTP/HTTPS/TRPC
* @param ForwardType 负载均衡与后端服务之间的转发协议,目前支持 HTTP/HTTPS/TRPC
*/
public void setForwardType(String ForwardType) {
this.ForwardType = ForwardType;
}
/**
* Get 是否将该域名设为默认域名,注意,一个监听器下只能设置一个默认域名。
* @return DefaultServer 是否将该域名设为默认域名,注意,一个监听器下只能设置一个默认域名。
*/
public Boolean getDefaultServer() {
return this.DefaultServer;
}
/**
* Set 是否将该域名设为默认域名,注意,一个监听器下只能设置一个默认域名。
* @param DefaultServer 是否将该域名设为默认域名,注意,一个监听器下只能设置一个默认域名。
*/
public void setDefaultServer(Boolean DefaultServer) {
this.DefaultServer = DefaultServer;
}
/**
* Get 是否开启Http2,注意,只有HTTPS域名才能开启Http2。
* @return Http2 是否开启Http2,注意,只有HTTPS域名才能开启Http2。
*/
public Boolean getHttp2() {
return this.Http2;
}
/**
* Set 是否开启Http2,注意,只有HTTPS域名才能开启Http2。
* @param Http2 是否开启Http2,注意,只有HTTPS域名才能开启Http2。
*/
public void setHttp2(Boolean Http2) {
this.Http2 = Http2;
}
/**
* Get 后端目标类型,NODE表示绑定普通节点,TARGETGROUP表示绑定目标组
* @return TargetType 后端目标类型,NODE表示绑定普通节点,TARGETGROUP表示绑定目标组
*/
public String getTargetType() {
return this.TargetType;
}
/**
* Set 后端目标类型,NODE表示绑定普通节点,TARGETGROUP表示绑定目标组
* @param TargetType 后端目标类型,NODE表示绑定普通节点,TARGETGROUP表示绑定目标组
*/
public void setTargetType(String TargetType) {
this.TargetType = TargetType;
}
/**
* Get TRPC被调服务器路由,ForwardType为TRPC时必填
* @return TrpcCallee TRPC被调服务器路由,ForwardType为TRPC时必填
*/
public String getTrpcCallee() {
return this.TrpcCallee;
}
/**
* Set TRPC被调服务器路由,ForwardType为TRPC时必填
* @param TrpcCallee TRPC被调服务器路由,ForwardType为TRPC时必填
*/
public void setTrpcCallee(String TrpcCallee) {
this.TrpcCallee = TrpcCallee;
}
/**
* Get TRPC调用服务接口,ForwardType为TRPC时必填
* @return TrpcFunc TRPC调用服务接口,ForwardType为TRPC时必填
*/
public String getTrpcFunc() {
return this.TrpcFunc;
}
/**
* Set TRPC调用服务接口,ForwardType为TRPC时必填
* @param TrpcFunc TRPC调用服务接口,ForwardType为TRPC时必填
*/
public void setTrpcFunc(String TrpcFunc) {
this.TrpcFunc = TrpcFunc;
}
/**
* Get 是否开启QUIC,注意,只有HTTPS域名才能开启QUIC
* @return Quic 是否开启QUIC,注意,只有HTTPS域名才能开启QUIC
*/
public Boolean getQuic() {
return this.Quic;
}
/**
* Set 是否开启QUIC,注意,只有HTTPS域名才能开启QUIC
* @param Quic 是否开启QUIC,注意,只有HTTPS域名才能开启QUIC
*/
public void setQuic(Boolean Quic) {
this.Quic = Quic;
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Domain", this.Domain);
this.setParamSimple(map, prefix + "Url", this.Url);
this.setParamSimple(map, prefix + "SessionExpireTime", this.SessionExpireTime);
this.setParamObj(map, prefix + "HealthCheck.", this.HealthCheck);
this.setParamObj(map, prefix + "Certificate.", this.Certificate);
this.setParamSimple(map, prefix + "Scheduler", this.Scheduler);
this.setParamSimple(map, prefix + "ForwardType", this.ForwardType);
this.setParamSimple(map, prefix + "DefaultServer", this.DefaultServer);
this.setParamSimple(map, prefix + "Http2", this.Http2);
this.setParamSimple(map, prefix + "TargetType", this.TargetType);
this.setParamSimple(map, prefix + "TrpcCallee", this.TrpcCallee);
this.setParamSimple(map, prefix + "TrpcFunc", this.TrpcFunc);
this.setParamSimple(map, prefix + "Quic", this.Quic);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy