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

com.tencentcloudapi.vod.v20180717.models.CreateTranscodeTemplateRequest 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.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 CreateTranscodeTemplateRequest extends AbstractModel{

    /**
    * Container. Valid values: mp4; flv; hls; mp3; flac; ogg; m4a. Among them, mp3, flac, ogg, and m4a are for audio files.
    */
    @SerializedName("Container")
    @Expose
    private String Container;

    /**
    * The VOD [subapplication](https://intl.cloud.tencent.com/document/product/266/14574?from_cn_redirect=1) ID. If you need to access a resource in a subapplication, set this parameter to the subapplication ID; otherwise, leave it empty.
    */
    @SerializedName("SubAppId")
    @Expose
    private Long SubAppId;

    /**
    * Transcoding template name. Length limit: 64 characters.
    */
    @SerializedName("Name")
    @Expose
    private String Name;

    /**
    * Template description. Length limit: 256 characters.
    */
    @SerializedName("Comment")
    @Expose
    private String Comment;

    /**
    * Whether to remove video data. Valid values:
  • 0: retain
  • 1: remove
  • Default value: 0. */ @SerializedName("RemoveVideo") @Expose private Long RemoveVideo; /** * Whether to remove audio data. Valid values:
  • 0: retain
  • 1: remove
  • Default value: 0. */ @SerializedName("RemoveAudio") @Expose private Long RemoveAudio; /** * Video stream configuration parameter. This field is required when `RemoveVideo` is 0. */ @SerializedName("VideoTemplate") @Expose private VideoTemplateInfo VideoTemplate; /** * Audio stream configuration parameter. This field is required when `RemoveAudio` is 0. */ @SerializedName("AudioTemplate") @Expose private AudioTemplateInfo AudioTemplate; /** * TESHD transcoding parameter. */ @SerializedName("TEHDConfig") @Expose private TEHDConfig TEHDConfig; /** * The segment type. This parameter is valid only if `Container` is `hls`. Valid values:
  • ts: TS segment
  • fmp4: fMP4 segment
  • Default: ts */ @SerializedName("SegmentType") @Expose private String SegmentType; /** * Get Container. Valid values: mp4; flv; hls; mp3; flac; ogg; m4a. Among them, mp3, flac, ogg, and m4a are for audio files. * @return Container Container. Valid values: mp4; flv; hls; mp3; flac; ogg; m4a. Among them, mp3, flac, ogg, and m4a are for audio files. */ public String getContainer() { return this.Container; } /** * Set Container. Valid values: mp4; flv; hls; mp3; flac; ogg; m4a. Among them, mp3, flac, ogg, and m4a are for audio files. * @param Container Container. Valid values: mp4; flv; hls; mp3; flac; ogg; m4a. Among them, mp3, flac, ogg, and m4a are for audio files. */ public void setContainer(String Container) { this.Container = Container; } /** * Get The VOD [subapplication](https://intl.cloud.tencent.com/document/product/266/14574?from_cn_redirect=1) ID. If you need to access a resource in a subapplication, set this parameter to the subapplication ID; otherwise, leave it empty. * @return SubAppId The VOD [subapplication](https://intl.cloud.tencent.com/document/product/266/14574?from_cn_redirect=1) ID. If you need to access a resource in a subapplication, set this parameter to the subapplication ID; otherwise, leave it empty. */ public Long getSubAppId() { return this.SubAppId; } /** * Set The VOD [subapplication](https://intl.cloud.tencent.com/document/product/266/14574?from_cn_redirect=1) ID. If you need to access a resource in a subapplication, set this parameter to the subapplication ID; otherwise, leave it empty. * @param SubAppId The VOD [subapplication](https://intl.cloud.tencent.com/document/product/266/14574?from_cn_redirect=1) ID. If you need to access a resource in a subapplication, set this parameter to the subapplication ID; otherwise, leave it empty. */ public void setSubAppId(Long SubAppId) { this.SubAppId = SubAppId; } /** * Get Transcoding template name. Length limit: 64 characters. * @return Name Transcoding template name. Length limit: 64 characters. */ public String getName() { return this.Name; } /** * Set Transcoding template name. Length limit: 64 characters. * @param Name Transcoding template name. Length limit: 64 characters. */ public void setName(String Name) { this.Name = Name; } /** * Get Template description. Length limit: 256 characters. * @return Comment Template description. Length limit: 256 characters. */ public String getComment() { return this.Comment; } /** * Set Template description. Length limit: 256 characters. * @param Comment Template description. Length limit: 256 characters. */ public void setComment(String Comment) { this.Comment = Comment; } /** * Get Whether to remove video data. Valid values:
  • 0: retain
  • 1: remove
  • Default value: 0. * @return RemoveVideo Whether to remove video data. Valid values:
  • 0: retain
  • 1: remove
  • Default value: 0. */ public Long getRemoveVideo() { return this.RemoveVideo; } /** * Set Whether to remove video data. Valid values:
  • 0: retain
  • 1: remove
  • Default value: 0. * @param RemoveVideo Whether to remove video data. Valid values:
  • 0: retain
  • 1: remove
  • Default value: 0. */ public void setRemoveVideo(Long RemoveVideo) { this.RemoveVideo = RemoveVideo; } /** * Get Whether to remove audio data. Valid values:
  • 0: retain
  • 1: remove
  • Default value: 0. * @return RemoveAudio Whether to remove audio data. Valid values:
  • 0: retain
  • 1: remove
  • Default value: 0. */ public Long getRemoveAudio() { return this.RemoveAudio; } /** * Set Whether to remove audio data. Valid values:
  • 0: retain
  • 1: remove
  • Default value: 0. * @param RemoveAudio Whether to remove audio data. Valid values:
  • 0: retain
  • 1: remove
  • Default value: 0. */ public void setRemoveAudio(Long RemoveAudio) { this.RemoveAudio = RemoveAudio; } /** * Get Video stream configuration parameter. This field is required when `RemoveVideo` is 0. * @return VideoTemplate Video stream configuration parameter. This field is required when `RemoveVideo` is 0. */ public VideoTemplateInfo getVideoTemplate() { return this.VideoTemplate; } /** * Set Video stream configuration parameter. This field is required when `RemoveVideo` is 0. * @param VideoTemplate Video stream configuration parameter. This field is required when `RemoveVideo` is 0. */ public void setVideoTemplate(VideoTemplateInfo VideoTemplate) { this.VideoTemplate = VideoTemplate; } /** * Get Audio stream configuration parameter. This field is required when `RemoveAudio` is 0. * @return AudioTemplate Audio stream configuration parameter. This field is required when `RemoveAudio` is 0. */ public AudioTemplateInfo getAudioTemplate() { return this.AudioTemplate; } /** * Set Audio stream configuration parameter. This field is required when `RemoveAudio` is 0. * @param AudioTemplate Audio stream configuration parameter. This field is required when `RemoveAudio` is 0. */ public void setAudioTemplate(AudioTemplateInfo AudioTemplate) { this.AudioTemplate = AudioTemplate; } /** * Get TESHD transcoding parameter. * @return TEHDConfig TESHD transcoding parameter. */ public TEHDConfig getTEHDConfig() { return this.TEHDConfig; } /** * Set TESHD transcoding parameter. * @param TEHDConfig TESHD transcoding parameter. */ public void setTEHDConfig(TEHDConfig TEHDConfig) { this.TEHDConfig = TEHDConfig; } /** * Get The segment type. This parameter is valid only if `Container` is `hls`. Valid values:
  • ts: TS segment
  • fmp4: fMP4 segment
  • Default: ts * @return SegmentType The segment type. This parameter is valid only if `Container` is `hls`. Valid values:
  • ts: TS segment
  • fmp4: fMP4 segment
  • Default: ts */ public String getSegmentType() { return this.SegmentType; } /** * Set The segment type. This parameter is valid only if `Container` is `hls`. Valid values:
  • ts: TS segment
  • fmp4: fMP4 segment
  • Default: ts * @param SegmentType The segment type. This parameter is valid only if `Container` is `hls`. Valid values:
  • ts: TS segment
  • fmp4: fMP4 segment
  • Default: ts */ public void setSegmentType(String SegmentType) { this.SegmentType = SegmentType; } public CreateTranscodeTemplateRequest() { } /** * 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 CreateTranscodeTemplateRequest(CreateTranscodeTemplateRequest source) { if (source.Container != null) { this.Container = new String(source.Container); } if (source.SubAppId != null) { this.SubAppId = new Long(source.SubAppId); } if (source.Name != null) { this.Name = new String(source.Name); } if (source.Comment != null) { this.Comment = new String(source.Comment); } if (source.RemoveVideo != null) { this.RemoveVideo = new Long(source.RemoveVideo); } if (source.RemoveAudio != null) { this.RemoveAudio = new Long(source.RemoveAudio); } if (source.VideoTemplate != null) { this.VideoTemplate = new VideoTemplateInfo(source.VideoTemplate); } if (source.AudioTemplate != null) { this.AudioTemplate = new AudioTemplateInfo(source.AudioTemplate); } if (source.TEHDConfig != null) { this.TEHDConfig = new TEHDConfig(source.TEHDConfig); } if (source.SegmentType != null) { this.SegmentType = new String(source.SegmentType); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "Container", this.Container); this.setParamSimple(map, prefix + "SubAppId", this.SubAppId); this.setParamSimple(map, prefix + "Name", this.Name); this.setParamSimple(map, prefix + "Comment", this.Comment); this.setParamSimple(map, prefix + "RemoveVideo", this.RemoveVideo); this.setParamSimple(map, prefix + "RemoveAudio", this.RemoveAudio); this.setParamObj(map, prefix + "VideoTemplate.", this.VideoTemplate); this.setParamObj(map, prefix + "AudioTemplate.", this.AudioTemplate); this.setParamObj(map, prefix + "TEHDConfig.", this.TEHDConfig); this.setParamSimple(map, prefix + "SegmentType", this.SegmentType); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy