public static final class CreateUploadImageRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateUploadImageRequest.Builder |
appId(String appId)
The ID of the application.
|
CreateUploadImageRequest |
build() |
CreateUploadImageRequest.Builder |
cateId(Long cateId)
The category ID of the image.
|
CreateUploadImageRequest.Builder |
description(String description)
The description of the image.
|
CreateUploadImageRequest.Builder |
imageExt(String imageExt)
The file name extension of the image.
|
CreateUploadImageRequest.Builder |
imageType(String imageType)
The type of the image.
|
CreateUploadImageRequest.Builder |
originalFileName(String originalFileName)
The name of the source file.
|
CreateUploadImageRequest.Builder |
storageLocation(String storageLocation)
The storage address.
|
CreateUploadImageRequest.Builder |
tags(String tags)
The tags of the image.
|
CreateUploadImageRequest.Builder |
title(String title)
The title of the image.
|
CreateUploadImageRequest.Builder |
userData(String userData)
The custom configurations, including callback configurations and upload acceleration configurations.
|
public CreateUploadImageRequest.Builder appId(String appId)
public CreateUploadImageRequest.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**. On the Categories page, you can view the category ID of the image. * 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 CreateUploadImageRequest.Builder description(String description)
* The description can be up to 1,024 characters in length. * The value must be encoded in UTF-8.
public CreateUploadImageRequest.Builder imageExt(String imageExt)
* **png** (default) * **jpg** * **jpeg** * **gif**
public CreateUploadImageRequest.Builder imageType(String imageType)
* **default**: the default image type. * **cover**: the thumbnail. > You can manage only images of the **default** type in the ApsaraVideo VOD console.
public CreateUploadImageRequest.Builder originalFileName(String originalFileName)
> The name must contain a file name extension. The file name extension is not case-sensitive.
public CreateUploadImageRequest.Builder storageLocation(String storageLocation)
> If you specify a storage address, media files are uploaded to the specified address.
public CreateUploadImageRequest.Builder tags(String tags)
* Each tag can be up to 32 characters in length. * You can specify a maximum of 16 tags for an image. * Separate multiple tags with commas (,). * The value must be encoded in UTF-8.
public CreateUploadImageRequest.Builder title(String title)
* The title can be up to 128 characters in length. * The value must be encoded in UTF-8.
public CreateUploadImageRequest.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 CreateUploadImageRequest build()
Copyright © 2024. All rights reserved.