![JAR search and dependency download from the Maven repository](/logo.png)
com.tencentcloudapi.vod.v20180717.models.TranscodeTemplate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* 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 TranscodeTemplate extends AbstractModel {
/**
* Unique ID of transcoding template.
*/
@SerializedName("Definition")
@Expose
private String Definition;
/**
* Container. Valid values: mp4, flv, hls, mp3, flac, ogg.
*/
@SerializedName("Container")
@Expose
private String Container;
/**
* Transcoding template name.
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("Name")
@Expose
private String Name;
/**
* Template description.
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("Comment")
@Expose
private String Comment;
/**
* Template type. Valid values:
Preset: preset template;
Custom: custom template.
*/
@SerializedName("Type")
@Expose
private String Type;
/**
* Whether to remove video data. Valid values:
0: retain;
1: remove.
*/
@SerializedName("RemoveVideo")
@Expose
private Long RemoveVideo;
/**
* Whether to remove audio data. Valid values:
0: retain;
1: remove.
*/
@SerializedName("RemoveAudio")
@Expose
private Long RemoveAudio;
/**
* Video stream configuration parameter. This field is valid only when `RemoveVideo` is 0.
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("VideoTemplate")
@Expose
private VideoTemplateInfo VideoTemplate;
/**
* Audio stream configuration parameter. This field is valid only when `RemoveAudio` is 0.
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("AudioTemplate")
@Expose
private AudioTemplateInfo AudioTemplate;
/**
* TESHD transcoding parameter.
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("TEHDConfig")
@Expose
private TEHDConfig TEHDConfig;
/**
* Container filter. Valid values:
Video: video container that can contain both video stream and audio stream;
PureAudio: audio container that can contain only audio stream.
*/
@SerializedName("ContainerType")
@Expose
private String ContainerType;
/**
* Creation time of template in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I).
*/
@SerializedName("CreateTime")
@Expose
private String CreateTime;
/**
* Last modified time of template in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I).
*/
@SerializedName("UpdateTime")
@Expose
private String UpdateTime;
/**
* The segment type. This parameter is valid only if `Container` is `hls`
*/
@SerializedName("SegmentType")
@Expose
private String SegmentType;
/**
* Get Unique ID of transcoding template.
* @return Definition Unique ID of transcoding template.
*/
public String getDefinition() {
return this.Definition;
}
/**
* Set Unique ID of transcoding template.
* @param Definition Unique ID of transcoding template.
*/
public void setDefinition(String Definition) {
this.Definition = Definition;
}
/**
* Get Container. Valid values: mp4, flv, hls, mp3, flac, ogg.
* @return Container Container. Valid values: mp4, flv, hls, mp3, flac, ogg.
*/
public String getContainer() {
return this.Container;
}
/**
* Set Container. Valid values: mp4, flv, hls, mp3, flac, ogg.
* @param Container Container. Valid values: mp4, flv, hls, mp3, flac, ogg.
*/
public void setContainer(String Container) {
this.Container = Container;
}
/**
* Get Transcoding template name.
Note: this field may return null, indicating that no valid values can be obtained.
* @return Name Transcoding template name.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public String getName() {
return this.Name;
}
/**
* Set Transcoding template name.
Note: this field may return null, indicating that no valid values can be obtained.
* @param Name Transcoding template name.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setName(String Name) {
this.Name = Name;
}
/**
* Get Template description.
Note: this field may return null, indicating that no valid values can be obtained.
* @return Comment Template description.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public String getComment() {
return this.Comment;
}
/**
* Set Template description.
Note: this field may return null, indicating that no valid values can be obtained.
* @param Comment Template description.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setComment(String Comment) {
this.Comment = Comment;
}
/**
* Get Template type. Valid values:
Preset: preset template;
Custom: custom template.
* @return Type Template type. Valid values:
Preset: preset template;
Custom: custom template.
*/
public String getType() {
return this.Type;
}
/**
* Set Template type. Valid values:
Preset: preset template;
Custom: custom template.
* @param Type Template type. Valid values:
Preset: preset template;
Custom: custom template.
*/
public void setType(String Type) {
this.Type = Type;
}
/**
* Get Whether to remove video data. Valid values:
0: retain;
1: remove.
* @return RemoveVideo Whether to remove video data. Valid values:
0: retain;
1: remove.
*/
public Long getRemoveVideo() {
return this.RemoveVideo;
}
/**
* Set Whether to remove video data. Valid values:
0: retain;
1: remove.
* @param RemoveVideo Whether to remove video data. Valid values:
0: retain;
1: remove.
*/
public void setRemoveVideo(Long RemoveVideo) {
this.RemoveVideo = RemoveVideo;
}
/**
* Get Whether to remove audio data. Valid values:
0: retain;
1: remove.
* @return RemoveAudio Whether to remove audio data. Valid values:
0: retain;
1: remove.
*/
public Long getRemoveAudio() {
return this.RemoveAudio;
}
/**
* Set Whether to remove audio data. Valid values:
0: retain;
1: remove.
* @param RemoveAudio Whether to remove audio data. Valid values:
0: retain;
1: remove.
*/
public void setRemoveAudio(Long RemoveAudio) {
this.RemoveAudio = RemoveAudio;
}
/**
* Get Video stream configuration parameter. This field is valid only when `RemoveVideo` is 0.
Note: this field may return null, indicating that no valid values can be obtained.
* @return VideoTemplate Video stream configuration parameter. This field is valid only when `RemoveVideo` is 0.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public VideoTemplateInfo getVideoTemplate() {
return this.VideoTemplate;
}
/**
* Set Video stream configuration parameter. This field is valid only when `RemoveVideo` is 0.
Note: this field may return null, indicating that no valid values can be obtained.
* @param VideoTemplate Video stream configuration parameter. This field is valid only when `RemoveVideo` is 0.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setVideoTemplate(VideoTemplateInfo VideoTemplate) {
this.VideoTemplate = VideoTemplate;
}
/**
* Get Audio stream configuration parameter. This field is valid only when `RemoveAudio` is 0.
Note: this field may return null, indicating that no valid values can be obtained.
* @return AudioTemplate Audio stream configuration parameter. This field is valid only when `RemoveAudio` is 0.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public AudioTemplateInfo getAudioTemplate() {
return this.AudioTemplate;
}
/**
* Set Audio stream configuration parameter. This field is valid only when `RemoveAudio` is 0.
Note: this field may return null, indicating that no valid values can be obtained.
* @param AudioTemplate Audio stream configuration parameter. This field is valid only when `RemoveAudio` is 0.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setAudioTemplate(AudioTemplateInfo AudioTemplate) {
this.AudioTemplate = AudioTemplate;
}
/**
* Get TESHD transcoding parameter.
Note: this field may return null, indicating that no valid values can be obtained.
* @return TEHDConfig TESHD transcoding parameter.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public TEHDConfig getTEHDConfig() {
return this.TEHDConfig;
}
/**
* Set TESHD transcoding parameter.
Note: this field may return null, indicating that no valid values can be obtained.
* @param TEHDConfig TESHD transcoding parameter.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setTEHDConfig(TEHDConfig TEHDConfig) {
this.TEHDConfig = TEHDConfig;
}
/**
* Get Container filter. Valid values:
Video: video container that can contain both video stream and audio stream;
PureAudio: audio container that can contain only audio stream.
* @return ContainerType Container filter. Valid values:
Video: video container that can contain both video stream and audio stream;
PureAudio: audio container that can contain only audio stream.
*/
public String getContainerType() {
return this.ContainerType;
}
/**
* Set Container filter. Valid values:
Video: video container that can contain both video stream and audio stream;
PureAudio: audio container that can contain only audio stream.
* @param ContainerType Container filter. Valid values:
Video: video container that can contain both video stream and audio stream;
PureAudio: audio container that can contain only audio stream.
*/
public void setContainerType(String ContainerType) {
this.ContainerType = ContainerType;
}
/**
* Get Creation time of template in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I).
* @return CreateTime Creation time of template in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I).
*/
public String getCreateTime() {
return this.CreateTime;
}
/**
* Set Creation time of template in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I).
* @param CreateTime Creation time of template in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I).
*/
public void setCreateTime(String CreateTime) {
this.CreateTime = CreateTime;
}
/**
* Get Last modified time of template in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I).
* @return UpdateTime Last modified time of template in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I).
*/
public String getUpdateTime() {
return this.UpdateTime;
}
/**
* Set Last modified time of template in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I).
* @param UpdateTime Last modified time of template in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I).
*/
public void setUpdateTime(String UpdateTime) {
this.UpdateTime = UpdateTime;
}
/**
* Get The segment type. This parameter is valid only if `Container` is `hls`
* @return SegmentType The segment type. This parameter is valid only if `Container` is `hls`
*/
public String getSegmentType() {
return this.SegmentType;
}
/**
* Set The segment type. This parameter is valid only if `Container` is `hls`
* @param SegmentType The segment type. This parameter is valid only if `Container` is `hls`
*/
public void setSegmentType(String SegmentType) {
this.SegmentType = SegmentType;
}
public TranscodeTemplate() {
}
/**
* 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 TranscodeTemplate(TranscodeTemplate source) {
if (source.Definition != null) {
this.Definition = new String(source.Definition);
}
if (source.Container != null) {
this.Container = new String(source.Container);
}
if (source.Name != null) {
this.Name = new String(source.Name);
}
if (source.Comment != null) {
this.Comment = new String(source.Comment);
}
if (source.Type != null) {
this.Type = new String(source.Type);
}
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.ContainerType != null) {
this.ContainerType = new String(source.ContainerType);
}
if (source.CreateTime != null) {
this.CreateTime = new String(source.CreateTime);
}
if (source.UpdateTime != null) {
this.UpdateTime = new String(source.UpdateTime);
}
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 + "Definition", this.Definition);
this.setParamSimple(map, prefix + "Container", this.Container);
this.setParamSimple(map, prefix + "Name", this.Name);
this.setParamSimple(map, prefix + "Comment", this.Comment);
this.setParamSimple(map, prefix + "Type", this.Type);
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 + "ContainerType", this.ContainerType);
this.setParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.setParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
this.setParamSimple(map, prefix + "SegmentType", this.SegmentType);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy