public static final class CreateRuleRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateRuleRequest |
build() |
CreateRuleRequest.Builder |
category(Integer category)
The content type of the sensitive data detection rule.
|
CreateRuleRequest.Builder |
content(String content)
The content of the sensitive data detection rule.
|
CreateRuleRequest.Builder |
contentCategory(Integer contentCategory)
The type of the content in the sensitive data detection rule.
|
CreateRuleRequest.Builder |
description(String description)
The description of the rule.
|
CreateRuleRequest.Builder |
lang(String lang)
The language of the content within the request and response.
|
CreateRuleRequest.Builder |
matchType(Integer matchType)
The match type.
|
CreateRuleRequest.Builder |
name(String name)
The name of the sensitive data detection rule.
|
CreateRuleRequest.Builder |
productCode(String productCode)
The name of the service to which data in the column of the table belongs.
|
CreateRuleRequest.Builder |
productId(Long productId)
The ID of the service to which the data asset belongs.
|
CreateRuleRequest.Builder |
riskLevelId(Long riskLevelId)
The sensitivity level of the sensitive data that hits the sensitive data detection rule.
|
CreateRuleRequest.Builder |
ruleType(Integer ruleType)
The type of the sensitive data detection rule.
|
CreateRuleRequest.Builder |
sourceIp(String sourceIp)
This parameter is deprecated.
|
CreateRuleRequest.Builder |
statExpress(String statExpress)
The statistical expression.
|
CreateRuleRequest.Builder |
status(Integer status)
Specifies whether to enable the sensitive data detection rule.
|
CreateRuleRequest.Builder |
supportForm(Integer supportForm)
The type of the data asset.
|
CreateRuleRequest.Builder |
target(String target)
The code of the service to which the sensitive data detection rule is applied.
|
CreateRuleRequest.Builder |
warnLevel(Integer warnLevel)
The risk level of the alert that is triggered.
|
public CreateRuleRequest.Builder category(Integer category)
* **0**: keyword * **2**: regular expression
public CreateRuleRequest.Builder content(String content)
public CreateRuleRequest.Builder contentCategory(Integer contentCategory)
public CreateRuleRequest.Builder description(String description)
public CreateRuleRequest.Builder lang(String lang)
* **zh**: Chinese * **en**: English
public CreateRuleRequest.Builder matchType(Integer matchType)
* **1**: rule-based match * **2**: dictionary-based match
public CreateRuleRequest.Builder name(String name)
public CreateRuleRequest.Builder productCode(String productCode)
public CreateRuleRequest.Builder productId(Long productId)
public CreateRuleRequest.Builder riskLevelId(Long riskLevelId)
* **1**: N/A, which indicates that no sensitive data is detected. * **2**: S1, which indicates the low sensitivity level. * **3**: S2, which indicates the medium sensitivity level. * **4**: S3, which indicates the high sensitivity level. * **5**: S4, which indicates the highest sensitivity level.
public CreateRuleRequest.Builder ruleType(Integer ruleType)
* **1**: sensitive data detection rule * **2**: audit rule * **3**: anomalous event detection rule * **99**: custom rule
public CreateRuleRequest.Builder sourceIp(String sourceIp)
public CreateRuleRequest.Builder statExpress(String statExpress)
public CreateRuleRequest.Builder status(Integer status)
* **1**: yes * **0**: no
public CreateRuleRequest.Builder supportForm(Integer supportForm)
* **0**: all data assets * **1**: structured data asset * **2**: unstructured data asset > If you set the parameter to 1 or 2, rules that support all data assets and rules that support the queried data asset type are returned.
public CreateRuleRequest.Builder target(String target)
public CreateRuleRequest.Builder warnLevel(Integer warnLevel)
* **1**: low * **2**: medium * **3**: high
public CreateRuleRequest build()
Copyright © 2024. All rights reserved.