Skip to content

ImageLibProps

Properties for defining a ImageLib.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-aligreen-imagelib

Initializer

import com.aliyun.ros.cdk.aligreen.ImageLibProps;
ImageLibProps.builder()
    .category(java.lang.String)
    .category(IResolvable)
    .imageLibName(java.lang.String)
    .imageLibName(IResolvable)
    .scene(java.lang.String)
    .scene(IResolvable)
//  .bizTypes(IResolvable)
//  .bizTypes(java.util.List<java.lang.String)
//  .bizTypes(IResolvable>)
//  .enable(java.lang.Boolean)
//  .enable(IResolvable)
    .build();

Properties

Name Type Description
category java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property category: The category of the image library.
imageLibName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property imageLibName: The name of the image library defined by the customer.
scene java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property scene: The moderation scenario to which the custom image library applies.
bizTypes com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property bizTypes: List of business scenarios.
enable java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property enable: Specifies whether to enable the image library.

categoryRequired

public java.lang.Object getCategory();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property category: The category of the image library.

Valid values: BLACK: a blacklist, WHITE: a whitelist, REVIEW: a review list.


imageLibNameRequired

public java.lang.Object getImageLibName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property imageLibName: The name of the image library defined by the customer.

It can contain no more than 20 characters in Chinese, English, and underscore (_).


sceneRequired

public java.lang.Object getScene();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property scene: The moderation scenario to which the custom image library applies.

Valid values: PORN: pornography detection, AD: ad detection, ILLEGAL: terrorist content detection.


bizTypesOptional

public java.lang.Object getBizTypes();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

Property bizTypes: List of business scenarios.

For example: ["bizTypeA", "bizTypeB", "bizTypeC"].


enableOptional

public java.lang.Object getEnable();
  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

Property enable: Specifies whether to enable the image library.

Valid values: true: Enable the image library. This is the default value. false: Disable the image library.