/*
* Copyright (c) 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.
*/
namespace TencentCloud.Vod.V20180717.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class WatermarkInput : AbstractModel
{
///
/// 水印模板 ID。
///
[JsonProperty("Definition")]
public ulong? Definition{ get; set; }
///
/// 文字内容,长度不超过100个字符。仅当水印类型为文字水印时填写。
///
[JsonProperty("TextContent")]
public string TextContent{ get; set; }
///
/// SVG 内容。长度不超过 2000000 个字符。仅当水印类型为 SVG 水印时填写。
///
[JsonProperty("SvgContent")]
public string SvgContent{ get; set; }
///
/// 水印的起始时间偏移,单位:秒。不填或填0,表示水印从画面出现时开始显现。
/// 不填或填0,表示水印从画面开始就出现;
/// 当数值大于0时(假设为 n),表示水印从画面开始的第 n 秒出现;
/// 当数值小于0时(假设为 -n),表示水印从离画面结束 n 秒前开始出现。
///
[JsonProperty("StartTimeOffset")]
public float? StartTimeOffset{ get; set; }
///
/// 水印的结束时间偏移,单位:秒。
/// 不填或填0,表示水印持续到画面结束;
/// 当数值大于0时(假设为 n),表示水印持续到第 n 秒时消失;
/// 当数值小于0时(假设为 -n),表示水印持续到离画面结束 n 秒前消失。
///
[JsonProperty("EndTimeOffset")]
public float? EndTimeOffset{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary map, string prefix)
{
this.SetParamSimple(map, prefix + "Definition", this.Definition);
this.SetParamSimple(map, prefix + "TextContent", this.TextContent);
this.SetParamSimple(map, prefix + "SvgContent", this.SvgContent);
this.SetParamSimple(map, prefix + "StartTimeOffset", this.StartTimeOffset);
this.SetParamSimple(map, prefix + "EndTimeOffset", this.EndTimeOffset);
}
}
}