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

com.tencentcloudapi.vod.v20180717.models.TranscodeTaskInput Maven / Gradle / Ivy

There is a newer version: 3.1.1104
Show newest version
/*
 * 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.vod.v20180717.models;

import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class TranscodeTaskInput extends AbstractModel{

    /**
    * 视频转码模板 ID。
    */
    @SerializedName("Definition")
    @Expose
    private Long Definition;

    /**
    * 水印列表,支持多张图片或文字水印,最大可支持 10 张。
    */
    @SerializedName("WatermarkSet")
    @Expose
    private WatermarkInput [] WatermarkSet;

    /**
    * 溯源水印。
    */
    @SerializedName("TraceWatermark")
    @Expose
    private TraceWatermarkInput TraceWatermark;

    /**
    * 马赛克列表,最大可支持 10 张。
    */
    @SerializedName("MosaicSet")
    @Expose
    private MosaicInput [] MosaicSet;

    /**
    * 片头片尾列表,支持多片头片尾,最大可支持 10 个。
    */
    @SerializedName("HeadTailSet")
    @Expose
    private HeadTailTaskInput [] HeadTailSet;

    /**
    * 转码后的视频的起始时间偏移,单位:秒。
  • 不填或填0,表示转码后的视频从原始视频的起始位置开始;
  • 当数值大于0时(假设为 n),表示转码后的视频从原始视频的第 n 秒位置开始;
  • 当数值小于0时(假设为 -n),表示转码后的视频从原始视频结束 n 秒前的位置开始。
  • */ @SerializedName("StartTimeOffset") @Expose private Float StartTimeOffset; /** * 转码后视频的终止时间偏移,单位:秒。
  • 不填或填0,表示转码后的视频持续到原始视频的末尾终止;
  • 当数值大于0时(假设为 n),表示转码后的视频持续到原始视频第 n 秒时终止;
  • 当数值小于0时(假设为 -n),表示转码后的视频持续到原始视频结束 n 秒前终止。
  • */ @SerializedName("EndTimeOffset") @Expose private Float EndTimeOffset; /** * Get 视频转码模板 ID。 * @return Definition 视频转码模板 ID。 */ public Long getDefinition() { return this.Definition; } /** * Set 视频转码模板 ID。 * @param Definition 视频转码模板 ID。 */ public void setDefinition(Long Definition) { this.Definition = Definition; } /** * Get 水印列表,支持多张图片或文字水印,最大可支持 10 张。 * @return WatermarkSet 水印列表,支持多张图片或文字水印,最大可支持 10 张。 */ public WatermarkInput [] getWatermarkSet() { return this.WatermarkSet; } /** * Set 水印列表,支持多张图片或文字水印,最大可支持 10 张。 * @param WatermarkSet 水印列表,支持多张图片或文字水印,最大可支持 10 张。 */ public void setWatermarkSet(WatermarkInput [] WatermarkSet) { this.WatermarkSet = WatermarkSet; } /** * Get 溯源水印。 * @return TraceWatermark 溯源水印。 */ public TraceWatermarkInput getTraceWatermark() { return this.TraceWatermark; } /** * Set 溯源水印。 * @param TraceWatermark 溯源水印。 */ public void setTraceWatermark(TraceWatermarkInput TraceWatermark) { this.TraceWatermark = TraceWatermark; } /** * Get 马赛克列表,最大可支持 10 张。 * @return MosaicSet 马赛克列表,最大可支持 10 张。 */ public MosaicInput [] getMosaicSet() { return this.MosaicSet; } /** * Set 马赛克列表,最大可支持 10 张。 * @param MosaicSet 马赛克列表,最大可支持 10 张。 */ public void setMosaicSet(MosaicInput [] MosaicSet) { this.MosaicSet = MosaicSet; } /** * Get 片头片尾列表,支持多片头片尾,最大可支持 10 个。 * @return HeadTailSet 片头片尾列表,支持多片头片尾,最大可支持 10 个。 */ public HeadTailTaskInput [] getHeadTailSet() { return this.HeadTailSet; } /** * Set 片头片尾列表,支持多片头片尾,最大可支持 10 个。 * @param HeadTailSet 片头片尾列表,支持多片头片尾,最大可支持 10 个。 */ public void setHeadTailSet(HeadTailTaskInput [] HeadTailSet) { this.HeadTailSet = HeadTailSet; } /** * Get 转码后的视频的起始时间偏移,单位:秒。
  • 不填或填0,表示转码后的视频从原始视频的起始位置开始;
  • 当数值大于0时(假设为 n),表示转码后的视频从原始视频的第 n 秒位置开始;
  • 当数值小于0时(假设为 -n),表示转码后的视频从原始视频结束 n 秒前的位置开始。
  • * @return StartTimeOffset 转码后的视频的起始时间偏移,单位:秒。
  • 不填或填0,表示转码后的视频从原始视频的起始位置开始;
  • 当数值大于0时(假设为 n),表示转码后的视频从原始视频的第 n 秒位置开始;
  • 当数值小于0时(假设为 -n),表示转码后的视频从原始视频结束 n 秒前的位置开始。
  • */ public Float getStartTimeOffset() { return this.StartTimeOffset; } /** * Set 转码后的视频的起始时间偏移,单位:秒。
  • 不填或填0,表示转码后的视频从原始视频的起始位置开始;
  • 当数值大于0时(假设为 n),表示转码后的视频从原始视频的第 n 秒位置开始;
  • 当数值小于0时(假设为 -n),表示转码后的视频从原始视频结束 n 秒前的位置开始。
  • * @param StartTimeOffset 转码后的视频的起始时间偏移,单位:秒。
  • 不填或填0,表示转码后的视频从原始视频的起始位置开始;
  • 当数值大于0时(假设为 n),表示转码后的视频从原始视频的第 n 秒位置开始;
  • 当数值小于0时(假设为 -n),表示转码后的视频从原始视频结束 n 秒前的位置开始。
  • */ public void setStartTimeOffset(Float StartTimeOffset) { this.StartTimeOffset = StartTimeOffset; } /** * Get 转码后视频的终止时间偏移,单位:秒。
  • 不填或填0,表示转码后的视频持续到原始视频的末尾终止;
  • 当数值大于0时(假设为 n),表示转码后的视频持续到原始视频第 n 秒时终止;
  • 当数值小于0时(假设为 -n),表示转码后的视频持续到原始视频结束 n 秒前终止。
  • * @return EndTimeOffset 转码后视频的终止时间偏移,单位:秒。
  • 不填或填0,表示转码后的视频持续到原始视频的末尾终止;
  • 当数值大于0时(假设为 n),表示转码后的视频持续到原始视频第 n 秒时终止;
  • 当数值小于0时(假设为 -n),表示转码后的视频持续到原始视频结束 n 秒前终止。
  • */ public Float getEndTimeOffset() { return this.EndTimeOffset; } /** * Set 转码后视频的终止时间偏移,单位:秒。
  • 不填或填0,表示转码后的视频持续到原始视频的末尾终止;
  • 当数值大于0时(假设为 n),表示转码后的视频持续到原始视频第 n 秒时终止;
  • 当数值小于0时(假设为 -n),表示转码后的视频持续到原始视频结束 n 秒前终止。
  • * @param EndTimeOffset 转码后视频的终止时间偏移,单位:秒。
  • 不填或填0,表示转码后的视频持续到原始视频的末尾终止;
  • 当数值大于0时(假设为 n),表示转码后的视频持续到原始视频第 n 秒时终止;
  • 当数值小于0时(假设为 -n),表示转码后的视频持续到原始视频结束 n 秒前终止。
  • */ public void setEndTimeOffset(Float EndTimeOffset) { this.EndTimeOffset = EndTimeOffset; } public TranscodeTaskInput() { } /** * 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 TranscodeTaskInput(TranscodeTaskInput source) { if (source.Definition != null) { this.Definition = new Long(source.Definition); } if (source.WatermarkSet != null) { this.WatermarkSet = new WatermarkInput[source.WatermarkSet.length]; for (int i = 0; i < source.WatermarkSet.length; i++) { this.WatermarkSet[i] = new WatermarkInput(source.WatermarkSet[i]); } } if (source.TraceWatermark != null) { this.TraceWatermark = new TraceWatermarkInput(source.TraceWatermark); } if (source.MosaicSet != null) { this.MosaicSet = new MosaicInput[source.MosaicSet.length]; for (int i = 0; i < source.MosaicSet.length; i++) { this.MosaicSet[i] = new MosaicInput(source.MosaicSet[i]); } } if (source.HeadTailSet != null) { this.HeadTailSet = new HeadTailTaskInput[source.HeadTailSet.length]; for (int i = 0; i < source.HeadTailSet.length; i++) { this.HeadTailSet[i] = new HeadTailTaskInput(source.HeadTailSet[i]); } } if (source.StartTimeOffset != null) { this.StartTimeOffset = new Float(source.StartTimeOffset); } if (source.EndTimeOffset != null) { this.EndTimeOffset = new Float(source.EndTimeOffset); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "Definition", this.Definition); this.setParamArrayObj(map, prefix + "WatermarkSet.", this.WatermarkSet); this.setParamObj(map, prefix + "TraceWatermark.", this.TraceWatermark); this.setParamArrayObj(map, prefix + "MosaicSet.", this.MosaicSet); this.setParamArrayObj(map, prefix + "HeadTailSet.", this.HeadTailSet); this.setParamSimple(map, prefix + "StartTimeOffset", this.StartTimeOffset); this.setParamSimple(map, prefix + "EndTimeOffset", this.EndTimeOffset); } }




    © 2015 - 2024 Weber Informatics LLC | Privacy Policy