public class ModifyWebSecurityTemplateRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
ModifyWebSecurityTemplateRequest() |
ModifyWebSecurityTemplateRequest(ModifyWebSecurityTemplateRequest 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 |
---|---|
SecurityPolicy |
getSecurityPolicy()
Get Security policy template configuration content.
|
String |
getTemplateId()
Get Policy template ID.
|
String |
getTemplateName()
Get Modified policy template name.
|
String |
getZoneId()
Get Zone ID.
|
void |
setSecurityPolicy(SecurityPolicy SecurityPolicy)
Set Security policy template configuration content.
|
void |
setTemplateId(String TemplateId)
Set Policy template ID.
|
void |
setTemplateName(String TemplateName)
Set Modified policy template name.
|
void |
setZoneId(String ZoneId)
Set Zone ID.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public ModifyWebSecurityTemplateRequest()
public ModifyWebSecurityTemplateRequest(ModifyWebSecurityTemplateRequest source)
public String getZoneId()
public void setZoneId(String ZoneId)
ZoneId
- Zone ID. The zone to which the target policy template belongs for access control. Use the DescribeWebSecurityTemplates interface to query the zone of the policy template.public String getTemplateId()
public void setTemplateId(String TemplateId)
TemplateId
- Policy template ID.public String getTemplateName()
public void setTemplateName(String TemplateName)
TemplateName
- Modified policy template name. Consists of Chinese characters, letters, numbers, and underscores, cannot start with an underscore, and must not exceed 32 characters. If the field is empty, no modification will be made.public SecurityPolicy getSecurityPolicy()
public void setSecurityPolicy(SecurityPolicy SecurityPolicy)
SecurityPolicy
- Security policy template configuration content. If the value is empty, no modification will be made; submodule structures not passed in will not be modified. Currently supports exception rules, custom rules, rate limiting rules, and managed rule configurations in the Web Security module, using expression syntax for security policy configuration. Bot management rule configuration is not yet supported (under development).
Special note: When passing a submodule structure as input, ensure all rule content to be retained is included. Rule content not passed in will be treated as deleted.Copyright © 2025. All rights reserved.