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

com.tencentcloudapi.vod.v20180717.models.AdaptiveDynamicStreamingTemplate 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.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class AdaptiveDynamicStreamingTemplate extends AbstractModel{

    /**
    * Unique ID of a transcoding to adaptive bitrate streaming template.
    */
    @SerializedName("Definition")
    @Expose
    private Long Definition;

    /**
    * Template type. Valid values:
  • Preset: preset template;
  • Custom: custom template.
  • */ @SerializedName("Type") @Expose private String Type; /** * Name of a transcoding to adaptive bitrate streaming template. */ @SerializedName("Name") @Expose private String Name; /** * Description of a transcoding to adaptive bitrate streaming template. */ @SerializedName("Comment") @Expose private String Comment; /** * Adaptive bitstream format. Valid value:
  • HLS.
  • */ @SerializedName("Format") @Expose private String Format; /** * DRM type. Valid values:
  • FairPlay;
  • SimpleAES;
  • Widevine.
  • If this field is a blank string, DRM will not be performed on the video. */ @SerializedName("DrmType") @Expose private String DrmType; /** * Parameter information of input stream for adaptive bitrate streaming. Up to 10 streams can be input. */ @SerializedName("StreamInfos") @Expose private AdaptiveStreamTemplate [] StreamInfos; /** * Whether to prohibit transcoding from low bitrate to high bitrate. Valid values:
  • 0: no,
  • 1: yes.
  • */ @SerializedName("DisableHigherVideoBitrate") @Expose private Long DisableHigherVideoBitrate; /** * Whether to prohibit transcoding from low resolution to high resolution. Valid values:
  • 0: no,
  • 1: yes.
  • */ @SerializedName("DisableHigherVideoResolution") @Expose private Long DisableHigherVideoResolution; /** * 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; /** * Get Unique ID of a transcoding to adaptive bitrate streaming template. * @return Definition Unique ID of a transcoding to adaptive bitrate streaming template. */ public Long getDefinition() { return this.Definition; } /** * Set Unique ID of a transcoding to adaptive bitrate streaming template. * @param Definition Unique ID of a transcoding to adaptive bitrate streaming template. */ public void setDefinition(Long Definition) { this.Definition = Definition; } /** * 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 Name of a transcoding to adaptive bitrate streaming template. * @return Name Name of a transcoding to adaptive bitrate streaming template. */ public String getName() { return this.Name; } /** * Set Name of a transcoding to adaptive bitrate streaming template. * @param Name Name of a transcoding to adaptive bitrate streaming template. */ public void setName(String Name) { this.Name = Name; } /** * Get Description of a transcoding to adaptive bitrate streaming template. * @return Comment Description of a transcoding to adaptive bitrate streaming template. */ public String getComment() { return this.Comment; } /** * Set Description of a transcoding to adaptive bitrate streaming template. * @param Comment Description of a transcoding to adaptive bitrate streaming template. */ public void setComment(String Comment) { this.Comment = Comment; } /** * Get Adaptive bitstream format. Valid value:
  • HLS.
  • * @return Format Adaptive bitstream format. Valid value:
  • HLS.
  • */ public String getFormat() { return this.Format; } /** * Set Adaptive bitstream format. Valid value:
  • HLS.
  • * @param Format Adaptive bitstream format. Valid value:
  • HLS.
  • */ public void setFormat(String Format) { this.Format = Format; } /** * Get DRM type. Valid values:
  • FairPlay;
  • SimpleAES;
  • Widevine.
  • If this field is a blank string, DRM will not be performed on the video. * @return DrmType DRM type. Valid values:
  • FairPlay;
  • SimpleAES;
  • Widevine.
  • If this field is a blank string, DRM will not be performed on the video. */ public String getDrmType() { return this.DrmType; } /** * Set DRM type. Valid values:
  • FairPlay;
  • SimpleAES;
  • Widevine.
  • If this field is a blank string, DRM will not be performed on the video. * @param DrmType DRM type. Valid values:
  • FairPlay;
  • SimpleAES;
  • Widevine.
  • If this field is a blank string, DRM will not be performed on the video. */ public void setDrmType(String DrmType) { this.DrmType = DrmType; } /** * Get Parameter information of input stream for adaptive bitrate streaming. Up to 10 streams can be input. * @return StreamInfos Parameter information of input stream for adaptive bitrate streaming. Up to 10 streams can be input. */ public AdaptiveStreamTemplate [] getStreamInfos() { return this.StreamInfos; } /** * Set Parameter information of input stream for adaptive bitrate streaming. Up to 10 streams can be input. * @param StreamInfos Parameter information of input stream for adaptive bitrate streaming. Up to 10 streams can be input. */ public void setStreamInfos(AdaptiveStreamTemplate [] StreamInfos) { this.StreamInfos = StreamInfos; } /** * Get Whether to prohibit transcoding from low bitrate to high bitrate. Valid values:
  • 0: no,
  • 1: yes.
  • * @return DisableHigherVideoBitrate Whether to prohibit transcoding from low bitrate to high bitrate. Valid values:
  • 0: no,
  • 1: yes.
  • */ public Long getDisableHigherVideoBitrate() { return this.DisableHigherVideoBitrate; } /** * Set Whether to prohibit transcoding from low bitrate to high bitrate. Valid values:
  • 0: no,
  • 1: yes.
  • * @param DisableHigherVideoBitrate Whether to prohibit transcoding from low bitrate to high bitrate. Valid values:
  • 0: no,
  • 1: yes.
  • */ public void setDisableHigherVideoBitrate(Long DisableHigherVideoBitrate) { this.DisableHigherVideoBitrate = DisableHigherVideoBitrate; } /** * Get Whether to prohibit transcoding from low resolution to high resolution. Valid values:
  • 0: no,
  • 1: yes.
  • * @return DisableHigherVideoResolution Whether to prohibit transcoding from low resolution to high resolution. Valid values:
  • 0: no,
  • 1: yes.
  • */ public Long getDisableHigherVideoResolution() { return this.DisableHigherVideoResolution; } /** * Set Whether to prohibit transcoding from low resolution to high resolution. Valid values:
  • 0: no,
  • 1: yes.
  • * @param DisableHigherVideoResolution Whether to prohibit transcoding from low resolution to high resolution. Valid values:
  • 0: no,
  • 1: yes.
  • */ public void setDisableHigherVideoResolution(Long DisableHigherVideoResolution) { this.DisableHigherVideoResolution = DisableHigherVideoResolution; } /** * 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; } public AdaptiveDynamicStreamingTemplate() { } /** * 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 AdaptiveDynamicStreamingTemplate(AdaptiveDynamicStreamingTemplate source) { if (source.Definition != null) { this.Definition = new Long(source.Definition); } if (source.Type != null) { this.Type = new String(source.Type); } if (source.Name != null) { this.Name = new String(source.Name); } if (source.Comment != null) { this.Comment = new String(source.Comment); } if (source.Format != null) { this.Format = new String(source.Format); } if (source.DrmType != null) { this.DrmType = new String(source.DrmType); } if (source.StreamInfos != null) { this.StreamInfos = new AdaptiveStreamTemplate[source.StreamInfos.length]; for (int i = 0; i < source.StreamInfos.length; i++) { this.StreamInfos[i] = new AdaptiveStreamTemplate(source.StreamInfos[i]); } } if (source.DisableHigherVideoBitrate != null) { this.DisableHigherVideoBitrate = new Long(source.DisableHigherVideoBitrate); } if (source.DisableHigherVideoResolution != null) { this.DisableHigherVideoResolution = new Long(source.DisableHigherVideoResolution); } if (source.CreateTime != null) { this.CreateTime = new String(source.CreateTime); } if (source.UpdateTime != null) { this.UpdateTime = new String(source.UpdateTime); } } /** * 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 + "Type", this.Type); this.setParamSimple(map, prefix + "Name", this.Name); this.setParamSimple(map, prefix + "Comment", this.Comment); this.setParamSimple(map, prefix + "Format", this.Format); this.setParamSimple(map, prefix + "DrmType", this.DrmType); this.setParamArrayObj(map, prefix + "StreamInfos.", this.StreamInfos); this.setParamSimple(map, prefix + "DisableHigherVideoBitrate", this.DisableHigherVideoBitrate); this.setParamSimple(map, prefix + "DisableHigherVideoResolution", this.DisableHigherVideoResolution); this.setParamSimple(map, prefix + "CreateTime", this.CreateTime); this.setParamSimple(map, prefix + "UpdateTime", this.UpdateTime); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy