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{
/**
* Watermark type. Valid values:
image: image watermark.
*/
@SerializedName("Type")
@Expose
private String Type;
/**
* Origin position, which currently can only be:
TopLeft: the origin of coordinates is in the top-left corner of the video, and the origin of the watermark is in the top-left corner of the image or text.
Default value: TopLeft.
*/
@SerializedName("CoordinateOrigin")
@Expose
private String CoordinateOrigin;
/**
* The horizontal position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported:
If the string ends in %, the `XPos` of the watermark will be the specified percentage of the video width; for example, `10%` means that `XPos` is 10% of the video width;
If the string ends in px, the `XPos` of the watermark will be the specified px; for example, `100px` means that `XPos` is 100 px.
Default value: 0 px.
*/
@SerializedName("XPos")
@Expose
private String XPos;
/**
* The vertical position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported:
If the string ends in %, the `YPos` of the watermark will be the specified percentage of the video height; for example, `10%` means that `YPos` is 10% of the video height;
If the string ends in px, the `YPos` of the watermark will be the specified px; for example, `100px` means that `YPos` is 100 px.
Default value: 0 px.
*/
@SerializedName("YPos")
@Expose
private String YPos;
/**
* Image watermark template. This field is required when `Type` is `image` and is invalid when `Type` is `text`.
*/
@SerializedName("ImageTemplate")
@Expose
private RawImageWatermarkInput ImageTemplate;
/**
* Get Watermark type. Valid values:
image: image watermark.
* @return Type Watermark type. Valid values:
image: image watermark.
*/
public String getType() {
return this.Type;
}
/**
* Set Watermark type. Valid values:
image: image watermark.
* @param Type Watermark type. Valid values:
image: image watermark.
*/
public void setType(String Type) {
this.Type = Type;
}
/**
* Get Origin position, which currently can only be:
TopLeft: the origin of coordinates is in the top-left corner of the video, and the origin of the watermark is in the top-left corner of the image or text.
Default value: TopLeft.
* @return CoordinateOrigin Origin position, which currently can only be:
TopLeft: the origin of coordinates is in the top-left corner of the video, and the origin of the watermark is in the top-left corner of the image or text.
Default value: TopLeft.
*/
public String getCoordinateOrigin() {
return this.CoordinateOrigin;
}
/**
* Set Origin position, which currently can only be:
TopLeft: the origin of coordinates is in the top-left corner of the video, and the origin of the watermark is in the top-left corner of the image or text.
Default value: TopLeft.
* @param CoordinateOrigin Origin position, which currently can only be:
TopLeft: the origin of coordinates is in the top-left corner of the video, and the origin of the watermark is in the top-left corner of the image or text.
Default value: TopLeft.
*/
public void setCoordinateOrigin(String CoordinateOrigin) {
this.CoordinateOrigin = CoordinateOrigin;
}
/**
* Get The horizontal position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported:
If the string ends in %, the `XPos` of the watermark will be the specified percentage of the video width; for example, `10%` means that `XPos` is 10% of the video width;
If the string ends in px, the `XPos` of the watermark will be the specified px; for example, `100px` means that `XPos` is 100 px.
Default value: 0 px.
* @return XPos The horizontal position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported:
If the string ends in %, the `XPos` of the watermark will be the specified percentage of the video width; for example, `10%` means that `XPos` is 10% of the video width;
If the string ends in px, the `XPos` of the watermark will be the specified px; for example, `100px` means that `XPos` is 100 px.
Default value: 0 px.
*/
public String getXPos() {
return this.XPos;
}
/**
* Set The horizontal position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported:
If the string ends in %, the `XPos` of the watermark will be the specified percentage of the video width; for example, `10%` means that `XPos` is 10% of the video width;
If the string ends in px, the `XPos` of the watermark will be the specified px; for example, `100px` means that `XPos` is 100 px.
Default value: 0 px.
* @param XPos The horizontal position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported:
If the string ends in %, the `XPos` of the watermark will be the specified percentage of the video width; for example, `10%` means that `XPos` is 10% of the video width;
If the string ends in px, the `XPos` of the watermark will be the specified px; for example, `100px` means that `XPos` is 100 px.
Default value: 0 px.
*/
public void setXPos(String XPos) {
this.XPos = XPos;
}
/**
* Get The vertical position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported:
If the string ends in %, the `YPos` of the watermark will be the specified percentage of the video height; for example, `10%` means that `YPos` is 10% of the video height;
If the string ends in px, the `YPos` of the watermark will be the specified px; for example, `100px` means that `YPos` is 100 px.
Default value: 0 px.
* @return YPos The vertical position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported:
If the string ends in %, the `YPos` of the watermark will be the specified percentage of the video height; for example, `10%` means that `YPos` is 10% of the video height;
If the string ends in px, the `YPos` of the watermark will be the specified px; for example, `100px` means that `YPos` is 100 px.
Default value: 0 px.
*/
public String getYPos() {
return this.YPos;
}
/**
* Set The vertical position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported:
If the string ends in %, the `YPos` of the watermark will be the specified percentage of the video height; for example, `10%` means that `YPos` is 10% of the video height;
If the string ends in px, the `YPos` of the watermark will be the specified px; for example, `100px` means that `YPos` is 100 px.
Default value: 0 px.
* @param YPos The vertical position of the origin of the watermark relative to the origin of coordinates of the video. % and px formats are supported:
If the string ends in %, the `YPos` of the watermark will be the specified percentage of the video height; for example, `10%` means that `YPos` is 10% of the video height;
If the string ends in px, the `YPos` of the watermark will be the specified px; for example, `100px` means that `YPos` is 100 px.
Default value: 0 px.
*/
public void setYPos(String YPos) {
this.YPos = YPos;
}
/**
* Get Image watermark template. This field is required when `Type` is `image` and is invalid when `Type` is `text`.
* @return ImageTemplate Image watermark template. This field is required when `Type` is `image` and is invalid when `Type` is `text`.
*/
public RawImageWatermarkInput getImageTemplate() {
return this.ImageTemplate;
}
/**
* Set Image watermark template. This field is required when `Type` is `image` and is invalid when `Type` is `text`.
* @param ImageTemplate Image watermark template. This field is required when `Type` is `image` and is invalid when `Type` is `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