KeywordLibProps
Properties for defining a KeywordLib
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-aligreen-keywordlib
Initializer
import com.aliyun.ros.cdk.aligreen.KeywordLibProps;
KeywordLibProps.builder()
.keywordLibName(java.lang.String)
.keywordLibName(IResolvable)
.resourceType(java.lang.String)
.resourceType(IResolvable)
// .bizTypes(IResolvable)
// .bizTypes(java.util.List<java.lang.String)
// .bizTypes(IResolvable>)
// .category(java.lang.String)
// .category(IResolvable)
// .enable(java.lang.Boolean)
// .enable(IResolvable)
// .language(java.lang.String)
// .language(IResolvable)
// .libType(java.lang.String)
// .libType(IResolvable)
// .matchMode(java.lang.String)
// .matchMode(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
keywordLibName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property keywordLibName: The name of the keyword library defined by the customer. |
resourceType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property resourceType: The moderation scenario to which the text library applies. |
bizTypes |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property bizTypes: The business scenario. |
category |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property category: The category of the text library. |
enable |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property enable: Specifies whether to enable text library.true: Enable the text library. This is the default value.false: Disable the text library. |
language |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property language: Language used by the text Library. |
libType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property libType: The category of the text library in each moderation scenario. |
matchMode |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property matchMode: The matching method. |
keywordLibName
Required
public java.lang.Object getKeywordLibName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property keywordLibName: The name of the keyword library defined by the customer.
It can contain no more than 20 characters in Chinese, English, and underscore (_).
resourceType
Required
public java.lang.Object getResourceType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property resourceType: The moderation scenario to which the text library applies.
Valid values:TEXT: text anti-spam、IMAGE: ad violation detection、VOICE: audio anti-spam.
bizTypes
Optional
public java.lang.Object getBizTypes();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property bizTypes: The business scenario.
Example:["bizTypeA","bizTypeB"].
category
Optional
public java.lang.Object getCategory();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property category: The category of the text library.
Valid values: BLACK: a blacklist. WHITE: a whitelist. REVIEW: a review list.
enable
Optional
public java.lang.Object getEnable();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property enable: Specifies whether to enable text library.true: Enable the text library. This is the default value.false: Disable the text library.
language
Optional
public java.lang.Object getLanguage();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property language: Language used by the text Library.
Example: zh:Chinese、en:English
libType
Optional
public java.lang.Object getLibType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property libType: The category of the text library in each moderation scenario.
Valid values: textKeyword: a text library against which terms in text are matched. similarText: a text library against which text patterns are matched. voiceText: a text library against which terms converted from audio are matched.
matchMode
Optional
public java.lang.Object getMatchMode();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property matchMode: The matching method.
Valid values:fuzzy: fuzzy match precise: exact match.