public class RuleInput extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
RuleInput()  | 
RuleInput(RuleInput source)
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. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
CertificateInput | 
getCertificate()
Get Certificate information. 
 | 
Boolean | 
getDefaultServer()
Get Whether to set this domain name as the default domain name. 
 | 
String | 
getDomain()
Get The domain name associated with the forwarding rule. 
 | 
String[] | 
getDomains()
Get The domain name associated with the forwarding rule. 
 | 
String | 
getForwardType()
Get Forwarding protocol between the CLB instance and backend service. 
 | 
HealthCheck | 
getHealthCheck()
Get Health check information. 
 | 
Boolean | 
getHttp2()
Get Whether to enable HTTP/2. 
 | 
MultiCertInfo | 
getMultiCertInfo()
Get Certificate information. 
 | 
Boolean | 
getQuic()
Get Whether to enable QUIC. 
 | 
String | 
getScheduler()
Get Request forwarding method of the rule. 
 | 
Long | 
getSessionExpireTime()
Get Session persistence duration, in seconds. 
 | 
String | 
getTargetType()
Get Target real server type. 
 | 
String | 
getTrpcCallee()
Get TRPC callee server route, which is required when `ForwardType` is "TRPC". 
 | 
String | 
getTrpcFunc()
Get TRPC calling service API, which is required when `ForwardType` is "TRPC". 
 | 
String | 
getUrl()
Get Forwarding rule path. 
 | 
void | 
setCertificate(CertificateInput Certificate)
Set Certificate information. 
 | 
void | 
setDefaultServer(Boolean DefaultServer)
Set Whether to set this domain name as the default domain name. 
 | 
void | 
setDomain(String Domain)
Set The domain name associated with the forwarding rule. 
 | 
void | 
setDomains(String[] Domains)
Set The domain name associated with the forwarding rule. 
 | 
void | 
setForwardType(String ForwardType)
Set Forwarding protocol between the CLB instance and backend service. 
 | 
void | 
setHealthCheck(HealthCheck HealthCheck)
Set Health check information. 
 | 
void | 
setHttp2(Boolean Http2)
Set Whether to enable HTTP/2. 
 | 
void | 
setMultiCertInfo(MultiCertInfo MultiCertInfo)
Set Certificate information. 
 | 
void | 
setQuic(Boolean Quic)
Set Whether to enable QUIC. 
 | 
void | 
setScheduler(String Scheduler)
Set Request forwarding method of the rule. 
 | 
void | 
setSessionExpireTime(Long SessionExpireTime)
Set Session persistence duration, in seconds. 
 | 
void | 
setTargetType(String TargetType)
Set Target real server type. 
 | 
void | 
setTrpcCallee(String TrpcCallee)
Set TRPC callee server route, which is required when `ForwardType` is "TRPC". 
 | 
void | 
setTrpcFunc(String TrpcFunc)
Set TRPC calling service API, which is required when `ForwardType` is "TRPC". 
 | 
void | 
setUrl(String Url)
Set Forwarding rule path. 
 | 
void | 
toMap(HashMap<String,String> map,
     String prefix)
Internal implementation, normal users should not use it. 
 | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic RuleInput()
public RuleInput(RuleInput source)
public String getUrl()
public void setUrl(String Url)
Url - Forwarding rule path. Length: 1-200.public String getDomain()
public void setDomain(String Domain)
Domain - The domain name associated with the forwarding rule. It can contain 1-80 characters. Only one domain name can be entered. If you need to enter multiple domain names, use `Domains`.public Long getSessionExpireTime()
public void setSessionExpireTime(Long SessionExpireTime)
SessionExpireTime - Session persistence duration, in seconds. 0 indicates that session persistence is disabled, and a value ranging from 30 to 86400 indicates that session persistence is enabled.public HealthCheck getHealthCheck()
public void setHealthCheck(HealthCheck HealthCheck)
HealthCheck - Health check information. For more information, please see [Health Check](https://intl.cloud.tencent.com/document/product/214/6097?from_cn_redirect=1)public CertificateInput getCertificate()
public void setCertificate(CertificateInput Certificate)
Certificate - Certificate information. `Certificate` and `MultiCertInfo` cannot be specified at the same time.public String getScheduler()
public void setScheduler(String Scheduler)
Scheduler - Request forwarding method of the rule. Value range: WRR, LEAST_CONN, IP_HASH
They represent weighted round robin, least connections, and IP hash, respectively. Default value: WRR.public String getForwardType()
public void setForwardType(String ForwardType)
ForwardType - Forwarding protocol between the CLB instance and backend service. Values: `HTTP`, `HTTPS`, `GRPC` and `TRPC` (only for internal usage). It defaults to `HTTP`.public Boolean getDefaultServer()
public void setDefaultServer(Boolean DefaultServer)
DefaultServer - Whether to set this domain name as the default domain name. Note: Only one default domain name can be set under one listener.public Boolean getHttp2()
public void setHttp2(Boolean Http2)
Http2 - Whether to enable HTTP/2. Note: HTTP/2 can be enabled only for HTTPS domain names.public String getTargetType()
public void setTargetType(String TargetType)
TargetType - Target real server type. NODE: binding a general node; TARGETGROUP: binding a target group.public String getTrpcCallee()
public void setTrpcCallee(String TrpcCallee)
TrpcCallee - TRPC callee server route, which is required when `ForwardType` is "TRPC". This is now only for internal usage.public String getTrpcFunc()
public void setTrpcFunc(String TrpcFunc)
TrpcFunc - TRPC calling service API, which is required when `ForwardType` is "TRPC". This is now only for internal usage.public Boolean getQuic()
public void setQuic(Boolean Quic)
Quic - Whether to enable QUIC. Note: QUIC can be enabled only for HTTPS domain namespublic String[] getDomains()
public void setDomains(String[] Domains)
Domains - The domain name associated with the forwarding rule. Each contain 1-80 characters. If you only need to enter one domain name, use `Domain` instead.public MultiCertInfo getMultiCertInfo()
public void setMultiCertInfo(MultiCertInfo MultiCertInfo)
MultiCertInfo - Certificate information. You can specify multiple server-side certificates with different algorithm types. `Certificate` and `MultiCertInfo` cannot be specified at the same time.Copyright © 2025. All rights reserved.