public class CustomRule extends AbstractModel
header, skipSign
Constructor and Description |
---|
CustomRule() |
CustomRule(CustomRule 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 |
---|---|
SecurityAction |
getAction()
Get Action for custom rules.
|
String |
getCondition()
Get The specifics of the custom rule, must comply with the expression grammar, please refer to product documentation for details.
|
String |
getEnabled()
Get The custom rule status.
|
String |
getId()
Get Custom rule ID.
|
String |
getName()
Get The custom rule name.
|
Long |
getPriority()
Get Customize the priority of custom rule.
|
String |
getRuleType()
Get Type of custom rule.
|
void |
setAction(SecurityAction Action)
Set Action for custom rules.
|
void |
setCondition(String Condition)
Set The specifics of the custom rule, must comply with the expression grammar, please refer to product documentation for details.
|
void |
setEnabled(String Enabled)
Set The custom rule status.
|
void |
setId(String Id)
Set Custom rule ID.
|
void |
setName(String Name)
Set The custom rule name.
|
void |
setPriority(Long Priority)
Set Customize the priority of custom rule.
|
void |
setRuleType(String RuleType)
Set Type of custom rule.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public CustomRule()
public CustomRule(CustomRule source)
public String getName()
public void setName(String Name)
Name
- The custom rule name.public String getCondition()
public void setCondition(String Condition)
Condition
- The specifics of the custom rule, must comply with the expression grammar, please refer to product documentation for details.public SecurityAction getAction()
public void setAction(SecurityAction Action)
Action
- Action for custom rules. The Name parameter of SecurityAction supports: public String getEnabled()
public void setEnabled(String Enabled)
Enabled
- The custom rule status. Values: public String getId()
public void setId(String Id)
Id
- Custom rule ID. public String getRuleType()
public void setRuleType(String RuleType)
RuleType
- Type of custom rule. Values: public Long getPriority()
public void setPriority(Long Priority)
Priority
- Customize the priority of custom rule. Range: 0-100, the default value is 0, this parameter only supports PreciseMatchRule.Copyright © 2025. All rights reserved.