All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.ice20201109.models.InsertMediaToSearchLibRequest Maven / Gradle / Ivy

// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.ice20201109.models;

import com.aliyun.tea.*;

public class InsertMediaToSearchLibRequest extends TeaModel {
    /**
     * 

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.

*

This parameter is required.

* * example: *

http://example-test-****.mp4

*/ @NameInMap("Input") public String input; /** *

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.

* * example: *

411bed50018971edb60b0764a0ec6***

*/ @NameInMap("MediaId") public String mediaId; /** *

The type of the media asset. Valid values:

*
    *
  • video (default)
  • *
  • image
  • *
  • audio
  • *
* * example: *

video

*/ @NameInMap("MediaType") public String mediaType; /** *

The message body.

* * example: *

{}

*/ @NameInMap("MsgBody") public String msgBody; /** *

The name of the search library. Default value: ims-default-search-lib.

* * example: *

test1

*/ @NameInMap("SearchLibName") public String searchLibName; public static InsertMediaToSearchLibRequest build(java.util.Map map) throws Exception { InsertMediaToSearchLibRequest self = new InsertMediaToSearchLibRequest(); return TeaModel.build(map, self); } public InsertMediaToSearchLibRequest setInput(String input) { this.input = input; return this; } public String getInput() { return this.input; } public InsertMediaToSearchLibRequest setMediaId(String mediaId) { this.mediaId = mediaId; return this; } public String getMediaId() { return this.mediaId; } public InsertMediaToSearchLibRequest setMediaType(String mediaType) { this.mediaType = mediaType; return this; } public String getMediaType() { return this.mediaType; } public InsertMediaToSearchLibRequest setMsgBody(String msgBody) { this.msgBody = msgBody; return this; } public String getMsgBody() { return this.msgBody; } public InsertMediaToSearchLibRequest setSearchLibName(String searchLibName) { this.searchLibName = searchLibName; return this; } public String getSearchLibName() { return this.searchLibName; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy