public class RuleInput extends AbstractModel
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 real server.
|
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 time 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 real server.
|
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 time 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, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public 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 time in seconds. Value range: 30-3,600. Setting it to 0 indicates that session persistence is disabled.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 real server. Currently, HTTP/HTTPS/TRPC are supported.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`.public String getTrpcFunc()
public void setTrpcFunc(String TrpcFunc)
TrpcFunc
- TRPC calling service API, which is required when `ForwardType` is `TRPC`.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 © 2023. All rights reserved.