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 an asterisk (*). | 
| String | getRuleType()Get Rule types:
`all`: effective for all files
`file`: effective for specified file suffixes
`directory`: effective for specified paths
`path`: effective for specified absolute paths | 
| void | setKBpsThreshold(Long KBpsThreshold)Set Downstream speed value settings (in KB/s) | 
| void | setRulePaths(String[] RulePaths)Set Content for each RuleType: 
For `all`, enter an asterisk (*). | 
| void | setRuleType(String RuleType)Set Rule types:
`all`: effective for all files
`file`: effective for specified file suffixes
`directory`: effective for specified paths
`path`: effective for specified absolute paths | 
| 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 CappingRule()
public CappingRule(CappingRule source)
public String getRuleType()
public void setRuleType(String RuleType)
RuleType - Rule types:
`all`: effective for all files
`file`: effective for specified file suffixes
`directory`: effective for specified paths
`path`: effective for specified absolute pathspublic String[] getRulePaths()
public void setRulePaths(String[] RulePaths)
RulePaths - Content for each RuleType: 
For `all`, enter an asterisk (*).
For `file`, enter the suffix, such as jpg, txt.
For `directory`, enter the path, such as /xxx/test/.
For `path`, enter the corresponding absolute path, such as /xxx/test.html.public Long getKBpsThreshold()
public void setKBpsThreshold(Long KBpsThreshold)
KBpsThreshold - Downstream speed value settings (in KB/s)Copyright © 2021. All rights reserved.