All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.qcloud.cos.model.ciModel.snapshot.CosSnapshotRequest Maven / Gradle / Ivy

There is a newer version: 5.6.238.2
Show newest version
package com.qcloud.cos.model.ciModel.snapshot;

import com.qcloud.cos.internal.CosServiceRequest;

import java.io.Serializable;

/**
 * 媒体截图请求实体  详情见:https://cloud.tencent.com/document/product/460/38934
 */
public class CosSnapshotRequest extends CosServiceRequest implements Serializable {
    /**
     * 资源在cos中的相对位置
     */
    private String objectKey;

    /**
     * bucket名称
     */
    private String bucketName;
    /**
     * 截取哪个时间点的内容,单位为秒
     */
    private String time;
    /**
     * 截图的宽。默认为0
     */
    private String Width;

    /**
     * 截图的高。默认为0。
     * Width 和 Height 都为0时,表示使用视频的宽高。如果单个为0,则以另外一个值按视频宽高比例自动适应
     */
    private String height;

    /**
     * 截图的格式,支持 jpg 和 png,默认 jpg
     */
    private String format;

    /**
     * 截帧方式:
     * keyframe:截取指定时间点之前的最近的一个关键帧
     * exactframe:截取指定时间点的帧
     * 默认值为 exactframe
     */
    private String mode;

    /**
     * 图片旋转方式。
     * auto:按视频旋转信息进行自动旋转
     * off:不旋转
     * 默认值为 auto
     */
    private String rotate;

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getWidth() {
        return Width;
    }

    public void setWidth(String width) {
        Width = width;
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    public String getRotate() {
        return rotate;
    }

    public void setRotate(String rotate) {
        this.rotate = rotate;
    }

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }

    public String getObjectKey() {
        return objectKey;
    }

    public void setObjectKey(String objectKey) {
        this.objectKey = objectKey;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("CosSnapshotRequest{");
        sb.append("objectKey='").append(objectKey).append('\'');
        sb.append(", bucketName='").append(bucketName).append('\'');
        sb.append(", time='").append(time).append('\'');
        sb.append(", Width='").append(Width).append('\'');
        sb.append(", height='").append(height).append('\'');
        sb.append(", format='").append(format).append('\'');
        sb.append(", mode='").append(mode).append('\'');
        sb.append(", rotate='").append(rotate).append('\'');
        sb.append('}');
        return sb.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy