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

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

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

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

    /**
    * Adaptive bitrate streaming format. Valid values:
  • HLS,
  • MPEG-DASH.
  • */ @SerializedName("Format") @Expose private String Format; /** * 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; /** * Parameter information of input streams for transcoding to adaptive bitrate streaming. Up to 10 streams can be input. Note: the frame rate of each stream must be consistent; otherwise, the frame rate of the first stream is used as the output frame rate. */ @SerializedName("StreamInfos") @Expose private AdaptiveStreamTemplate [] StreamInfos; /** * Template description. Length limit: 256 characters. */ @SerializedName("Comment") @Expose private String Comment; /** * Get Unique ID of an adaptive bitrate streaming template. * @return Definition Unique ID of an adaptive bitrate streaming template. */ public Long getDefinition() { return this.Definition; } /** * Set Unique ID of an adaptive bitrate streaming template. * @param Definition Unique ID of an adaptive bitrate streaming template. */ public void setDefinition(Long Definition) { this.Definition = Definition; } /** * Get Template name. Length limit: 64 characters. * @return Name Template name. Length limit: 64 characters. */ public String getName() { return this.Name; } /** * Set Template name. Length limit: 64 characters. * @param Name Template name. Length limit: 64 characters. */ public void setName(String Name) { this.Name = Name; } /** * Get Adaptive bitrate streaming format. Valid values:
  • HLS,
  • MPEG-DASH.
  • * @return Format Adaptive bitrate streaming format. Valid values:
  • HLS,
  • MPEG-DASH.
  • */ public String getFormat() { return this.Format; } /** * Set Adaptive bitrate streaming format. Valid values:
  • HLS,
  • MPEG-DASH.
  • * @param Format Adaptive bitrate streaming format. Valid values:
  • HLS,
  • MPEG-DASH.
  • */ public void setFormat(String Format) { this.Format = Format; } /** * 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 Parameter information of input streams for transcoding to adaptive bitrate streaming. Up to 10 streams can be input. Note: the frame rate of each stream must be consistent; otherwise, the frame rate of the first stream is used as the output frame rate. * @return StreamInfos Parameter information of input streams for transcoding to adaptive bitrate streaming. Up to 10 streams can be input. Note: the frame rate of each stream must be consistent; otherwise, the frame rate of the first stream is used as the output frame rate. */ public AdaptiveStreamTemplate [] getStreamInfos() { return this.StreamInfos; } /** * Set Parameter information of input streams for transcoding to adaptive bitrate streaming. Up to 10 streams can be input. Note: the frame rate of each stream must be consistent; otherwise, the frame rate of the first stream is used as the output frame rate. * @param StreamInfos Parameter information of input streams for transcoding to adaptive bitrate streaming. Up to 10 streams can be input. Note: the frame rate of each stream must be consistent; otherwise, the frame rate of the first stream is used as the output frame rate. */ public void setStreamInfos(AdaptiveStreamTemplate [] StreamInfos) { this.StreamInfos = StreamInfos; } /** * 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; } public ModifyAdaptiveDynamicStreamingTemplateRequest() { } /** * 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 ModifyAdaptiveDynamicStreamingTemplateRequest(ModifyAdaptiveDynamicStreamingTemplateRequest source) { if (source.Definition != null) { this.Definition = new Long(source.Definition); } if (source.Name != null) { this.Name = new String(source.Name); } if (source.Format != null) { this.Format = new String(source.Format); } if (source.DisableHigherVideoBitrate != null) { this.DisableHigherVideoBitrate = new Long(source.DisableHigherVideoBitrate); } if (source.DisableHigherVideoResolution != null) { this.DisableHigherVideoResolution = new Long(source.DisableHigherVideoResolution); } 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.Comment != null) { this.Comment = new String(source.Comment); } } /** * 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 + "Name", this.Name); this.setParamSimple(map, prefix + "Format", this.Format); this.setParamSimple(map, prefix + "DisableHigherVideoBitrate", this.DisableHigherVideoBitrate); this.setParamSimple(map, prefix + "DisableHigherVideoResolution", this.DisableHigherVideoResolution); this.setParamArrayObj(map, prefix + "StreamInfos.", this.StreamInfos); this.setParamSimple(map, prefix + "Comment", this.Comment); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy