public class CappingRule extends AbstractModel
Constructor and Description |
---|
CappingRule() |
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, toJsonString
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 © 2020. All rights reserved.