public static final class CreateFileProtectRuleRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateFileProtectRuleRequest.Builder |
alertLevel(Integer alertLevel)
The severity of alerts.
|
CreateFileProtectRuleRequest |
build() |
CreateFileProtectRuleRequest.Builder |
fileOps(List<String> fileOps)
The operations that you want to perform on the files.
|
CreateFileProtectRuleRequest.Builder |
filePaths(List<String> filePaths)
The paths to the files that you want to monitor.
|
CreateFileProtectRuleRequest.Builder |
platform(String platform)
The type of the operating system.
|
CreateFileProtectRuleRequest.Builder |
procPaths(List<String> procPaths)
The paths to the processes that you want to monitor.
|
CreateFileProtectRuleRequest.Builder |
ruleAction(String ruleAction)
The handling method of the rule.
|
CreateFileProtectRuleRequest.Builder |
ruleName(String ruleName)
The name of the rule.
|
CreateFileProtectRuleRequest.Builder |
status(Integer status)
Specifies whether to enable the rule.
|
CreateFileProtectRuleRequest.Builder |
switchId(String switchId)
The switch ID of the rule.
|
public CreateFileProtectRuleRequest.Builder alertLevel(Integer alertLevel)
The severity of alerts. Valid values:
0
public CreateFileProtectRuleRequest.Builder fileOps(List<String> fileOps)
The operations that you want to perform on the files.
This parameter is required.
public CreateFileProtectRuleRequest.Builder filePaths(List<String> filePaths)
The paths to the files that you want to monitor. Wildcard characters are supported.
This parameter is required.
public CreateFileProtectRuleRequest.Builder platform(String platform)
The type of the operating system. Valid values:
linux
public CreateFileProtectRuleRequest.Builder procPaths(List<String> procPaths)
The paths to the processes that you want to monitor. Wildcard characters are supported.
This parameter is required.
public CreateFileProtectRuleRequest.Builder ruleAction(String ruleAction)
The handling method of the rule. Valid values:
This parameter is required.
example:pass
public CreateFileProtectRuleRequest.Builder ruleName(String ruleName)
The name of the rule.
This parameter is required.
example:tetsRule
public CreateFileProtectRuleRequest.Builder status(Integer status)
Specifies whether to enable the rule. Valid values:
1
public CreateFileProtectRuleRequest.Builder switchId(String switchId)
The switch ID of the rule.
example:FILE_PROTECT_RULE_SWITCH_TYPE_0000
public CreateFileProtectRuleRequest build()
Copyright © 2026. All rights reserved.