public class L7RuleEntry extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
L7RuleEntry()  | 
L7RuleEntry(L7RuleEntry 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 | 
getCCAIEnable()
Get Intelligent CC protection status. 
 | 
Long | 
getCCEnable()
Get CC protection status based on HTTPS. 
 | 
String | 
getCCLevel()
Get CC protection level based on HTTPS. 
 | 
Long | 
getCCStatus()
Get CC protection status. 
 | 
Long | 
getCCThreshold()
Get CC protection threshold based on HTTPS. 
 | 
String | 
getCert()
Get [Disused] When the certificate is an external certificate, the certificate content should be provided here. 
 | 
Long | 
getCertType()
Get Certificate source. 
 | 
String | 
getDomain()
Get Forwarding domain name. 
 | 
Long | 
getHttpsToHttpEnable()
Get Whether to enable **Forward HTTPS requests via HTTP**. 
 | 
String | 
getId()
Get ID of the rule 
 | 
Long | 
getKeepEnable()
Get Whether session persistence is enabled. 
 | 
Long | 
getKeepTime()
Get Session persistence duration, in seconds. 
 | 
Long | 
getLbType()
Get Load balancing method. 
 | 
String | 
getPrivateKey()
Get [Disused] When the certificate is an external certificate, the certificate key should be provided here. 
 | 
String | 
getProtocol()
Get Forwarding protocol. 
 | 
String | 
getRuleId()
Get Rule ID. 
 | 
String | 
getRuleName()
Get Rule description. 
 | 
L4RuleSource[] | 
getSourceList()
Get List of origins 
 | 
Long | 
getSourceType()
Get Forwarding method. 
 | 
String | 
getSSLId()
Get When the certificate is managed by Tencent Cloud, this field must be set to the ID of the managed certificate. 
 | 
Long | 
getStatus()
Get Rule status. 
 | 
Long | 
getVirtualPort()
Get Access port number. 
 | 
void | 
setCCAIEnable(Long CCAIEnable)
Set Intelligent CC protection status. 
 | 
void | 
setCCEnable(Long CCEnable)
Set CC protection status based on HTTPS. 
 | 
void | 
setCCLevel(String CCLevel)
Set CC protection level based on HTTPS. 
 | 
void | 
setCCStatus(Long CCStatus)
Set CC protection status. 
 | 
void | 
setCCThreshold(Long CCThreshold)
Set CC protection threshold based on HTTPS. 
 | 
void | 
setCert(String Cert)
Set [Disused] When the certificate is an external certificate, the certificate content should be provided here. 
 | 
void | 
setCertType(Long CertType)
Set Certificate source. 
 | 
void | 
setDomain(String Domain)
Set Forwarding domain name. 
 | 
void | 
setHttpsToHttpEnable(Long HttpsToHttpEnable)
Set Whether to enable **Forward HTTPS requests via HTTP**. 
 | 
void | 
setId(String Id)
Set ID of the rule 
 | 
void | 
setKeepEnable(Long KeepEnable)
Set Whether session persistence is enabled. 
 | 
void | 
setKeepTime(Long KeepTime)
Set Session persistence duration, in seconds. 
 | 
void | 
setLbType(Long LbType)
Set Load balancing method. 
 | 
void | 
setPrivateKey(String PrivateKey)
Set [Disused] When the certificate is an external certificate, the certificate key should be provided here. 
 | 
void | 
setProtocol(String Protocol)
Set Forwarding protocol. 
 | 
void | 
setRuleId(String RuleId)
Set Rule ID. 
 | 
void | 
setRuleName(String RuleName)
Set Rule description. 
 | 
void | 
setSourceList(L4RuleSource[] SourceList)
Set List of origins 
 | 
void | 
setSourceType(Long SourceType)
Set Forwarding method. 
 | 
void | 
setSSLId(String SSLId)
Set When the certificate is managed by Tencent Cloud, this field must be set to the ID of the managed certificate. 
 | 
void | 
setStatus(Long Status)
Set Rule status. 
 | 
void | 
setVirtualPort(Long VirtualPort)
Set Access port number. 
 | 
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 L7RuleEntry()
public L7RuleEntry(L7RuleEntry source)
public Long getKeepTime()
public void setKeepTime(Long KeepTime)
KeepTime - Session persistence duration, in seconds.public String getDomain()
public void setDomain(String Domain)
Domain - Forwarding domain name.public String getProtocol()
public void setProtocol(String Protocol)
Protocol - Forwarding protocol. Valid values: `http` and `https`.public Long getSourceType()
public void setSourceType(Long SourceType)
SourceType - Forwarding method. Valid values: `1` (by domain name); `2` (by IP).public Long getLbType()
public void setLbType(Long LbType)
LbType - Load balancing method. Valid value: `1` (weighed polling).public L4RuleSource[] getSourceList()
public void setSourceList(L4RuleSource[] SourceList)
SourceList - List of originspublic Long getKeepEnable()
public void setKeepEnable(Long KeepEnable)
KeepEnable - Whether session persistence is enabled. Valid values: `0` (disabled) and `1` (enabled).public Long getStatus()
public void setStatus(Long Status)
Status - Rule status. Valid values: `0` (the rule was successfully configured), `1` (configuring the rule), `2` (rule configuration failed), `3` (deleting the rule), `5` (failed to delete rule), `6` (rule awaiting configuration), `7` (rule awaiting deletion), and `8` (rule awaiting certificate configuration).public String getRuleId()
public void setRuleId(String RuleId)
RuleId - Rule ID. This field is not required for adding a rule, but is required for modifying or deleting a rule.public Long getCCThreshold()
public void setCCThreshold(Long CCThreshold)
CCThreshold - CC protection threshold based on HTTPS.public String getPrivateKey()
public void setPrivateKey(String PrivateKey)
PrivateKey - [Disused] When the certificate is an external certificate, the certificate key should be provided here.public Long getCCEnable()
public void setCCEnable(Long CCEnable)
CCEnable - CC protection status based on HTTPS. Valid values: `0` (disabled) and `1` (enabled).public Long getHttpsToHttpEnable()
public void setHttpsToHttpEnable(Long HttpsToHttpEnable)
HttpsToHttpEnable - Whether to enable **Forward HTTPS requests via HTTP**. Valid values: `0` (disable) and `1` (enable). It defaults to `0`.
Note: This field may return null, indicating that no valid values can be obtained.public Long getCertType()
public void setCertType(Long CertType)
CertType - Certificate source. When the forwarding protocol is HTTPS, this field must be set to `2` (Tencent Cloud managed certificate), and for HTTP protocol, it can be set to `0`.public String getCert()
public void setCert(String Cert)
Cert - [Disused] When the certificate is an external certificate, the certificate content should be provided here.public String getCCLevel()
public void setCCLevel(String CCLevel)
CCLevel - CC protection level based on HTTPS.public String getRuleName()
public void setRuleName(String RuleName)
RuleName - Rule description.public Long getCCStatus()
public void setCCStatus(Long CCStatus)
CCStatus - CC protection status. Valid values: `0` (disabled) and `1` (enabled).public Long getVirtualPort()
public void setVirtualPort(Long VirtualPort)
VirtualPort - Access port number.
Note: This field may return null, indicating that no valid values can be obtained.public String getSSLId()
public void setSSLId(String SSLId)
SSLId - When the certificate is managed by Tencent Cloud, this field must be set to the ID of the managed certificate.public String getId()
public void setId(String Id)
Id - ID of the rulepublic Long getCCAIEnable()
public void setCCAIEnable(Long CCAIEnable)
CCAIEnable - Intelligent CC protection status. Valid values: `0` (disabled) and `1` (enabled).Copyright © 2025. All rights reserved.