com.volcengine.model.imagex.v2.GetUrlFetchTaskResResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of volc-sdk-java Show documentation
Show all versions of volc-sdk-java Show documentation
The VOLC Engine SDK for Java
package com.volcengine.model.imagex.v2;
import com.alibaba.fastjson.JSON;
/**
* GetUrlFetchTaskResResult
*/
@lombok.Data
public final class GetUrlFetchTaskResResult {
/**
* 异步任务 ID
*/
@com.alibaba.fastjson.annotation.JSONField(name = "Id")
private String id;
/**
* 任务状态,取值如下所示:
*
*
*
* - `Running`:进行中
*
* - `Pending`:排队中
*
* - `Failed`:失败
*
* - `Success`:成功
*/
@com.alibaba.fastjson.annotation.JSONField(name = "Status")
private String status;
/**
* 资源下载链接
*/
@com.alibaba.fastjson.annotation.JSONField(name = "Url")
private String url;
/**
* 资源上传后的资源 URI
*/
@com.alibaba.fastjson.annotation.JSONField(name = "StoreUri")
private String storeUri;
/**
* 任务开始时间戳,UTC 时间,单位为 s。
*/
@com.alibaba.fastjson.annotation.JSONField(name = "StartTime")
private Long startTime;
/**
* 完成任务总耗时,单位为 ms。
*/
@com.alibaba.fastjson.annotation.JSONField(name = "TimeCost")
private Long timeCost;
/**
* 资源大小,单位为 byte。
*/
@com.alibaba.fastjson.annotation.JSONField(name = "FSize")
private Long fSize;
/**
* 动图帧数
*/
@com.alibaba.fastjson.annotation.JSONField(name = "FrameCnt")
private Integer frameCnt;
/**
* 动图持续时间,单位为 ms。
*/
@com.alibaba.fastjson.annotation.JSONField(name = "Duration")
private Integer duration;
/**
* 图片类型
*/
@com.alibaba.fastjson.annotation.JSONField(name = "ImageFormat")
private String imageFormat;
/**
* 图片高
*/
@com.alibaba.fastjson.annotation.JSONField(name = "ImageHeight")
private Integer imageHeight;
/**
* 图片宽
*/
@com.alibaba.fastjson.annotation.JSONField(name = "ImageWidth")
private Integer imageWidth;
/**
* 任务完成时间戳,UTC 时间,单位为 s。
*/
@com.alibaba.fastjson.annotation.JSONField(name = "EndTime")
private Long endTime;
/**
* 传入的回调地址,仅当`Status`取值`Failed`时有返回值。
*/
@com.alibaba.fastjson.annotation.JSONField(name = "Callback")
private String callback;
/**
* 传入的回调内容,仅当`Status`取值`Failed`时有返回值。
*/
@com.alibaba.fastjson.annotation.JSONField(name = "CallbackBody")
private String callbackBody;
/**
* 传入的回调内容类型,仅当`Status`取值`Failed`时有返回值。
*/
@com.alibaba.fastjson.annotation.JSONField(name = "CallbackBodyType")
private String callbackBodyType;
/**
* 错误信息,仅当`Status`取值`Failed`时有返回值。
*/
@com.alibaba.fastjson.annotation.JSONField(name = "Err")
private String err;
/**
* 错误码,仅当`Status`取值`Failed`时有返回值。
*/
@com.alibaba.fastjson.annotation.JSONField(name = "Code")
private Integer code;
@Override
public String toString() {
return JSON.toJSONString(this);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy