public class TranscodeTemplate extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| TranscodeTemplate() | 
| TranscodeTemplate(TranscodeTemplate source)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. | 
| Modifier and Type | Method and Description | 
|---|---|
| AudioTemplateInfo | getAudioTemplate()Get 音频流配置参数,仅当 RemoveAudio 为 0,该字段有效 。 | 
| String | getComment()Get 模板描述信息。 | 
| String | getContainer()Get 封装格式,取值:mp4、flv、hls、mp3、flac、ogg。 | 
| String | getContainerType()Get 封装格式过滤条件,可选值:
Video:视频格式,可以同时包含视频流和音频流的封装格式;
PureAudio:纯音频格式,只能包含音频流的封装格式板。 | 
| String | getCreateTime()Get 模板创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 | 
| String | getDefinition()Get 转码模板唯一标识。 | 
| String | getName()Get 转码模板名称。 | 
| Long | getRemoveAudio()Get 是否去除音频数据,取值:
0:保留;
1:去除。 | 
| Long | getRemoveVideo()Get 是否去除视频数据,取值:
0:保留;
1:去除。 | 
| String | getSegmentType()Get 切片类型,仅当 Container 为 hls 时有效。 | 
| TEHDConfig | getTEHDConfig()Get 极速高清转码参数。
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getType()Get 模板类型,取值:
Preset:系统预置模板;
Custom:用户自定义模板。 | 
| String | getUpdateTime()Get 模板最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 | 
| VideoTemplateInfo | getVideoTemplate()Get 视频流配置参数,仅当 RemoveVideo 为 0,该字段有效。 | 
| void | setAudioTemplate(AudioTemplateInfo AudioTemplate)Set 音频流配置参数,仅当 RemoveAudio 为 0,该字段有效 。 | 
| void | setComment(String Comment)Set 模板描述信息。 | 
| void | setContainer(String Container)Set 封装格式,取值:mp4、flv、hls、mp3、flac、ogg。 | 
| void | setContainerType(String ContainerType)Set 封装格式过滤条件,可选值:
Video:视频格式,可以同时包含视频流和音频流的封装格式;
PureAudio:纯音频格式,只能包含音频流的封装格式板。 | 
| void | setCreateTime(String CreateTime)Set 模板创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 | 
| void | setDefinition(String Definition)Set 转码模板唯一标识。 | 
| void | setName(String Name)Set 转码模板名称。 | 
| void | setRemoveAudio(Long RemoveAudio)Set 是否去除音频数据,取值:
0:保留;
1:去除。 | 
| void | setRemoveVideo(Long RemoveVideo)Set 是否去除视频数据,取值:
0:保留;
1:去除。 | 
| void | setSegmentType(String SegmentType)Set 切片类型,仅当 Container 为 hls 时有效。 | 
| void | setTEHDConfig(TEHDConfig TEHDConfig)Set 极速高清转码参数。
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setType(String Type)Set 模板类型,取值:
Preset:系统预置模板;
Custom:用户自定义模板。 | 
| void | setUpdateTime(String UpdateTime)Set 模板最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 | 
| void | setVideoTemplate(VideoTemplateInfo VideoTemplate)Set 视频流配置参数,仅当 RemoveVideo 为 0,该字段有效。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic TranscodeTemplate()
public TranscodeTemplate(TranscodeTemplate source)
public String getDefinition()
public void setDefinition(String Definition)
Definition - 转码模板唯一标识。public String getContainer()
public void setContainer(String Container)
Container - 封装格式,取值:mp4、flv、hls、mp3、flac、ogg。public String getName()
public void setName(String Name)
Name - 转码模板名称。public String getComment()
public void setComment(String Comment)
Comment - 模板描述信息。public String getType()
public void setType(String Type)
Type - 模板类型,取值:
public Long getRemoveVideo()
public void setRemoveVideo(Long RemoveVideo)
RemoveVideo - 是否去除视频数据,取值:
public Long getRemoveAudio()
public void setRemoveAudio(Long RemoveAudio)
RemoveAudio - 是否去除音频数据,取值:
public VideoTemplateInfo getVideoTemplate()
public void setVideoTemplate(VideoTemplateInfo VideoTemplate)
VideoTemplate - 视频流配置参数,仅当 RemoveVideo 为 0,该字段有效。public AudioTemplateInfo getAudioTemplate()
public void setAudioTemplate(AudioTemplateInfo AudioTemplate)
AudioTemplate - 音频流配置参数,仅当 RemoveAudio 为 0,该字段有效 。public TEHDConfig getTEHDConfig()
public void setTEHDConfig(TEHDConfig TEHDConfig)
TEHDConfig - 极速高清转码参数。
注意:此字段可能返回 null,表示取不到有效值。public String getContainerType()
public void setContainerType(String ContainerType)
ContainerType - 封装格式过滤条件,可选值:
public String getCreateTime()
public void setCreateTime(String CreateTime)
CreateTime - 模板创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。public String getUpdateTime()
public void setUpdateTime(String UpdateTime)
UpdateTime - 模板最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。public String getSegmentType()
public void setSegmentType(String SegmentType)
SegmentType - 切片类型,仅当 Container 为 hls 时有效。Copyright © 2025. All rights reserved.