public class CappingRule extends AbstractModel
Constructor and Description |
---|
CappingRule() |
CappingRule(CappingRule 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 |
getKBpsThreshold()
Get Downstream speed value settings (in KB/s)
|
String[] |
getRulePaths()
Get Content for each `RuleType`:
For `all`, enter a wildcard `*`.
|
String |
getRuleType()
Get Rule types:
`all`: Apply to all files.
|
void |
setKBpsThreshold(Long KBpsThreshold)
Set Downstream speed value settings (in KB/s)
|
void |
setRulePaths(String[] RulePaths)
Set Content for each `RuleType`:
For `all`, enter a wildcard `*`.
|
void |
setRuleType(String RuleType)
Set Rule types:
`all`: Apply to all files.
|
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 CappingRule()
public CappingRule(CappingRule source)
public String getRuleType()
public void setRuleType(String RuleType)
RuleType
- Rule types:
`all`: Apply to all files.
`file`: Apply to files with the specified suffixes.
`directory`: Apply to specified paths.
`path`: Apply to specified absolute paths.public String[] getRulePaths()
public void setRulePaths(String[] RulePaths)
RulePaths
- Content for each `RuleType`:
For `all`, enter a wildcard `*`.
For `file`, enter a suffix, e.g., `jpg` or `txt`.
For `directory`, enter a path, e.g., `/xxx/test/`.
For `path`, enter an absolute path, e.g., `/xxx/test.html`.public Long getKBpsThreshold()
public void setKBpsThreshold(Long KBpsThreshold)
KBpsThreshold
- Downstream speed value settings (in KB/s)Copyright © 2023. All rights reserved.