
com.tencentcloudapi.mps.v20190612.models.RawWatermarkParameter Maven / Gradle / Ivy
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.mps.v20190612.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class RawWatermarkParameter extends AbstractModel{
/**
* 水印类型,可选值:
image:图片水印。
*/
@SerializedName("Type")
@Expose
private String Type;
/**
* 原点位置,目前仅支持:
TopLeft:表示坐标原点位于视频图像左上角,水印原点为图片或文字的左上角。
默认值:TopLeft。
*/
@SerializedName("CoordinateOrigin")
@Expose
private String CoordinateOrigin;
/**
* 水印原点距离视频图像坐标原点的水平位置。支持 %、px 两种格式:
当字符串以 % 结尾,表示水印 XPos 为视频宽度指定百分比,如 10% 表示 XPos 为视频宽度的 10%;
当字符串以 px 结尾,表示水印 XPos 为指定像素,如 100px 表示 XPos 为 100 像素。
默认值:0px。
*/
@SerializedName("XPos")
@Expose
private String XPos;
/**
* 水印原点距离视频图像坐标原点的垂直位置。支持 %、px 两种格式:
当字符串以 % 结尾,表示水印 YPos 为视频高度指定百分比,如 10% 表示 YPos 为视频高度的 10%;
当字符串以 px 结尾,表示水印 YPos 为指定像素,如 100px 表示 YPos 为 100 像素。
默认值:0px。
*/
@SerializedName("YPos")
@Expose
private String YPos;
/**
* 图片水印模板,当 Type 为 image,该字段必填。当 Type 为 text,该字段无效。
*/
@SerializedName("ImageTemplate")
@Expose
private RawImageWatermarkInput ImageTemplate;
/**
* Get 水印类型,可选值:
image:图片水印。
* @return Type 水印类型,可选值:
image:图片水印。
*/
public String getType() {
return this.Type;
}
/**
* Set 水印类型,可选值:
image:图片水印。
* @param Type 水印类型,可选值:
image:图片水印。
*/
public void setType(String Type) {
this.Type = Type;
}
/**
* Get 原点位置,目前仅支持:
TopLeft:表示坐标原点位于视频图像左上角,水印原点为图片或文字的左上角。
默认值:TopLeft。
* @return CoordinateOrigin 原点位置,目前仅支持:
TopLeft:表示坐标原点位于视频图像左上角,水印原点为图片或文字的左上角。
默认值:TopLeft。
*/
public String getCoordinateOrigin() {
return this.CoordinateOrigin;
}
/**
* Set 原点位置,目前仅支持:
TopLeft:表示坐标原点位于视频图像左上角,水印原点为图片或文字的左上角。
默认值:TopLeft。
* @param CoordinateOrigin 原点位置,目前仅支持:
TopLeft:表示坐标原点位于视频图像左上角,水印原点为图片或文字的左上角。
默认值:TopLeft。
*/
public void setCoordinateOrigin(String CoordinateOrigin) {
this.CoordinateOrigin = CoordinateOrigin;
}
/**
* Get 水印原点距离视频图像坐标原点的水平位置。支持 %、px 两种格式:
当字符串以 % 结尾,表示水印 XPos 为视频宽度指定百分比,如 10% 表示 XPos 为视频宽度的 10%;
当字符串以 px 结尾,表示水印 XPos 为指定像素,如 100px 表示 XPos 为 100 像素。
默认值:0px。
* @return XPos 水印原点距离视频图像坐标原点的水平位置。支持 %、px 两种格式:
当字符串以 % 结尾,表示水印 XPos 为视频宽度指定百分比,如 10% 表示 XPos 为视频宽度的 10%;
当字符串以 px 结尾,表示水印 XPos 为指定像素,如 100px 表示 XPos 为 100 像素。
默认值:0px。
*/
public String getXPos() {
return this.XPos;
}
/**
* Set 水印原点距离视频图像坐标原点的水平位置。支持 %、px 两种格式:
当字符串以 % 结尾,表示水印 XPos 为视频宽度指定百分比,如 10% 表示 XPos 为视频宽度的 10%;
当字符串以 px 结尾,表示水印 XPos 为指定像素,如 100px 表示 XPos 为 100 像素。
默认值:0px。
* @param XPos 水印原点距离视频图像坐标原点的水平位置。支持 %、px 两种格式:
当字符串以 % 结尾,表示水印 XPos 为视频宽度指定百分比,如 10% 表示 XPos 为视频宽度的 10%;
当字符串以 px 结尾,表示水印 XPos 为指定像素,如 100px 表示 XPos 为 100 像素。
默认值:0px。
*/
public void setXPos(String XPos) {
this.XPos = XPos;
}
/**
* Get 水印原点距离视频图像坐标原点的垂直位置。支持 %、px 两种格式:
当字符串以 % 结尾,表示水印 YPos 为视频高度指定百分比,如 10% 表示 YPos 为视频高度的 10%;
当字符串以 px 结尾,表示水印 YPos 为指定像素,如 100px 表示 YPos 为 100 像素。
默认值:0px。
* @return YPos 水印原点距离视频图像坐标原点的垂直位置。支持 %、px 两种格式:
当字符串以 % 结尾,表示水印 YPos 为视频高度指定百分比,如 10% 表示 YPos 为视频高度的 10%;
当字符串以 px 结尾,表示水印 YPos 为指定像素,如 100px 表示 YPos 为 100 像素。
默认值:0px。
*/
public String getYPos() {
return this.YPos;
}
/**
* Set 水印原点距离视频图像坐标原点的垂直位置。支持 %、px 两种格式:
当字符串以 % 结尾,表示水印 YPos 为视频高度指定百分比,如 10% 表示 YPos 为视频高度的 10%;
当字符串以 px 结尾,表示水印 YPos 为指定像素,如 100px 表示 YPos 为 100 像素。
默认值:0px。
* @param YPos 水印原点距离视频图像坐标原点的垂直位置。支持 %、px 两种格式:
当字符串以 % 结尾,表示水印 YPos 为视频高度指定百分比,如 10% 表示 YPos 为视频高度的 10%;
当字符串以 px 结尾,表示水印 YPos 为指定像素,如 100px 表示 YPos 为 100 像素。
默认值:0px。
*/
public void setYPos(String YPos) {
this.YPos = YPos;
}
/**
* Get 图片水印模板,当 Type 为 image,该字段必填。当 Type 为 text,该字段无效。
* @return ImageTemplate 图片水印模板,当 Type 为 image,该字段必填。当 Type 为 text,该字段无效。
*/
public RawImageWatermarkInput getImageTemplate() {
return this.ImageTemplate;
}
/**
* Set 图片水印模板,当 Type 为 image,该字段必填。当 Type 为 text,该字段无效。
* @param ImageTemplate 图片水印模板,当 Type 为 image,该字段必填。当 Type 为 text,该字段无效。
*/
public void setImageTemplate(RawImageWatermarkInput ImageTemplate) {
this.ImageTemplate = ImageTemplate;
}
public RawWatermarkParameter() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public RawWatermarkParameter(RawWatermarkParameter source) {
if (source.Type != null) {
this.Type = new String(source.Type);
}
if (source.CoordinateOrigin != null) {
this.CoordinateOrigin = new String(source.CoordinateOrigin);
}
if (source.XPos != null) {
this.XPos = new String(source.XPos);
}
if (source.YPos != null) {
this.YPos = new String(source.YPos);
}
if (source.ImageTemplate != null) {
this.ImageTemplate = new RawImageWatermarkInput(source.ImageTemplate);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Type", this.Type);
this.setParamSimple(map, prefix + "CoordinateOrigin", this.CoordinateOrigin);
this.setParamSimple(map, prefix + "XPos", this.XPos);
this.setParamSimple(map, prefix + "YPos", this.YPos);
this.setParamObj(map, prefix + "ImageTemplate.", this.ImageTemplate);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy