Skip to content

InsertMediaToSearchLibProps

Properties for defining a InsertMediaToSearchLib.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ice-insertmediatosearchlib

Initializer

import com.aliyun.ros.cdk.ice.InsertMediaToSearchLibProps;
InsertMediaToSearchLibProps.builder()
    .input(java.lang.String)
    .input(IResolvable)
//  .mediaId(java.lang.String)
//  .mediaId(IResolvable)
//  .mediaType(java.lang.String)
//  .mediaType(IResolvable)
//  .msgBody(IResolvable)
//  .msgBody(java.util.Map<java.lang.String, java.lang.Object>)
//  .searchLibName(java.lang.String)
//  .searchLibName(IResolvable)
    .build();

Properties

Name Type Description
input java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property input: The URL of the video, audio, or image file that you want to import to the search library.
mediaId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property mediaId: The ID of the media asset.
mediaType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property mediaType: The type of the media asset.
msgBody com.aliyun.ros.cdk.core.IResolvable OR java.util.Map Property msgBody: The message body.
searchLibName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property searchLibName: The name of the search library.

inputRequired

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

Property input: The URL of the video, audio, or image file that you want to import to the search library.

Note: Make sure that you specify a correct file name and the bucket in which the file resides is in the same region where this operation is called. Otherwise, the file cannot be found or the operation may fail. Specify an Object Storage Service (OSS) URL in the following format: oss://[Bucket name]/[File path]. For example, you can specify oss://[example-bucket-]/[object_path-]. Specify an HTTP URL in the following format: public endpoint. For example, you can specify http://example-test-****.mp4.


mediaIdOptional

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

Property mediaId: The ID of the media asset.

Each media ID is unique. If you leave this parameter empty, a media ID is automatically generated for this parameter.


mediaTypeOptional

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

Property mediaType: The type of the media asset.

Valid values: video (default) image audio


msgBodyOptional

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

Property msgBody: The message body.


searchLibNameOptional

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

Property searchLibName: The name of the search library.

Default value: ims-default-search-lib.