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

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

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

    /**
    * 视频转码自定义参数,当 Definition 填 0 时有效。
该参数用于高度定制场景,建议您优先使用 Definition 指定转码参数。
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("RawParameter")
    @Expose
    private RawTranscodeParameter RawParameter;

    /**
    * 水印列表,支持多张图片或文字水印,最大可支持 10 张。
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("WatermarkSet")
    @Expose
    private WatermarkInput [] WatermarkSet;

    /**
    * 转码后文件的目标存储,不填则继承上层的 OutputStorage 值。
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("OutputStorage")
    @Expose
    private TaskOutputStorage OutputStorage;

    /**
    * 转码后主文件的输出路径,可以为相对路径或者绝对路径。如果不填,则默认为相对路径:`{inputName}_transcode_{definition}.{format}`。
    */
    @SerializedName("OutputObjectPath")
    @Expose
    private String OutputObjectPath;

    /**
    * 转码后分片文件的输出路径(转码 HLS 时 ts 的路径),只能为相对路径。如果不填,则默认为:`{inputName}_transcode_{definition}_{number}.{format}`。
    */
    @SerializedName("SegmentObjectName")
    @Expose
    private String SegmentObjectName;

    /**
    * 转码后输出路径中的`{number}`变量的规则。
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("ObjectNumberFormat")
    @Expose
    private NumberFormat ObjectNumberFormat;

    /**
     * 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 视频转码自定义参数,当 Definition 填 0 时有效。
该参数用于高度定制场景,建议您优先使用 Definition 指定转码参数。
注意:此字段可能返回 null,表示取不到有效值。 
     * @return RawParameter 视频转码自定义参数,当 Definition 填 0 时有效。
该参数用于高度定制场景,建议您优先使用 Definition 指定转码参数。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public RawTranscodeParameter getRawParameter() {
        return this.RawParameter;
    }

    /**
     * Set 视频转码自定义参数,当 Definition 填 0 时有效。
该参数用于高度定制场景,建议您优先使用 Definition 指定转码参数。
注意:此字段可能返回 null,表示取不到有效值。
     * @param RawParameter 视频转码自定义参数,当 Definition 填 0 时有效。
该参数用于高度定制场景,建议您优先使用 Definition 指定转码参数。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setRawParameter(RawTranscodeParameter RawParameter) {
        this.RawParameter = RawParameter;
    }

    /**
     * Get 水印列表,支持多张图片或文字水印,最大可支持 10 张。
注意:此字段可能返回 null,表示取不到有效值。 
     * @return WatermarkSet 水印列表,支持多张图片或文字水印,最大可支持 10 张。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public WatermarkInput [] getWatermarkSet() {
        return this.WatermarkSet;
    }

    /**
     * Set 水印列表,支持多张图片或文字水印,最大可支持 10 张。
注意:此字段可能返回 null,表示取不到有效值。
     * @param WatermarkSet 水印列表,支持多张图片或文字水印,最大可支持 10 张。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setWatermarkSet(WatermarkInput [] WatermarkSet) {
        this.WatermarkSet = WatermarkSet;
    }

    /**
     * Get 转码后文件的目标存储,不填则继承上层的 OutputStorage 值。
注意:此字段可能返回 null,表示取不到有效值。 
     * @return OutputStorage 转码后文件的目标存储,不填则继承上层的 OutputStorage 值。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public TaskOutputStorage getOutputStorage() {
        return this.OutputStorage;
    }

    /**
     * Set 转码后文件的目标存储,不填则继承上层的 OutputStorage 值。
注意:此字段可能返回 null,表示取不到有效值。
     * @param OutputStorage 转码后文件的目标存储,不填则继承上层的 OutputStorage 值。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setOutputStorage(TaskOutputStorage OutputStorage) {
        this.OutputStorage = OutputStorage;
    }

    /**
     * Get 转码后主文件的输出路径,可以为相对路径或者绝对路径。如果不填,则默认为相对路径:`{inputName}_transcode_{definition}.{format}`。 
     * @return OutputObjectPath 转码后主文件的输出路径,可以为相对路径或者绝对路径。如果不填,则默认为相对路径:`{inputName}_transcode_{definition}.{format}`。
     */
    public String getOutputObjectPath() {
        return this.OutputObjectPath;
    }

    /**
     * Set 转码后主文件的输出路径,可以为相对路径或者绝对路径。如果不填,则默认为相对路径:`{inputName}_transcode_{definition}.{format}`。
     * @param OutputObjectPath 转码后主文件的输出路径,可以为相对路径或者绝对路径。如果不填,则默认为相对路径:`{inputName}_transcode_{definition}.{format}`。
     */
    public void setOutputObjectPath(String OutputObjectPath) {
        this.OutputObjectPath = OutputObjectPath;
    }

    /**
     * Get 转码后分片文件的输出路径(转码 HLS 时 ts 的路径),只能为相对路径。如果不填,则默认为:`{inputName}_transcode_{definition}_{number}.{format}`。 
     * @return SegmentObjectName 转码后分片文件的输出路径(转码 HLS 时 ts 的路径),只能为相对路径。如果不填,则默认为:`{inputName}_transcode_{definition}_{number}.{format}`。
     */
    public String getSegmentObjectName() {
        return this.SegmentObjectName;
    }

    /**
     * Set 转码后分片文件的输出路径(转码 HLS 时 ts 的路径),只能为相对路径。如果不填,则默认为:`{inputName}_transcode_{definition}_{number}.{format}`。
     * @param SegmentObjectName 转码后分片文件的输出路径(转码 HLS 时 ts 的路径),只能为相对路径。如果不填,则默认为:`{inputName}_transcode_{definition}_{number}.{format}`。
     */
    public void setSegmentObjectName(String SegmentObjectName) {
        this.SegmentObjectName = SegmentObjectName;
    }

    /**
     * Get 转码后输出路径中的`{number}`变量的规则。
注意:此字段可能返回 null,表示取不到有效值。 
     * @return ObjectNumberFormat 转码后输出路径中的`{number}`变量的规则。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public NumberFormat getObjectNumberFormat() {
        return this.ObjectNumberFormat;
    }

    /**
     * Set 转码后输出路径中的`{number}`变量的规则。
注意:此字段可能返回 null,表示取不到有效值。
     * @param ObjectNumberFormat 转码后输出路径中的`{number}`变量的规则。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setObjectNumberFormat(NumberFormat ObjectNumberFormat) {
        this.ObjectNumberFormat = ObjectNumberFormat;
    }

    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "Definition", this.Definition);
        this.setParamObj(map, prefix + "RawParameter.", this.RawParameter);
        this.setParamArrayObj(map, prefix + "WatermarkSet.", this.WatermarkSet);
        this.setParamObj(map, prefix + "OutputStorage.", this.OutputStorage);
        this.setParamSimple(map, prefix + "OutputObjectPath", this.OutputObjectPath);
        this.setParamSimple(map, prefix + "SegmentObjectName", this.SegmentObjectName);
        this.setParamObj(map, prefix + "ObjectNumberFormat.", this.ObjectNumberFormat);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy