com.qcloud.cos.model.ciModel.template.MediaWatermark Maven / Gradle / Ivy
The newest version!
package com.qcloud.cos.model.ciModel.template;
import com.thoughtworks.xstream.annotations.XStreamAlias;
/**
* 水印模板实体类 参数详情见:https://cloud.tencent.com/document/product/460/48176
*/
public class MediaWatermark {
/**
* 水印类型 Text:文字水印 Image:图片水印
*/
@XStreamAlias("Type")
private String type;
/**
* 偏移方式 Relativity:按比例 Absolute:固定位置
*/
@XStreamAlias("LocMode")
private String locMode;
/**
* 水平偏移
*/
@XStreamAlias("Dx")
private String dx;
/**
* 垂直偏移
*/
@XStreamAlias("Dy")
private String dy;
/**
* 基准位置
*/
@XStreamAlias("Pos")
private String pos;
/**
* 水印开始时间
*/
@XStreamAlias("StartTime")
private String startTime;
/**
* 水印结束时间
*/
@XStreamAlias("EndTime")
private String endTime;
/**
* 水印text节点
*/
@XStreamAlias("Text")
private MediaWaterMarkText text;
/**
* 水印图片节点
*/
@XStreamAlias("Image")
private MediaWaterMarkImage image;
@XStreamAlias("SlideConfig")
private SlideConfig slideConfig;
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getLocMode() {
return locMode;
}
public void setLocMode(String locMode) {
this.locMode = locMode;
}
public String getDx() {
return dx;
}
public void setDx(String dx) {
this.dx = dx;
}
public String getDy() {
return dy;
}
public void setDy(String dy) {
this.dy = dy;
}
public String getPos() {
return pos;
}
public void setPos(String pos) {
this.pos = pos;
}
public String getStartTime() {
return startTime;
}
public void setStartTime(String startTime) {
this.startTime = startTime;
}
public String getEndTime() {
return endTime;
}
public void setEndTime(String endTime) {
this.endTime = endTime;
}
public MediaWaterMarkText getText() {
if (text == null) {
text = new MediaWaterMarkText();
}
return text;
}
public void setText(MediaWaterMarkText text) {
this.text = text;
}
public MediaWaterMarkImage getImage() {
if (image == null) {
image = new MediaWaterMarkImage();
}
return image;
}
public void setImage(MediaWaterMarkImage image) {
this.image = image;
}
public SlideConfig getSlideConfig() {
if (slideConfig == null) {
slideConfig = new SlideConfig();
}
return slideConfig;
}
public void setSlideConfig(SlideConfig slideConfig) {
this.slideConfig = slideConfig;
}
@Override
public String toString() {
return "MediaWatermark{" +
"type='" + type + '\'' +
", locMode='" + locMode + '\'' +
", dx='" + dx + '\'' +
", dy='" + dy + '\'' +
", pos='" + pos + '\'' +
", startTime='" + startTime + '\'' +
", endTime='" + endTime + '\'' +
", text=" + text +
", image=" + image +
'}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy