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

com.tencentcloudapi.vod.v20180717.models.ModifyAdaptiveDynamicStreamingTemplateRequest Maven / Gradle / Ivy

There is a newer version: 3.0.1076
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 ModifyAdaptiveDynamicStreamingTemplateRequest extends AbstractModel{

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

    /**
    * 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;

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

    /**
    * The adaptive bitrate streaming format. Valid values:
  • HLS
  • MPEG-DASH
  • */ @SerializedName("Format") @Expose private String Format; /** * Whether to prohibit transcoding video 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 stream for adaptive bitrate streaming. Up to 10 streams can be input. Note: the frame rate of all streams must be the same; otherwise, the frame rate of the first stream will be used as the output frame rate. */ @SerializedName("StreamInfos") @Expose private AdaptiveStreamTemplate [] StreamInfos; /** * Template description. Length limit: 256 characters. */ @SerializedName("Comment") @Expose private String Comment; /** * The segment type. This parameter is valid only if `Format` is `HLS`. Valid values:
  • ts: TS segment
  • fmp4: fMP4 segment
  • */ @SerializedName("SegmentType") @Expose private String SegmentType; /** * Get Unique ID of adaptive bitrate streaming template. * @return Definition Unique ID of adaptive bitrate streaming template. */ public Long getDefinition() { return this.Definition; } /** * Set Unique ID of adaptive bitrate streaming template. * @param Definition Unique ID of adaptive bitrate streaming template. */ public void setDefinition(Long Definition) { this.Definition = Definition; } /** * 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 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 The adaptive bitrate streaming format. Valid values:
  • HLS
  • MPEG-DASH
  • * @return Format The adaptive bitrate streaming format. Valid values:
  • HLS
  • MPEG-DASH
  • */ public String getFormat() { return this.Format; } /** * Set The adaptive bitrate streaming format. Valid values:
  • HLS
  • MPEG-DASH
  • * @param Format The adaptive bitrate streaming format. Valid values:
  • HLS
  • MPEG-DASH
  • */ public void setFormat(String Format) { this.Format = Format; } /** * Get Whether to prohibit transcoding video from low bitrate to high bitrate. Valid values:
  • 0: no,
  • 1: yes.
  • * @return DisableHigherVideoBitrate Whether to prohibit transcoding video from low bitrate to high bitrate. Valid values:
  • 0: no,
  • 1: yes.
  • */ public Long getDisableHigherVideoBitrate() { return this.DisableHigherVideoBitrate; } /** * Set Whether to prohibit transcoding video from low bitrate to high bitrate. Valid values:
  • 0: no,
  • 1: yes.
  • * @param DisableHigherVideoBitrate Whether to prohibit transcoding video 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 stream for adaptive bitrate streaming. Up to 10 streams can be input. Note: the frame rate of all streams must be the same; otherwise, the frame rate of the first stream will be used as the output frame rate. * @return StreamInfos Parameter information of input stream for adaptive bitrate streaming. Up to 10 streams can be input. Note: the frame rate of all streams must be the same; otherwise, the frame rate of the first stream will be used as the output frame rate. */ public AdaptiveStreamTemplate [] getStreamInfos() { return this.StreamInfos; } /** * Set Parameter information of input stream for adaptive bitrate streaming. Up to 10 streams can be input. Note: the frame rate of all streams must be the same; otherwise, the frame rate of the first stream will be used as the output frame rate. * @param StreamInfos Parameter information of input stream for adaptive bitrate streaming. Up to 10 streams can be input. Note: the frame rate of all streams must be the same; otherwise, the frame rate of the first stream will be 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; } /** * Get The segment type. This parameter is valid only if `Format` is `HLS`. Valid values:
  • ts: TS segment
  • fmp4: fMP4 segment
  • * @return SegmentType The segment type. This parameter is valid only if `Format` is `HLS`. Valid values:
  • ts: TS segment
  • fmp4: fMP4 segment
  • */ public String getSegmentType() { return this.SegmentType; } /** * Set The segment type. This parameter is valid only if `Format` is `HLS`. Valid values:
  • ts: TS segment
  • fmp4: fMP4 segment
  • * @param SegmentType The segment type. This parameter is valid only if `Format` is `HLS`. Valid values:
  • ts: TS segment
  • fmp4: fMP4 segment
  • */ public void setSegmentType(String SegmentType) { this.SegmentType = SegmentType; } 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.SubAppId != null) { this.SubAppId = new Long(source.SubAppId); } 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); } 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 + "SubAppId", this.SubAppId); 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); this.setParamSimple(map, prefix + "SegmentType", this.SegmentType); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy