public class AddCustomRuleRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
AddCustomRuleRequest() |
AddCustomRuleRequest(AddCustomRuleRequest 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 |
getActionType()
Get Action type: 1 for Block, 2 captcha, 3 for Observe, 4 for Redirect
|
String |
getBypass()
Get Details of release
|
String |
getDomain()
Get Domain name for adding policy
|
String |
getEdition()
Get WAF instance type: sparta-waf for SaaS WAF, clb-waf for CLB WAF.
|
String |
getEventId()
Get Source of the rule addition, default is empty
|
String |
getExpireTime()
Get Expiration time: in second-level timestamp, for example, 1677254399 indicates the expiration time is 2023-02-24 23:59:59; 0 indicates it will never expire.
|
JobDateTime |
getJobDateTime()
Get Rule execution time
|
String |
getJobType()
Get Rule execution mode: TimedJob indicates scheduled execution.
|
String |
getLabel()
Get Rule tag.
|
String |
getName()
Get Rule name
|
String |
getPageId()
Get Interception page ID
|
String |
getRedirect()
Get If the action is redirect, it indicates the redirect address; otherwise, it can be left blank.
|
String |
getSortId()
Get Priority
|
String |
getSource()
Get Rule source.
|
Long |
getStatus()
Get Switch status.
|
Strategy[] |
getStrategies()
Get Policy details
|
void |
setActionType(String ActionType)
Set Action type: 1 for Block, 2 captcha, 3 for Observe, 4 for Redirect
|
void |
setBypass(String Bypass)
Set Details of release
|
void |
setDomain(String Domain)
Set Domain name for adding policy
|
void |
setEdition(String Edition)
Set WAF instance type: sparta-waf for SaaS WAF, clb-waf for CLB WAF.
|
void |
setEventId(String EventId)
Set Source of the rule addition, default is empty
|
void |
setExpireTime(String ExpireTime)
Set Expiration time: in second-level timestamp, for example, 1677254399 indicates the expiration time is 2023-02-24 23:59:59; 0 indicates it will never expire.
|
void |
setJobDateTime(JobDateTime JobDateTime)
Set Rule execution time
|
void |
setJobType(String JobType)
Set Rule execution mode: TimedJob indicates scheduled execution.
|
void |
setLabel(String Label)
Set Rule tag.
|
void |
setName(String Name)
Set Rule name
|
void |
setPageId(String PageId)
Set Interception page ID
|
void |
setRedirect(String Redirect)
Set If the action is redirect, it indicates the redirect address; otherwise, it can be left blank.
|
void |
setSortId(String SortId)
Set Priority
|
void |
setSource(String Source)
Set Rule source.
|
void |
setStatus(Long Status)
Set Switch status.
|
void |
setStrategies(Strategy[] Strategies)
Set Policy details
|
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 AddCustomRuleRequest()
public AddCustomRuleRequest(AddCustomRuleRequest source)
public String getName()
public void setName(String Name)
Name
- Rule namepublic String getSortId()
public void setSortId(String SortId)
SortId
- Prioritypublic Strategy[] getStrategies()
public void setStrategies(Strategy[] Strategies)
Strategies
- Policy detailspublic String getDomain()
public void setDomain(String Domain)
Domain
- Domain name for adding policypublic String getActionType()
public void setActionType(String ActionType)
ActionType
- Action type: 1 for Block, 2 captcha, 3 for Observe, 4 for Redirectpublic String getRedirect()
public void setRedirect(String Redirect)
Redirect
- If the action is redirect, it indicates the redirect address; otherwise, it can be left blank.public String getExpireTime()
public void setExpireTime(String ExpireTime)
ExpireTime
- Expiration time: in second-level timestamp, for example, 1677254399 indicates the expiration time is 2023-02-24 23:59:59; 0 indicates it will never expire.public String getEdition()
public void setEdition(String Edition)
Edition
- WAF instance type: sparta-waf for SaaS WAF, clb-waf for CLB WAF.public String getBypass()
public void setBypass(String Bypass)
Bypass
- Details of releasepublic String getEventId()
public void setEventId(String EventId)
EventId
- Source of the rule addition, default is emptypublic String getJobType()
public void setJobType(String JobType)
JobType
- Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.public JobDateTime getJobDateTime()
public void setJobDateTime(JobDateTime JobDateTime)
JobDateTime
- Rule execution timepublic String getSource()
public void setSource(String Source)
Source
- Rule source. You can determine whether a rule comes from a mini program.public String getLabel()
public void setLabel(String Label)
Label
- Rule tag. It is used for mini program rules and identifies whether a rule is a built-in rule or a custom rule.public Long getStatus()
public void setStatus(Long Status)
Status
- Switch status. This value is passed when mini program risk control rules are used.public String getPageId()
public void setPageId(String PageId)
PageId
- Interception page IDCopyright © 2025. All rights reserved.