public class WatermarkTemplate extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| WatermarkTemplate() | 
| WatermarkTemplate(WatermarkTemplate source)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. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getComment()Get Template description. | 
| String | getCoordinateOrigin()Get Origin position. | 
| String | getCreateTime()Get Creation time of a template in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F). | 
| Long | getDefinition()Get Unique ID of a watermarking template. | 
| ImageWatermarkTemplate | getImageTemplate()Get Image watermarking template. | 
| String | getName()Get Name of a watermarking template. | 
| SvgWatermarkInput | getSvgTemplate()Get SVG watermarking template. | 
| TextWatermarkTemplateInput | getTextTemplate()Get Text watermarking template. | 
| String | getType()Get Watermark type. | 
| String | getUpdateTime()Get Last modified time of a template in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F). | 
| String | getXPos()Get Horizontal position of the origin of the watermark image relative to the origin of the video. | 
| String | getYPos()Get Vertical position of the origin of the watermark image relative to the origin of the video. | 
| void | setComment(String Comment)Set Template description. | 
| void | setCoordinateOrigin(String CoordinateOrigin)Set Origin position. | 
| void | setCreateTime(String CreateTime)Set Creation time of a template in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F). | 
| void | setDefinition(Long Definition)Set Unique ID of a watermarking template. | 
| void | setImageTemplate(ImageWatermarkTemplate ImageTemplate)Set Image watermarking template. | 
| void | setName(String Name)Set Name of a watermarking template. | 
| void | setSvgTemplate(SvgWatermarkInput SvgTemplate)Set SVG watermarking template. | 
| void | setTextTemplate(TextWatermarkTemplateInput TextTemplate)Set Text watermarking template. | 
| void | setType(String Type)Set Watermark type. | 
| void | setUpdateTime(String UpdateTime)Set Last modified time of a template in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F). | 
| void | setXPos(String XPos)Set Horizontal position of the origin of the watermark image relative to the origin of the video. | 
| void | setYPos(String YPos)Set Vertical position of the origin of the watermark image relative to the origin of the video. | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic WatermarkTemplate()
public WatermarkTemplate(WatermarkTemplate source)
public Long getDefinition()
public void setDefinition(Long Definition)
Definition - Unique ID of a watermarking template.public String getType()
public void setType(String Type)
Type - Watermark type. Valid values:
public String getName()
public void setName(String Name)
Name - Name of a watermarking template.public String getComment()
public void setComment(String Comment)
Comment - Template description.public String getXPos()
public void setXPos(String XPos)
XPos - Horizontal position of the origin of the watermark image relative to the origin of the video.
public String getYPos()
public void setYPos(String YPos)
YPos - Vertical position of the origin of the watermark image relative to the origin of the video.
public ImageWatermarkTemplate getImageTemplate()
public void setImageTemplate(ImageWatermarkTemplate ImageTemplate)
ImageTemplate - Image watermarking template. This field is valid only when `Type` is `image`.
Note: This field may return null, indicating that no valid values can be obtained.public TextWatermarkTemplateInput getTextTemplate()
public void setTextTemplate(TextWatermarkTemplateInput TextTemplate)
TextTemplate - Text watermarking template. This field is valid only when `Type` is `text`.
Note: This field may return null, indicating that no valid values can be obtained.public SvgWatermarkInput getSvgTemplate()
public void setSvgTemplate(SvgWatermarkInput SvgTemplate)
SvgTemplate - SVG watermarking template. This field is valid when `Type` is `svg`.
Note: This field may return null, indicating that no valid values can be obtained.public String getCreateTime()
public void setCreateTime(String CreateTime)
CreateTime - Creation time of a template in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F).public String getUpdateTime()
public void setUpdateTime(String UpdateTime)
UpdateTime - Last modified time of a template in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F).public String getCoordinateOrigin()
public void setCoordinateOrigin(String CoordinateOrigin)
CoordinateOrigin - Origin position. Valid values:
Copyright © 2025. All rights reserved.