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 |
getCCEnable()
Get HTTPS CC protection status.
|
String |
getCCLevel()
Get HTTPS CC protection level
|
Long |
getCCStatus()
Get CC protection status.
|
Long |
getCCThreshold()
Get HTTPS CC protection threshold
|
String |
getCert()
Get If the certificate is an external certificate, this field must be entered with the certificate content.
|
Long |
getCertType()
Get Certificate source, which is required if the forwarding protocol is HTTPS.
|
String |
getDomain()
Get Forwarding domain name
|
Long |
getHttpsToHttpEnable()
Get Whether to enable **Forward HTTPS requests via HTTP**.
|
Long |
getKeepEnable()
Get Session persistence status.
|
Long |
getKeepTime()
Get Session persistence duration in seconds
|
Long |
getLbType()
Get Load balancing method.
|
String |
getPrivateKey()
Get If the certificate is an external certificate, this field must be entered with the certificate key.
|
String |
getProtocol()
Get Forwarding protocol.
|
String |
getRuleId()
Get Rule ID, which is optional when adding a new rule but required when modifying or deleting a rule;
|
String |
getRuleName()
Get Rule description
|
L4RuleSource[] |
getSourceList()
Get Forward list
|
Long |
getSourceType()
Get Forwarding method.
|
String |
getSSLId()
Get If the certificate is a Tencent Cloud-hosted certificate, this field must be entered with the hosted certificate ID
|
Long |
getStatus()
Get Rule status.
|
Long |
getVirtualPort()
Get Access port number.
|
void |
setCCEnable(Long CCEnable)
Set HTTPS CC protection status.
|
void |
setCCLevel(String CCLevel)
Set HTTPS CC protection level
|
void |
setCCStatus(Long CCStatus)
Set CC protection status.
|
void |
setCCThreshold(Long CCThreshold)
Set HTTPS CC protection threshold
|
void |
setCert(String Cert)
Set If the certificate is an external certificate, this field must be entered with the certificate content.
|
void |
setCertType(Long CertType)
Set Certificate source, which is required if the forwarding protocol is HTTPS.
|
void |
setDomain(String Domain)
Set Forwarding domain name
|
void |
setHttpsToHttpEnable(Long HttpsToHttpEnable)
Set Whether to enable **Forward HTTPS requests via HTTP**.
|
void |
setKeepEnable(Long KeepEnable)
Set Session persistence status.
|
void |
setKeepTime(Long KeepTime)
Set Session persistence duration in seconds
|
void |
setLbType(Long LbType)
Set Load balancing method.
|
void |
setPrivateKey(String PrivateKey)
Set If the certificate is an external certificate, this field must be entered with the certificate key.
|
void |
setProtocol(String Protocol)
Set Forwarding protocol.
|
void |
setRuleId(String RuleId)
Set Rule ID, which is optional when adding a new rule but required when modifying or deleting a rule;
|
void |
setRuleName(String RuleName)
Set Rule description
|
void |
setSourceList(L4RuleSource[] SourceList)
Set Forward list
|
void |
setSourceType(Long SourceType)
Set Forwarding method.
|
void |
setSSLId(String SSLId)
Set If the certificate is a Tencent Cloud-hosted certificate, this field must be entered with the hosted certificate ID
|
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, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public L7RuleEntry()
public L7RuleEntry(L7RuleEntry source)
public String getProtocol()
public void setProtocol(String Protocol)
Protocol
- Forwarding protocol. Valid values: [http, https]public String getDomain()
public void setDomain(String Domain)
Domain
- Forwarding domain namepublic Long getSourceType()
public void setSourceType(Long SourceType)
SourceType
- Forwarding method. Valid values: [1 (forwarding via domain name), 2 (forwarding via IP)]public Long getKeepTime()
public void setKeepTime(Long KeepTime)
KeepTime
- Session persistence duration in secondspublic L4RuleSource[] getSourceList()
public void setSourceList(L4RuleSource[] SourceList)
SourceList
- Forward listpublic Long getLbType()
public void setLbType(Long LbType)
LbType
- Load balancing method. Valid value: [1 (weighted round robin)]public Long getKeepEnable()
public void setKeepEnable(Long KeepEnable)
KeepEnable
- Session persistence status. Valid values: [0 (disabled), 1 (enabled)]public String getRuleId()
public void setRuleId(String RuleId)
RuleId
- Rule ID, which is optional when adding a new rule but required when modifying or deleting a rule;public Long getCertType()
public void setCertType(Long CertType)
CertType
- Certificate source, which is required if the forwarding protocol is HTTPS. Valid value: [2 (Tencent Cloud-hosted certificate)]. If the forwarding protocol is HTTP, 0 can be entered for this fieldpublic String getSSLId()
public void setSSLId(String SSLId)
SSLId
- If the certificate is a Tencent Cloud-hosted certificate, this field must be entered with the hosted certificate IDpublic String getCert()
public void setCert(String Cert)
Cert
- If the certificate is an external certificate, this field must be entered with the certificate content. (As external certificates are no longer supported, this field has been disused and does not need to be entered)public String getPrivateKey()
public void setPrivateKey(String PrivateKey)
PrivateKey
- If the certificate is an external certificate, this field must be entered with the certificate key. (As external certificates are no longer supported, this field has been disused and does not need to be entered)public String getRuleName()
public void setRuleName(String RuleName)
RuleName
- Rule descriptionpublic Long getStatus()
public void setStatus(Long Status)
Status
- Rule status. Valid values: [0 (successfully configured rule), 1 (rule configuration taking effect), 2 (rule configuration failed), 3 (rule deletion taking effect), 5 (rule deletion failed), 6 (rule waiting for configuration), 7 (rule waiting for deletion), 8 (rule waiting for certificate configuration)]public Long getCCStatus()
public void setCCStatus(Long CCStatus)
CCStatus
- CC protection status. Valid values: [0 (disabled), 1 (enabled)]public Long getCCEnable()
public void setCCEnable(Long CCEnable)
CCEnable
- HTTPS CC protection status. Valid values: [0 (disabled), 1 (enabled)]public Long getCCThreshold()
public void setCCThreshold(Long CCThreshold)
CCThreshold
- HTTPS CC protection thresholdpublic String getCCLevel()
public void setCCLevel(String CCLevel)
CCLevel
- HTTPS CC protection levelpublic 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 © 2024. All rights reserved.