public class GetImageInfoRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
Long |
authTimeout
The validity period of the image URL.
|
String |
imageId
The ID of the image.
|
String |
outputType
The type of the image URL.
|
| 构造器和说明 |
|---|
GetImageInfoRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static GetImageInfoRequest |
build(Map<String,?> map) |
Long |
getAuthTimeout() |
String |
getImageId() |
String |
getOutputType() |
GetImageInfoRequest |
setAuthTimeout(Long authTimeout) |
GetImageInfoRequest |
setImageId(String imageId) |
GetImageInfoRequest |
setOutputType(String outputType) |
@NameInMap(value="AuthTimeout") public Long authTimeout
The validity period of the image URL. Unit: seconds.
> * 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**.
@NameInMap(value="ImageId") public String imageId
The ID of the image.
@NameInMap(value="OutputType") public String outputType
The type of the image URL. Valid values:
* **oss**: OSS URL
* **cdn** (default): Content Delivery Network (CDN) URL
public static GetImageInfoRequest build(Map<String,?> map) throws Exception
Exceptionpublic GetImageInfoRequest setAuthTimeout(Long authTimeout)
public Long getAuthTimeout()
public GetImageInfoRequest setImageId(String imageId)
public String getImageId()
public GetImageInfoRequest setOutputType(String outputType)
public String getOutputType()
Copyright © 2024. All rights reserved.