public static final class CreateUploadVideoRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateUploadVideoRequest.Builder |
appId(String appId)
The ID of the application.
|
CreateUploadVideoRequest |
build() |
CreateUploadVideoRequest.Builder |
cateId(Long cateId)
The category ID of the media file.
|
CreateUploadVideoRequest.Builder |
coverURL(String coverURL)
The URL of the custom video thumbnail.
|
CreateUploadVideoRequest.Builder |
description(String description)
The description of the audio or video file.
|
CreateUploadVideoRequest.Builder |
fileName(String fileName)
The name of the audio or video file.
|
CreateUploadVideoRequest.Builder |
fileSize(Long fileSize)
The size of the source file.
|
CreateUploadVideoRequest.Builder |
storageLocation(String storageLocation)
The storage address.
|
CreateUploadVideoRequest.Builder |
tags(String tags)
The tags of the audio or video file.
|
CreateUploadVideoRequest.Builder |
templateGroupId(String templateGroupId)
The ID of the transcoding template group.
|
CreateUploadVideoRequest.Builder |
title(String title)
The title of the audio or video file.
|
CreateUploadVideoRequest.Builder |
userData(String userData)
The custom configurations such as callback configurations and upload acceleration configurations.
|
CreateUploadVideoRequest.Builder |
workflowId(String workflowId)
The ID of the workflow.
|
public CreateUploadVideoRequest.Builder appId(String appId)
public CreateUploadVideoRequest.Builder cateId(Long cateId)
* Log on to the [ApsaraVideo VOD console](https://vod.console.aliyun.com). In the left-side navigation pane, choose **Configuration Management** > **Media Management** > **Categories** to view the category ID of the media file. * Obtain the value of CateId from the response to the [AddCategory](~~56401~~) operation. * Obtain the value of CateId from the response to the [GetCategories](~~56406~~) operation.
public CreateUploadVideoRequest.Builder coverURL(String coverURL)
public CreateUploadVideoRequest.Builder description(String description)
* The value can be up to 1,024 characters in length. * The value must be encoded in UTF-8.
public CreateUploadVideoRequest.Builder fileName(String fileName)
* The name must contain a file name extension, which is not case-sensitive. * For more information about file name extensions supported by ApsaraVideo VOD, see [Overview](~~55396~~).
public CreateUploadVideoRequest.Builder fileSize(Long fileSize)
public CreateUploadVideoRequest.Builder storageLocation(String storageLocation)
> If you specify a storage address, media files are uploaded to the specified address.
public CreateUploadVideoRequest.Builder tags(String tags)
* You can specify a maximum of 16 tags. * If you want to specify multiple tags, separate the tags with commas (,). * Each tag can be up to 32 characters in length. * The value must be encoded in UTF-8.
public CreateUploadVideoRequest.Builder templateGroupId(String templateGroupId)
* Log on to the [ApsaraVideo VOD console](https://vod.console.aliyun.com). In the left-side navigation pane, choose **Configuration Management** > **Media Processing** > **Transcoding Template Groups** to view the ID of the transcoding template group. * Obtain the value of TranscodeTemplateGroupId in the response to the [AddTranscodeTemplateGroup](~~102665~~) operation. * Obtain the value of TranscodeTemplateGroupId in the response to the [ListTranscodeTemplateGroup](~~102669~~) operation. > If you leave this parameter empty, the default transcoding template group is used. If you specify this parameter, the specified transcoding template group is used for transcoding.
public CreateUploadVideoRequest.Builder title(String title)
* The title can be up to 128 characters in length. * The value must be encoded in UTF-8.
public CreateUploadVideoRequest.Builder userData(String userData)
> * The callback configurations take effect only after you specify the HTTP callback URL and select specific callback events in the ApsaraVideo VOD console. For more information about how to configure HTTP callback settings in the ApsaraVideo VOD console, see [Configure callback settings](~~86071~~). >* If you want to enable the upload acceleration feature, [submit a request on Yida](https://yida.alibaba-inc.com/o/ticketapply). For more information, see [Overview](~~55396~~).
public CreateUploadVideoRequest.Builder workflowId(String workflowId)
> If you specify the WorkflowId and TemplateGroupId parameters, the value of the WorkflowId parameter takes effect. For more information, see [Workflows](~~115347~~).
public CreateUploadVideoRequest build()
Copyright © 2024. All rights reserved.