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.0.1034
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.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class TranscodeTaskInput extends AbstractModel {

    /**
    * Video transcoding template ID.
    */
    @SerializedName("Definition")
    @Expose
    private Long Definition;

    /**
    * List of up to 10 image or text watermarks.
Note: this field may return null, indicating that no valid values can be obtained.
    */
    @SerializedName("WatermarkSet")
    @Expose
    private WatermarkInput [] WatermarkSet;

    /**
    * Digital watermark.
    */
    @SerializedName("TraceWatermark")
    @Expose
    private TraceWatermarkInput TraceWatermark;

    /**
    * Copyright watermark.
    */
    @SerializedName("CopyRightWatermark")
    @Expose
    private CopyRightWatermarkInput CopyRightWatermark;

    /**
    * List of blurs. Up to 10 ones can be supported.
    */
    @SerializedName("MosaicSet")
    @Expose
    private MosaicInput [] MosaicSet;

    /**
    * List of video opening/closing credits configuration template IDs. You can enter up to 10 IDs.
    */
    @SerializedName("HeadTailSet")
    @Expose
    private HeadTailTaskInput [] HeadTailSet;

    /**
    * Start time offset of a transcoded video, in seconds.
  • If this parameter is left empty or set to 0, the transcoded video will start at the same time as the original video.
  • If this parameter is set to a positive number (n for example), the transcoded video will start at the nth second of the original video.
  • If this parameter is set to a negative number (-n for example), the transcoded video will start at the nth second before the end of the original video.
  • */ @SerializedName("StartTimeOffset") @Expose private Float StartTimeOffset; /** * End time offset of a transcoded video, in seconds.
  • If this parameter is left empty or set to 0, the transcoded video will end at the same time as the original video.
  • If this parameter is set to a positive number (n for example), the transcoded video will end at the nth second of the original video.
  • If this parameter is set to a negative number (-n for example), the transcoded video will end at the nth second before the end of the original video.
  • */ @SerializedName("EndTimeOffset") @Expose private Float EndTimeOffset; /** * Get Video transcoding template ID. * @return Definition Video transcoding template ID. */ public Long getDefinition() { return this.Definition; } /** * Set Video transcoding template ID. * @param Definition Video transcoding template ID. */ public void setDefinition(Long Definition) { this.Definition = Definition; } /** * Get List of up to 10 image or text watermarks. Note: this field may return null, indicating that no valid values can be obtained. * @return WatermarkSet List of up to 10 image or text watermarks. Note: this field may return null, indicating that no valid values can be obtained. */ public WatermarkInput [] getWatermarkSet() { return this.WatermarkSet; } /** * Set List of up to 10 image or text watermarks. Note: this field may return null, indicating that no valid values can be obtained. * @param WatermarkSet List of up to 10 image or text watermarks. Note: this field may return null, indicating that no valid values can be obtained. */ public void setWatermarkSet(WatermarkInput [] WatermarkSet) { this.WatermarkSet = WatermarkSet; } /** * Get Digital watermark. * @return TraceWatermark Digital watermark. */ public TraceWatermarkInput getTraceWatermark() { return this.TraceWatermark; } /** * Set Digital watermark. * @param TraceWatermark Digital watermark. */ public void setTraceWatermark(TraceWatermarkInput TraceWatermark) { this.TraceWatermark = TraceWatermark; } /** * Get Copyright watermark. * @return CopyRightWatermark Copyright watermark. */ public CopyRightWatermarkInput getCopyRightWatermark() { return this.CopyRightWatermark; } /** * Set Copyright watermark. * @param CopyRightWatermark Copyright watermark. */ public void setCopyRightWatermark(CopyRightWatermarkInput CopyRightWatermark) { this.CopyRightWatermark = CopyRightWatermark; } /** * Get List of blurs. Up to 10 ones can be supported. * @return MosaicSet List of blurs. Up to 10 ones can be supported. */ public MosaicInput [] getMosaicSet() { return this.MosaicSet; } /** * Set List of blurs. Up to 10 ones can be supported. * @param MosaicSet List of blurs. Up to 10 ones can be supported. */ public void setMosaicSet(MosaicInput [] MosaicSet) { this.MosaicSet = MosaicSet; } /** * Get List of video opening/closing credits configuration template IDs. You can enter up to 10 IDs. * @return HeadTailSet List of video opening/closing credits configuration template IDs. You can enter up to 10 IDs. */ public HeadTailTaskInput [] getHeadTailSet() { return this.HeadTailSet; } /** * Set List of video opening/closing credits configuration template IDs. You can enter up to 10 IDs. * @param HeadTailSet List of video opening/closing credits configuration template IDs. You can enter up to 10 IDs. */ public void setHeadTailSet(HeadTailTaskInput [] HeadTailSet) { this.HeadTailSet = HeadTailSet; } /** * Get Start time offset of a transcoded video, in seconds.
  • If this parameter is left empty or set to 0, the transcoded video will start at the same time as the original video.
  • If this parameter is set to a positive number (n for example), the transcoded video will start at the nth second of the original video.
  • If this parameter is set to a negative number (-n for example), the transcoded video will start at the nth second before the end of the original video.
  • * @return StartTimeOffset Start time offset of a transcoded video, in seconds.
  • If this parameter is left empty or set to 0, the transcoded video will start at the same time as the original video.
  • If this parameter is set to a positive number (n for example), the transcoded video will start at the nth second of the original video.
  • If this parameter is set to a negative number (-n for example), the transcoded video will start at the nth second before the end of the original video.
  • */ public Float getStartTimeOffset() { return this.StartTimeOffset; } /** * Set Start time offset of a transcoded video, in seconds.
  • If this parameter is left empty or set to 0, the transcoded video will start at the same time as the original video.
  • If this parameter is set to a positive number (n for example), the transcoded video will start at the nth second of the original video.
  • If this parameter is set to a negative number (-n for example), the transcoded video will start at the nth second before the end of the original video.
  • * @param StartTimeOffset Start time offset of a transcoded video, in seconds.
  • If this parameter is left empty or set to 0, the transcoded video will start at the same time as the original video.
  • If this parameter is set to a positive number (n for example), the transcoded video will start at the nth second of the original video.
  • If this parameter is set to a negative number (-n for example), the transcoded video will start at the nth second before the end of the original video.
  • */ public void setStartTimeOffset(Float StartTimeOffset) { this.StartTimeOffset = StartTimeOffset; } /** * Get End time offset of a transcoded video, in seconds.
  • If this parameter is left empty or set to 0, the transcoded video will end at the same time as the original video.
  • If this parameter is set to a positive number (n for example), the transcoded video will end at the nth second of the original video.
  • If this parameter is set to a negative number (-n for example), the transcoded video will end at the nth second before the end of the original video.
  • * @return EndTimeOffset End time offset of a transcoded video, in seconds.
  • If this parameter is left empty or set to 0, the transcoded video will end at the same time as the original video.
  • If this parameter is set to a positive number (n for example), the transcoded video will end at the nth second of the original video.
  • If this parameter is set to a negative number (-n for example), the transcoded video will end at the nth second before the end of the original video.
  • */ public Float getEndTimeOffset() { return this.EndTimeOffset; } /** * Set End time offset of a transcoded video, in seconds.
  • If this parameter is left empty or set to 0, the transcoded video will end at the same time as the original video.
  • If this parameter is set to a positive number (n for example), the transcoded video will end at the nth second of the original video.
  • If this parameter is set to a negative number (-n for example), the transcoded video will end at the nth second before the end of the original video.
  • * @param EndTimeOffset End time offset of a transcoded video, in seconds.
  • If this parameter is left empty or set to 0, the transcoded video will end at the same time as the original video.
  • If this parameter is set to a positive number (n for example), the transcoded video will end at the nth second of the original video.
  • If this parameter is set to a negative number (-n for example), the transcoded video will end at the nth second before the end of the original video.
  • */ 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.CopyRightWatermark != null) { this.CopyRightWatermark = new CopyRightWatermarkInput(source.CopyRightWatermark); } 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.setParamObj(map, prefix + "CopyRightWatermark.", this.CopyRightWatermark); 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