public static final class GetImageInfosRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
GetImageInfosRequest.Builder |
authTimeout(Long authTimeout)
The time when the image URL expires.
|
GetImageInfosRequest |
build() |
GetImageInfosRequest.Builder |
imageIds(String imageIds)
The image IDs.
|
GetImageInfosRequest.Builder |
outputType(String outputType)
The type of the output image URL.
|
public GetImageInfosRequest.Builder authTimeout(Long authTimeout)
* If the OutputType parameter is set to cdn: * This parameter takes effect only if URL authentication is enabled. Otherwise, the image URL does not expire. * Minimum value: 1. * Maximum value: unlimited. * Default value: The default validity period that is specified in URL authentication is used. * If the OutputType parameter is set to oss: * This parameter takes effect only when the ACL of the Object Storage Service (OSS) bucket is private. Otherwise, the image URL does not expire. * Minimum value: 1. * Maximum value: 2592000 (30 days). This limit is imposed to reduce security risks of the origin server. * Default value: 3600.
public GetImageInfosRequest.Builder imageIds(String imageIds)
* Log on to the [ApsaraVideo VOD console](https://vod.console.aliyun.com/) and choose Media Files > Images in the left-side navigation pane. This method is applicable to images that are uploaded by using the ApsaraVideo VOD console. * Obtain the value of ImageId from the response to the [CreateUploadImage](~~436544~~) operation that you call to obtain the upload URL and credential. * Obtain the value of ImageId from the response to the [SearchMedia](~~436559~~) operation after you upload images.
public GetImageInfosRequest.Builder outputType(String outputType)
* oss: OSS URL * cdn: CDN URL
public GetImageInfosRequest build()
Copyright © 2024. All rights reserved.