public class NewL7RuleEntry extends AbstractModel
| Constructor and Description | 
|---|
| NewL7RuleEntry() | 
| NewL7RuleEntry(NewL7RuleEntry 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 | 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 Anti-DDoS instance ID. | 
| String | getIp()Get Anti-DDoS instance IP address. | 
| Long | getKeepEnable()Get Whether session persistence is enabled. | 
| Long | getKeepTime()Get Session persistence duration, in seconds. | 
| Long | getLbType()Get Load balancing method. | 
| String | getModifyTime()Get Modification time. | 
| String | getPrivateKey()Get [Disused] When the certificate is an external certificate, the certificate key should be provided here. | 
| String | getProtocol()Get Forwarding protocol. | 
| Long | getRegion()Get Region code. | 
| String | getRuleId()Get Rule ID. | 
| String | getRuleName()Get Rule description. | 
| L4RuleSource[] | getSourceList()Get List of sources | 
| Long | getSourceType()Get Forwarding method. | 
| String | getSSLId()Get When the certificate source is Tencent Cloud managed certificate, this field must be set to the ID of the managed certificate. | 
| Long | getStatus()Get Rule status. | 
| Long | getVirtualPort()Get Access port number. | 
| 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 Anti-DDoS instance ID. | 
| void | setIp(String Ip)Set Anti-DDoS instance IP address. | 
| 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 | setModifyTime(String ModifyTime)Set Modification time. | 
| 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 | setRegion(Long Region)Set Region code. | 
| void | setRuleId(String RuleId)Set Rule ID. | 
| void | setRuleName(String RuleName)Set Rule description. | 
| void | setSourceList(L4RuleSource[] SourceList)Set List of sources | 
| void | setSourceType(Long SourceType)Set Forwarding method. | 
| void | setSSLId(String SSLId)Set When the certificate source is Tencent Cloud managed certificate, 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, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonStringpublic NewL7RuleEntry()
public NewL7RuleEntry(NewL7RuleEntry source)
public String getProtocol()
public void setProtocol(String Protocol)
Protocol - Forwarding protocol. Valid values: `http` and `https`.public String getDomain()
public void setDomain(String Domain)
Domain - Forwarding domain name.public Long getSourceType()
public void setSourceType(Long SourceType)
SourceType - Forwarding method. Valid values: `1` (by domain name); `2` (by IP).public Long getKeepTime()
public void setKeepTime(Long KeepTime)
KeepTime - Session persistence duration, in seconds.public L4RuleSource[] getSourceList()
public void setSourceList(L4RuleSource[] SourceList)
SourceList - List of sourcespublic Long getLbType()
public void setLbType(Long LbType)
LbType - Load balancing method. Valid value: `1` (weighed polling).public Long getKeepEnable()
public void setKeepEnable(Long KeepEnable)
KeepEnable - Whether session persistence is enabled. Valid values: `0` (disabled) and `1` (enabled).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 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 getSSLId()
public void setSSLId(String SSLId)
SSLId - When the certificate source is Tencent Cloud managed certificate, this field must be set to the ID of the managed certificate.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 getPrivateKey()
public void setPrivateKey(String PrivateKey)
PrivateKey - [Disused] When the certificate is an external certificate, the certificate key should be provided here.public String getRuleName()
public void setRuleName(String RuleName)
RuleName - Rule description.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 Long getCCStatus()
public void setCCStatus(Long CCStatus)
CCStatus - CC protection status. Valid values: `0` (disabled) and `1` (enabled).public Long getCCEnable()
public void setCCEnable(Long CCEnable)
CCEnable - CC protection status based on HTTPS. Valid values: `0` (disabled) and `1` (enabled).public Long getCCThreshold()
public void setCCThreshold(Long CCThreshold)
CCThreshold - CC protection threshold based on HTTPS.public String getCCLevel()
public void setCCLevel(String CCLevel)
CCLevel - CC protection level based on HTTPS.public Long getRegion()
public void setRegion(Long Region)
Region - Region code.public String getId()
public void setId(String Id)
Id - Anti-DDoS instance ID.public String getIp()
public void setIp(String Ip)
Ip - Anti-DDoS instance IP address.public String getModifyTime()
public void setModifyTime(String ModifyTime)
ModifyTime - Modification time.public Long getHttpsToHttpEnable()
public void setHttpsToHttpEnable(Long HttpsToHttpEnable)
HttpsToHttpEnable - Whether to enable **Forward HTTPS requests via HTTP**. Valid values: `0` (disabled) and `1` (enabled). The default value is disabled.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.Copyright © 2021. All rights reserved.