public static final class AddContainerPluginRuleRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
AddContainerPluginRuleRequest |
build() |
AddContainerPluginRuleRequest.Builder |
lang(String lang)
The language of the content within the request and response.
|
AddContainerPluginRuleRequest.Builder |
mode(Integer mode)
The action that you want to specify for the rule.
|
AddContainerPluginRuleRequest.Builder |
ruleName(String ruleName)
The name of the rule.
|
AddContainerPluginRuleRequest.Builder |
ruleTemplateId(Integer ruleTemplateId)
The ID of the rule template.
|
AddContainerPluginRuleRequest.Builder |
ruleType(Integer ruleType)
The type of the rule.
|
AddContainerPluginRuleRequest.Builder |
selectedPolicy(List<String> selectedPolicy)
The check items that are enabled for the rule.
|
AddContainerPluginRuleRequest.Builder |
whiteImages(List<String> whiteImages)
The images that are added to the whitelist.
|
public AddContainerPluginRuleRequest.Builder lang(String lang)
The language of the content within the request and response. Default value: zh. Valid values:
zh
public AddContainerPluginRuleRequest.Builder mode(Integer mode)
The action that you want to specify for the rule. Valid values:
This parameter is required.
example:1
public AddContainerPluginRuleRequest.Builder ruleName(String ruleName)
The name of the rule. The name must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_). The names of rules that are created for the same user must be unique.
This parameter is required.
example:tyest111
public AddContainerPluginRuleRequest.Builder ruleTemplateId(Integer ruleTemplateId)
The ID of the rule template. You can call the ListSystemClientRules operation to query the ID of the rule template.
This parameter is required.
example:86863
public AddContainerPluginRuleRequest.Builder ruleType(Integer ruleType)
The type of the rule. Valid values:
0
public AddContainerPluginRuleRequest.Builder selectedPolicy(List<String> selectedPolicy)
The check items that are enabled for the rule.
This parameter is required.
public AddContainerPluginRuleRequest.Builder whiteImages(List<String> whiteImages)
The images that are added to the whitelist.
public AddContainerPluginRuleRequest build()
Copyright © 2026. All rights reserved.