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 Matching content under the corresponding types for RuleType:
For "all", enter an asterisk (*).
|
String |
getRuleType()
Get Rule types:
all: all files take effect
file: specified file suffixes take effect
directory: specified paths take effect
path: specified absolute paths take effect
|
void |
setKBpsThreshold(Long KBpsThreshold)
Set Downstream speed value settings (in KB/s)
|
void |
setRulePaths(String[] RulePaths)
Set Matching content under the corresponding types for RuleType:
For "all", enter an asterisk (*).
|
void |
setRuleType(String RuleType)
Set Rule types:
all: all files take effect
file: specified file suffixes take effect
directory: specified paths take effect
path: specified absolute paths take effect
|
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: all files take effect
file: specified file suffixes take effect
directory: specified paths take effect
path: specified absolute paths take effectpublic String[] getRulePaths()
public void setRulePaths(String[] RulePaths)
RulePaths
- Matching content under the corresponding types for 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.