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

com.qcloud.cos.model.ciModel.common.MediaInputObject Maven / Gradle / Ivy

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

import com.thoughtworks.xstream.annotations.XStreamAlias;

/**
 * 输入文件在cos中的位置
 * 例 cos根目录下的1.txt文件  则object = 1.txt
 * cos根目录下test文件夹中的1.txt文件 object = test/1.txt
 */
public class MediaInputObject {
    @XStreamAlias("Object")
    private String object;
    @XStreamAlias("Url")
    private String url;
    @XStreamAlias("Vod")
    private MediaVod vod;
    @XStreamAlias("BucketId")
    private String bucketId;
    @XStreamAlias("Region")
    private String region;

    public String getObject() {
        return object;
    }

    public void setObject(String object) {
        this.object = object;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public MediaVod getVod() {
        if (vod == null) {
            vod = new MediaVod();
        }
        return vod;
    }

    public void setVod(MediaVod vod) {
        this.vod = vod;
    }

    public String getBucketId() {
        return bucketId;
    }

    public void setBucketId(String bucketId) {
        this.bucketId = bucketId;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("MediaInputObject{");
        sb.append("object='").append(object).append('\'');
        sb.append(", url='").append(url).append('\'');
        sb.append(", vod=").append(vod);
        sb.append('}');
        return sb.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy