public static final class GetImageInfoRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
GetImageInfoRequest.Builder |
authTimeout(Long authTimeout)
The validity period of the image URL.
|
GetImageInfoRequest |
build() |
GetImageInfoRequest.Builder |
imageId(String imageId)
The ID of the image.
|
GetImageInfoRequest.Builder |
outputType(String outputType)
The type of the image URL.
|
public GetImageInfoRequest.Builder authTimeout(Long authTimeout)
> * If the OutputType parameter is set to **cdn**: > * The image URL has a validity period only if URL signing is enabled. Otherwise, the image URL is permanently valid. > * Minimum value: **1**. > * Maximum value: unlimited. > * Default value: If you do not set this parameter, the default validity period that is specified in URL signing is used. > * If the OutputType parameter is set to **oss**: > * The image URL has a validity period only if the permissions on the Object Storage Service (OSS) bucket are private. Otherwise, the image URL is permanently valid. > * Minimum value: **1**. > * Maximum value: **2592000** (30 days). The maximum value is limited to reduce security risks of the origin. > * Default value: If you do not set this parameter, the default value is **3600**.
public GetImageInfoRequest.Builder imageId(String imageId)
public GetImageInfoRequest.Builder outputType(String outputType)
* **oss**: OSS URL * **cdn** (default): Content Delivery Network (CDN) URL
public GetImageInfoRequest build()
Copyright © 2024. All rights reserved.