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 源站的服务状态,0表示异常,1表示正常。
未开启健康检查时,该状态始终为正常。
只要有一个源站健康状态为异常时,该状态为异常,具体源站的状态请查看RealServerSet。 | 
| RuleCheckParams | getCheckParams()Get 健康检查相关参数 | 
| String | getDomain()Get 规则域名 | 
| String | getForcedRedirect()Get 强转HTTPS指示,当传递值为https:时表示强转为https
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getForwardHost()Get 通道转发到源站的请求所携带的host,其中default表示直接转发接收到的host。 | 
| String | getForwardProtocol()Get 七层转发规则的回源协议类型 | 
| Long | getHealthCheck()Get 是否开启健康检查标志,1表示开启,0表示关闭 | 
| String | getListenerId()Get 监听器信息 | 
| String | getPath()Get 规则路径 | 
| BindRealServer[] | getRealServerSet()Get 已绑定的源站相关信息 | 
| String | getRealServerType()Get 源站类型 | 
| String | getRuleId()Get 规则信息 | 
| Long | getRuleStatus()Get 规则状态,0表示运行中,1表示创建中,2表示销毁中,3表示绑定解绑源站中,4表示配置更新中 | 
| String | getScheduler()Get 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 | 
| String | getServerNameIndication()Get 服务器名称指示(ServerNameIndication,简称SNI),当SNI开关打开时,该字段必填。
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getServerNameIndicationSwitch()Get 服务器名称指示(ServerNameIndication,简称SNI)开关。ON表示开启,OFF表示关闭。
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setBindStatus(Long BindStatus)Set 源站的服务状态,0表示异常,1表示正常。
未开启健康检查时,该状态始终为正常。
只要有一个源站健康状态为异常时,该状态为异常,具体源站的状态请查看RealServerSet。 | 
| void | setCheckParams(RuleCheckParams CheckParams)Set 健康检查相关参数 | 
| void | setDomain(String Domain)Set 规则域名 | 
| void | setForcedRedirect(String ForcedRedirect)Set 强转HTTPS指示,当传递值为https:时表示强转为https
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setForwardHost(String ForwardHost)Set 通道转发到源站的请求所携带的host,其中default表示直接转发接收到的host。 | 
| void | setForwardProtocol(String ForwardProtocol)Set 七层转发规则的回源协议类型 | 
| void | setHealthCheck(Long HealthCheck)Set 是否开启健康检查标志,1表示开启,0表示关闭 | 
| void | setListenerId(String ListenerId)Set 监听器信息 | 
| void | setPath(String Path)Set 规则路径 | 
| void | setRealServerSet(BindRealServer[] RealServerSet)Set 已绑定的源站相关信息 | 
| void | setRealServerType(String RealServerType)Set 源站类型 | 
| void | setRuleId(String RuleId)Set 规则信息 | 
| void | setRuleStatus(Long RuleStatus)Set 规则状态,0表示运行中,1表示创建中,2表示销毁中,3表示绑定解绑源站中,4表示配置更新中 | 
| void | setScheduler(String Scheduler)Set 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 | 
| void | setServerNameIndication(String ServerNameIndication)Set 服务器名称指示(ServerNameIndication,简称SNI),当SNI开关打开时,该字段必填。
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setServerNameIndicationSwitch(String ServerNameIndicationSwitch)Set 服务器名称指示(ServerNameIndication,简称SNI)开关。ON表示开启,OFF表示关闭。
注意:此字段可能返回 null,表示取不到有效值。 | 
| 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 - 规则信息public String getListenerId()
public void setListenerId(String ListenerId)
ListenerId - 监听器信息public String getDomain()
public void setDomain(String Domain)
Domain - 规则域名public String getPath()
public void setPath(String Path)
Path - 规则路径public String getRealServerType()
public void setRealServerType(String RealServerType)
RealServerType - 源站类型public String getScheduler()
public void setScheduler(String Scheduler)
Scheduler - 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。public Long getHealthCheck()
public void setHealthCheck(Long HealthCheck)
HealthCheck - 是否开启健康检查标志,1表示开启,0表示关闭public Long getRuleStatus()
public void setRuleStatus(Long RuleStatus)
RuleStatus - 规则状态,0表示运行中,1表示创建中,2表示销毁中,3表示绑定解绑源站中,4表示配置更新中public RuleCheckParams getCheckParams()
public void setCheckParams(RuleCheckParams CheckParams)
CheckParams - 健康检查相关参数public BindRealServer[] getRealServerSet()
public void setRealServerSet(BindRealServer[] RealServerSet)
RealServerSet - 已绑定的源站相关信息public Long getBindStatus()
public void setBindStatus(Long BindStatus)
BindStatus - 源站的服务状态,0表示异常,1表示正常。
未开启健康检查时,该状态始终为正常。
只要有一个源站健康状态为异常时,该状态为异常,具体源站的状态请查看RealServerSet。public String getForwardHost()
public void setForwardHost(String ForwardHost)
ForwardHost - 通道转发到源站的请求所携带的host,其中default表示直接转发接收到的host。public String getServerNameIndicationSwitch()
public void setServerNameIndicationSwitch(String ServerNameIndicationSwitch)
ServerNameIndicationSwitch - 服务器名称指示(ServerNameIndication,简称SNI)开关。ON表示开启,OFF表示关闭。
注意:此字段可能返回 null,表示取不到有效值。public String getServerNameIndication()
public void setServerNameIndication(String ServerNameIndication)
ServerNameIndication - 服务器名称指示(ServerNameIndication,简称SNI),当SNI开关打开时,该字段必填。
注意:此字段可能返回 null,表示取不到有效值。public String getForcedRedirect()
public void setForcedRedirect(String ForcedRedirect)
ForcedRedirect - 强转HTTPS指示,当传递值为https:时表示强转为https
注意:此字段可能返回 null,表示取不到有效值。public String getForwardProtocol()
public void setForwardProtocol(String ForwardProtocol)
ForwardProtocol - 七层转发规则的回源协议类型Copyright © 2025. All rights reserved.