public class RuleInfo extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| RuleInfo() | 
| RuleInfo(RuleInfo 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 | 
|---|---|
| Long | getBindStatus()Get Origin server service status. | 
| RuleCheckParams | getCheckParams()Get Health check parameters | 
| String | getDomain()Get Rule domain name | 
| String | getForcedRedirect()Get Forces requests to redirect to HTTPS. | 
| String | getForwardHost()Get The `host` carried in the request forwarded from the connection to the origin server. | 
| Long | getHealthCheck()Get Whether health check is enabled. | 
| String | getListenerId()Get Listener information | 
| String | getPath()Get Rule path | 
| BindRealServer[] | getRealServerSet()Get Bound origin server information | 
| String | getRealServerType()Get Origin server type | 
| String | getRuleId()Get Rule information | 
| Long | getRuleStatus()Get Rule status. | 
| String | getScheduler()Get The strategy used by the listener to access the origin server. | 
| String | getServerNameIndication()Get Server Name Indication (SNI). | 
| String | getServerNameIndicationSwitch()Get Specifies whether to enable Server Name Indication (SNI). | 
| void | setBindStatus(Long BindStatus)Set Origin server service status. | 
| void | setCheckParams(RuleCheckParams CheckParams)Set Health check parameters | 
| void | setDomain(String Domain)Set Rule domain name | 
| void | setForcedRedirect(String ForcedRedirect)Set Forces requests to redirect to HTTPS. | 
| void | setForwardHost(String ForwardHost)Set The `host` carried in the request forwarded from the connection to the origin server. | 
| void | setHealthCheck(Long HealthCheck)Set Whether health check is enabled. | 
| void | setListenerId(String ListenerId)Set Listener information | 
| void | setPath(String Path)Set Rule path | 
| void | setRealServerSet(BindRealServer[] RealServerSet)Set Bound origin server information | 
| void | setRealServerType(String RealServerType)Set Origin server type | 
| void | setRuleId(String RuleId)Set Rule information | 
| void | setRuleStatus(Long RuleStatus)Set Rule status. | 
| void | setScheduler(String Scheduler)Set The strategy used by the listener to access the origin server. | 
| void | setServerNameIndication(String ServerNameIndication)Set Server Name Indication (SNI). | 
| void | setServerNameIndicationSwitch(String ServerNameIndicationSwitch)Set Specifies whether to enable Server Name Indication (SNI). | 
| 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 RuleInfo()
public RuleInfo(RuleInfo source)
public String getRuleId()
public void setRuleId(String RuleId)
RuleId - Rule informationpublic String getListenerId()
public void setListenerId(String ListenerId)
ListenerId - Listener informationpublic String getDomain()
public void setDomain(String Domain)
Domain - Rule domain namepublic String getPath()
public void setPath(String Path)
Path - Rule pathpublic String getRealServerType()
public void setRealServerType(String RealServerType)
RealServerType - Origin server typepublic String getScheduler()
public void setScheduler(String Scheduler)
Scheduler - The strategy used by the listener to access the origin server. Values: `rr` (round-robin), `wrr` (weighted round-robin), `lc` (the least-connections strategy), `lrtt` (the least-response-time strategy).public Long getHealthCheck()
public void setHealthCheck(Long HealthCheck)
HealthCheck - Whether health check is enabled. 1: enabled, 0: disabledpublic Long getRuleStatus()
public void setRuleStatus(Long RuleStatus)
RuleStatus - Rule status. 0: running, 1: creating, 2: terminating, 3: binding/unbinding origin server, 4: updating configurationpublic RuleCheckParams getCheckParams()
public void setCheckParams(RuleCheckParams CheckParams)
CheckParams - Health check parameterspublic BindRealServer[] getRealServerSet()
public void setRealServerSet(BindRealServer[] RealServerSet)
RealServerSet - Bound origin server informationpublic Long getBindStatus()
public void setBindStatus(Long BindStatus)
BindStatus - Origin server service status. 0: exceptional, 1: normal
If health check is not enabled, this status will always be normal.
As long as one origin server is exceptional, this status will be exceptional. Please view `RealServerSet` for the status of specific origin servers.public String getForwardHost()
public void setForwardHost(String ForwardHost)
ForwardHost - The `host` carried in the request forwarded from the connection to the origin server. `default` indicates directly forwarding the received 'host'.
Note: This field may return null, indicating that no valid values can be obtained.public String getServerNameIndicationSwitch()
public void setServerNameIndicationSwitch(String ServerNameIndicationSwitch)
ServerNameIndicationSwitch - Specifies whether to enable Server Name Indication (SNI). Valid values: `ON` (enable) and `OFF` (disable).
Note: This field may return `null`, indicating that no valid value can be obtained.
Note: This field may return `null`, indicating that no valid value can be obtained.public String getServerNameIndication()
public void setServerNameIndication(String ServerNameIndication)
ServerNameIndication - Server Name Indication (SNI). This field is required when `ServerNameIndicationSwitch` is `ON`.
Note: This field may return `null`, indicating that no valid value can be obtained.
Note: This field may return `null`, indicating that no valid value can be obtained.public String getForcedRedirect()
public void setForcedRedirect(String ForcedRedirect)
ForcedRedirect - Forces requests to redirect to HTTPS. When `https:` is passed in, all requests are redirected to HTTPS.
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2025. All rights reserved.