public class AdvancedCCRules extends AbstractModel
| Constructor and Description | 
|---|
| AdvancedCCRules() | 
| AdvancedCCRules(AdvancedCCRules 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 | 
|---|---|
| String | getAction()Get Action. | 
| ScdnSevenLayerRules[] | getConfigure()Get Layer-7 rule configuration for CC frequency limiting
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| Long | getDetectionTime()Get Detection duration
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| Long | getFrequencyLimit()Get Detection frequency threshold
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| String | getPunishmentSwitch()Get Whether to enable IP penalty. | 
| Long | getPunishmentTime()Get IP penalty duration
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| String | getRedirectUrl()Get A redirection URL used when Action is `redirect`
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| String | getRuleName()Get Rule name | 
| String | getSwitch()Get Whether to enable the rule. | 
| void | setAction(String Action)Set Action. | 
| void | setConfigure(ScdnSevenLayerRules[] Configure)Set Layer-7 rule configuration for CC frequency limiting
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| void | setDetectionTime(Long DetectionTime)Set Detection duration
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| void | setFrequencyLimit(Long FrequencyLimit)Set Detection frequency threshold
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| void | setPunishmentSwitch(String PunishmentSwitch)Set Whether to enable IP penalty. | 
| void | setPunishmentTime(Long PunishmentTime)Set IP penalty duration
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| void | setRedirectUrl(String RedirectUrl)Set A redirection URL used when Action is `redirect`
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| void | setRuleName(String RuleName)Set Rule name | 
| void | setSwitch(String Switch)Set Whether to enable the rule. | 
| 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 AdvancedCCRules()
public AdvancedCCRules(AdvancedCCRules source)
public String getRuleName()
public void setRuleName(String RuleName)
RuleName - Rule namepublic Long getDetectionTime()
public void setDetectionTime(Long DetectionTime)
DetectionTime - Detection duration
Note: this field may return `null`, indicating that no valid values can be obtained.public Long getFrequencyLimit()
public void setFrequencyLimit(Long FrequencyLimit)
FrequencyLimit - Detection frequency threshold
Note: this field may return `null`, indicating that no valid values can be obtained.public String getPunishmentSwitch()
public void setPunishmentSwitch(String PunishmentSwitch)
PunishmentSwitch - Whether to enable IP penalty. Valid values: `on` and `off`.
Note: this field may return `null`, indicating that no valid values can be obtained.public Long getPunishmentTime()
public void setPunishmentTime(Long PunishmentTime)
PunishmentTime - IP penalty duration
Note: this field may return `null`, indicating that no valid values can be obtained.public String getAction()
public void setAction(String Action)
Action - Action. Valid values: `intercept` and `redirect`.
Note: this field may return `null`, indicating that no valid values can be obtained.public String getRedirectUrl()
public void setRedirectUrl(String RedirectUrl)
RedirectUrl - A redirection URL used when Action is `redirect`
Note: this field may return `null`, indicating that no valid values can be obtained.public ScdnSevenLayerRules[] getConfigure()
public void setConfigure(ScdnSevenLayerRules[] Configure)
Configure - Layer-7 rule configuration for CC frequency limiting
Note: this field may return `null`, indicating that no valid values can be obtained.public String getSwitch()
public void setSwitch(String Switch)
Switch - Whether to enable the rule. Values: `on` (enable), `off` (disable).
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2022. All rights reserved.