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

com.tencentcloudapi.mps.v20190612.models.ModifyWatermarkTemplateRequest 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 ModifyWatermarkTemplateRequest extends AbstractModel{

    /**
    * Unique ID of a watermarking template.
    */
    @SerializedName("Definition")
    @Expose
    private Long Definition;

    /**
    * Watermarking template name. Length limit: 64 characters.
    */
    @SerializedName("Name")
    @Expose
    private String Name;

    /**
    * Template description. Length limit: 256 characters.
    */
    @SerializedName("Comment")
    @Expose
    private String Comment;

    /**
    * Origin position. Valid values:
  • 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;
  • TopRight: The origin of coordinates is in the top-right corner of the video, and the origin of the watermark is in the top-right corner of the image or text;
  • BottomLeft: The origin of coordinates is in the bottom-left corner of the video, and the origin of the watermark is in the bottom-left corner of the image or text;
  • BottomRight: The origin of coordinates is in the bottom-right corner of the video, and the origin of the watermark is in the bottom-right corner of the image or text.
  • */ @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.
  • */ @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.
  • */ @SerializedName("YPos") @Expose private String YPos; /** * Image watermarking template. This field is valid only for image watermarking templates. */ @SerializedName("ImageTemplate") @Expose private ImageWatermarkInputForUpdate ImageTemplate; /** * Text watermarking template. This field is valid only for text watermarking templates. */ @SerializedName("TextTemplate") @Expose private TextWatermarkTemplateInputForUpdate TextTemplate; /** * SVG watermarking template. This field is required when `Type` is `svg` and is invalid when `Type` is `image` or `text`. */ @SerializedName("SvgTemplate") @Expose private SvgWatermarkInputForUpdate SvgTemplate; /** * Get Unique ID of a watermarking template. * @return Definition Unique ID of a watermarking template. */ public Long getDefinition() { return this.Definition; } /** * Set Unique ID of a watermarking template. * @param Definition Unique ID of a watermarking template. */ public void setDefinition(Long Definition) { this.Definition = Definition; } /** * Get Watermarking template name. Length limit: 64 characters. * @return Name Watermarking template name. Length limit: 64 characters. */ public String getName() { return this.Name; } /** * Set Watermarking template name. Length limit: 64 characters. * @param Name Watermarking template name. Length limit: 64 characters. */ public void setName(String Name) { this.Name = Name; } /** * Get Template description. Length limit: 256 characters. * @return Comment Template description. Length limit: 256 characters. */ public String getComment() { return this.Comment; } /** * Set Template description. Length limit: 256 characters. * @param Comment Template description. Length limit: 256 characters. */ public void setComment(String Comment) { this.Comment = Comment; } /** * Get Origin position. Valid values:
  • 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;
  • TopRight: The origin of coordinates is in the top-right corner of the video, and the origin of the watermark is in the top-right corner of the image or text;
  • BottomLeft: The origin of coordinates is in the bottom-left corner of the video, and the origin of the watermark is in the bottom-left corner of the image or text;
  • BottomRight: The origin of coordinates is in the bottom-right corner of the video, and the origin of the watermark is in the bottom-right corner of the image or text.
  • * @return CoordinateOrigin Origin position. Valid values:
  • 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;
  • TopRight: The origin of coordinates is in the top-right corner of the video, and the origin of the watermark is in the top-right corner of the image or text;
  • BottomLeft: The origin of coordinates is in the bottom-left corner of the video, and the origin of the watermark is in the bottom-left corner of the image or text;
  • BottomRight: The origin of coordinates is in the bottom-right corner of the video, and the origin of the watermark is in the bottom-right corner of the image or text.
  • */ public String getCoordinateOrigin() { return this.CoordinateOrigin; } /** * Set Origin position. Valid values:
  • 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;
  • TopRight: The origin of coordinates is in the top-right corner of the video, and the origin of the watermark is in the top-right corner of the image or text;
  • BottomLeft: The origin of coordinates is in the bottom-left corner of the video, and the origin of the watermark is in the bottom-left corner of the image or text;
  • BottomRight: The origin of coordinates is in the bottom-right corner of the video, and the origin of the watermark is in the bottom-right corner of the image or text.
  • * @param CoordinateOrigin Origin position. Valid values:
  • 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;
  • TopRight: The origin of coordinates is in the top-right corner of the video, and the origin of the watermark is in the top-right corner of the image or text;
  • BottomLeft: The origin of coordinates is in the bottom-left corner of the video, and the origin of the watermark is in the bottom-left corner of the image or text;
  • BottomRight: The origin of coordinates is in the bottom-right corner of the video, and the origin of the watermark is in the bottom-right corner of the image or text.
  • */ 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.
  • * @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.
  • */ 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.
  • * @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.
  • */ 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.
  • * @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.
  • */ 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.
  • * @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.
  • */ public void setYPos(String YPos) { this.YPos = YPos; } /** * Get Image watermarking template. This field is valid only for image watermarking templates. * @return ImageTemplate Image watermarking template. This field is valid only for image watermarking templates. */ public ImageWatermarkInputForUpdate getImageTemplate() { return this.ImageTemplate; } /** * Set Image watermarking template. This field is valid only for image watermarking templates. * @param ImageTemplate Image watermarking template. This field is valid only for image watermarking templates. */ public void setImageTemplate(ImageWatermarkInputForUpdate ImageTemplate) { this.ImageTemplate = ImageTemplate; } /** * Get Text watermarking template. This field is valid only for text watermarking templates. * @return TextTemplate Text watermarking template. This field is valid only for text watermarking templates. */ public TextWatermarkTemplateInputForUpdate getTextTemplate() { return this.TextTemplate; } /** * Set Text watermarking template. This field is valid only for text watermarking templates. * @param TextTemplate Text watermarking template. This field is valid only for text watermarking templates. */ public void setTextTemplate(TextWatermarkTemplateInputForUpdate TextTemplate) { this.TextTemplate = TextTemplate; } /** * Get SVG watermarking template. This field is required when `Type` is `svg` and is invalid when `Type` is `image` or `text`. * @return SvgTemplate SVG watermarking template. This field is required when `Type` is `svg` and is invalid when `Type` is `image` or `text`. */ public SvgWatermarkInputForUpdate getSvgTemplate() { return this.SvgTemplate; } /** * Set SVG watermarking template. This field is required when `Type` is `svg` and is invalid when `Type` is `image` or `text`. * @param SvgTemplate SVG watermarking template. This field is required when `Type` is `svg` and is invalid when `Type` is `image` or `text`. */ public void setSvgTemplate(SvgWatermarkInputForUpdate SvgTemplate) { this.SvgTemplate = SvgTemplate; } public ModifyWatermarkTemplateRequest() { } /** * 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 ModifyWatermarkTemplateRequest(ModifyWatermarkTemplateRequest source) { if (source.Definition != null) { this.Definition = new Long(source.Definition); } if (source.Name != null) { this.Name = new String(source.Name); } if (source.Comment != null) { this.Comment = new String(source.Comment); } 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 ImageWatermarkInputForUpdate(source.ImageTemplate); } if (source.TextTemplate != null) { this.TextTemplate = new TextWatermarkTemplateInputForUpdate(source.TextTemplate); } if (source.SvgTemplate != null) { this.SvgTemplate = new SvgWatermarkInputForUpdate(source.SvgTemplate); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "Definition", this.Definition); this.setParamSimple(map, prefix + "Name", this.Name); this.setParamSimple(map, prefix + "Comment", this.Comment); 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); this.setParamObj(map, prefix + "TextTemplate.", this.TextTemplate); this.setParamObj(map, prefix + "SvgTemplate.", this.SvgTemplate); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy