public class ScdnCCRules extends AbstractModel
Constructor and Description |
---|
ScdnCCRules() |
ScdnCCRules(ScdnCCRules 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.
|
Long |
getDetectionTime()
Get Detection granularity
Note: this field may return `null`, indicating that no valid values can be obtained.
|
Long |
getFrequencyLimit()
Get Frequency threshold
Note: this field may return `null`, indicating that no valid values can be obtained.
|
String |
getPunishmentSwitch()
Get Whether to block or redirect requests from suspicious IPs.
|
Long |
getPunishmentTime()
Get Suspicious IP restriction duration
Note: this field may return `null`, indicating that no valid values can be obtained.
|
Long |
getQps()
Get IP access limit rule
|
String |
getRedirectUrl()
Get The redirection target URL used when the `Action` is `redirect`
Note: this field may return `null`, indicating that no valid values can be obtained.
|
String |
getRuleType()
Get Rule types:
`all`: effective for all files.
|
String[] |
getRuleValue()
Get Rule value (blocking condition)
|
void |
setAction(String Action)
Set Action.
|
void |
setDetectionTime(Long DetectionTime)
Set Detection granularity
Note: this field may return `null`, indicating that no valid values can be obtained.
|
void |
setFrequencyLimit(Long FrequencyLimit)
Set Frequency threshold
Note: this field may return `null`, indicating that no valid values can be obtained.
|
void |
setPunishmentSwitch(String PunishmentSwitch)
Set Whether to block or redirect requests from suspicious IPs.
|
void |
setPunishmentTime(Long PunishmentTime)
Set Suspicious IP restriction duration
Note: this field may return `null`, indicating that no valid values can be obtained.
|
void |
setQps(Long Qps)
Set IP access limit rule
|
void |
setRedirectUrl(String RedirectUrl)
Set The redirection target URL used when the `Action` is `redirect`
Note: this field may return `null`, indicating that no valid values can be obtained.
|
void |
setRuleType(String RuleType)
Set Rule types:
`all`: effective for all files.
|
void |
setRuleValue(String[] RuleValue)
Set Rule value (blocking condition)
|
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, toJsonString
public ScdnCCRules()
public ScdnCCRules(ScdnCCRules source)
public String getRuleType()
public void setRuleType(String RuleType)
RuleType
- Rule types:
`all`: effective for all files.
`file`: Apply to files with the specified suffixes.
`directory`: Apply to specified paths.
`path`: Apply to specified absolute paths.
`index`: effective for web homepages and root directories.public String[] getRuleValue()
public void setRuleValue(String[] RuleValue)
RuleValue
- Rule value (blocking condition)public Long getQps()
public void setQps(Long Qps)
Qps
- IP access limit rulepublic Long getDetectionTime()
public void setDetectionTime(Long DetectionTime)
DetectionTime
- Detection granularity
Note: this field may return `null`, indicating that no valid values can be obtained.public Long getFrequencyLimit()
public void setFrequencyLimit(Long FrequencyLimit)
FrequencyLimit
- 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 block or redirect requests from suspicious IPs. 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
- Suspicious IP restriction 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
- The redirection target URL used when the `Action` is `redirect`
Note: this field may return `null`, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.