public class ModifyCustomRuleRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
ModifyCustomRuleRequest() |
ModifyCustomRuleRequest(ModifyCustomRuleRequest 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 |
---|---|
String |
getBypass()
Get Whether to continue executing other check logic upon allowing.
|
String |
getDomain()
Get Edited domain
|
String |
getEdition()
Get Version of WAF.
|
Long |
getExpireTime()
Get Rule expiration deadline: 0 - permanently effective; other values correspond to the timestamp of the specified time.
|
JobDateTime |
getJobDateTime()
Get Scheduled task configuration
|
String |
getJobType()
Get Scheduled task type
|
String |
getPageId()
Get ID of the blocked page
|
String |
getRedirect()
Get Redirected URL when action is set to redirect, / by default
|
String |
getRuleAction()
Get Executed actions: 0-allow, 1-block, 2-CAPTCHA, 3-observe, 4-redirect
|
Long |
getRuleId()
Get Edited rule ID
|
String |
getRuleName()
Get Edited rule name
|
Long |
getSortId()
Get Priority, an integer from 1 to 100.
|
String |
getSource()
Get Rule source.
|
Long |
getStatus()
Get Enabling status.
|
Strategy[] |
getStrategies()
Get Matching condition array
|
void |
setBypass(String Bypass)
Set Whether to continue executing other check logic upon allowing.
|
void |
setDomain(String Domain)
Set Edited domain
|
void |
setEdition(String Edition)
Set Version of WAF.
|
void |
setExpireTime(Long ExpireTime)
Set Rule expiration deadline: 0 - permanently effective; other values correspond to the timestamp of the specified time.
|
void |
setJobDateTime(JobDateTime JobDateTime)
Set Scheduled task configuration
|
void |
setJobType(String JobType)
Set Scheduled task type
|
void |
setPageId(String PageId)
Set ID of the blocked page
|
void |
setRedirect(String Redirect)
Set Redirected URL when action is set to redirect, / by default
|
void |
setRuleAction(String RuleAction)
Set Executed actions: 0-allow, 1-block, 2-CAPTCHA, 3-observe, 4-redirect
|
void |
setRuleId(Long RuleId)
Set Edited rule ID
|
void |
setRuleName(String RuleName)
Set Edited rule name
|
void |
setSortId(Long SortId)
Set Priority, an integer from 1 to 100.
|
void |
setSource(String Source)
Set Rule source.
|
void |
setStatus(Long Status)
Set Enabling status.
|
void |
setStrategies(Strategy[] Strategies)
Set Matching condition array
|
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 ModifyCustomRuleRequest()
public ModifyCustomRuleRequest(ModifyCustomRuleRequest source)
public String getDomain()
public void setDomain(String Domain)
Domain
- Edited domainpublic Long getRuleId()
public void setRuleId(Long RuleId)
RuleId
- Edited rule IDpublic String getRuleName()
public void setRuleName(String RuleName)
RuleName
- Edited rule namepublic String getRuleAction()
public void setRuleAction(String RuleAction)
RuleAction
- Executed actions: 0-allow, 1-block, 2-CAPTCHA, 3-observe, 4-redirectpublic Strategy[] getStrategies()
public void setStrategies(Strategy[] Strategies)
Strategies
- Matching condition arraypublic String getEdition()
public void setEdition(String Edition)
Edition
- Version of WAF. clb-waf indicates CLB WAF; sparta-waf indicates SaaS WAF. sparta-waf by default.public String getRedirect()
public void setRedirect(String Redirect)
Redirect
- Redirected URL when action is set to redirect, / by defaultpublic String getBypass()
public void setBypass(String Bypass)
Bypass
- Whether to continue executing other check logic upon allowing. geoip: continue region blocking protection; cc: continue CC policy protection; owasp: continue web application protection; ai: continue AI engine protection; antileakage: continue information leakage prevention. If multiple values are entered, separate them with commas (,).
The default value is "geoip,cc,owasp,ai,antileakage".public Long getSortId()
public void setSortId(Long SortId)
SortId
- Priority, an integer from 1 to 100. The smaller the number, the higher the execution priority of this rule.
The default value is 100.public Long getExpireTime()
public void setExpireTime(Long ExpireTime)
ExpireTime
- Rule expiration deadline: 0 - permanently effective; other values correspond to the timestamp of the specified time.
The default value is 0.public String getJobType()
public void setJobType(String JobType)
JobType
- Scheduled task typepublic JobDateTime getJobDateTime()
public void setJobDateTime(JobDateTime JobDateTime)
JobDateTime
- Scheduled task configurationpublic String getSource()
public void setSource(String Source)
Source
- Rule source. This parameter checks whether the rule source is mini program.public Long getStatus()
public void setStatus(Long Status)
Status
- Enabling status. Pass the value for rules of mini program risk control.public String getPageId()
public void setPageId(String PageId)
PageId
- ID of the blocked pageCopyright © 2025. All rights reserved.