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.1.1104
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{

    /**
    * 自适应转码模板唯一标识。
    */
    @SerializedName("Definition")
    @Expose
    private Long Definition;

    /**
    * 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
    */
    @SerializedName("SubAppId")
    @Expose
    private Long SubAppId;

    /**
    * 模板名称,长度限制:64 个字符。
    */
    @SerializedName("Name")
    @Expose
    private String Name;

    /**
    * 自适应转码格式,取值范围:
  • HLS;
  • MPEG-DASH。
  • */ @SerializedName("Format") @Expose private String Format; /** * 是否禁止视频低码率转高码率,取值范围:
  • 0:否,
  • 1:是。
  • */ @SerializedName("DisableHigherVideoBitrate") @Expose private Long DisableHigherVideoBitrate; /** * 是否禁止视频分辨率转高分辨率,取值范围:
  • 0:否,
  • 1:是。
  • */ @SerializedName("DisableHigherVideoResolution") @Expose private Long DisableHigherVideoResolution; /** * 自适应转码输入流参数信息,最多输入10路流。 注意:各个流的帧率必须保持一致;如果不一致,采用第一个流的帧率作为输出帧率。 */ @SerializedName("StreamInfos") @Expose private AdaptiveStreamTemplate [] StreamInfos; /** * 模板描述信息,长度限制:256 个字符。 */ @SerializedName("Comment") @Expose private String Comment; /** * 切片类型,当 Format 为 HLS 时有效,可选值:
  • ts:ts 切片;
  • fmp4:fmp4 切片。
  • */ @SerializedName("SegmentType") @Expose private String SegmentType; /** * Get 自适应转码模板唯一标识。 * @return Definition 自适应转码模板唯一标识。 */ public Long getDefinition() { return this.Definition; } /** * Set 自适应转码模板唯一标识。 * @param Definition 自适应转码模板唯一标识。 */ public void setDefinition(Long Definition) { this.Definition = Definition; } /** * Get 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 * @return SubAppId 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 */ public Long getSubAppId() { return this.SubAppId; } /** * Set 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 * @param SubAppId 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 */ public void setSubAppId(Long SubAppId) { this.SubAppId = SubAppId; } /** * Get 模板名称,长度限制:64 个字符。 * @return Name 模板名称,长度限制:64 个字符。 */ public String getName() { return this.Name; } /** * Set 模板名称,长度限制:64 个字符。 * @param Name 模板名称,长度限制:64 个字符。 */ public void setName(String Name) { this.Name = Name; } /** * Get 自适应转码格式,取值范围:
  • HLS;
  • MPEG-DASH。
  • * @return Format 自适应转码格式,取值范围:
  • HLS;
  • MPEG-DASH。
  • */ public String getFormat() { return this.Format; } /** * Set 自适应转码格式,取值范围:
  • HLS;
  • MPEG-DASH。
  • * @param Format 自适应转码格式,取值范围:
  • HLS;
  • MPEG-DASH。
  • */ public void setFormat(String Format) { this.Format = Format; } /** * Get 是否禁止视频低码率转高码率,取值范围:
  • 0:否,
  • 1:是。
  • * @return DisableHigherVideoBitrate 是否禁止视频低码率转高码率,取值范围:
  • 0:否,
  • 1:是。
  • */ public Long getDisableHigherVideoBitrate() { return this.DisableHigherVideoBitrate; } /** * Set 是否禁止视频低码率转高码率,取值范围:
  • 0:否,
  • 1:是。
  • * @param DisableHigherVideoBitrate 是否禁止视频低码率转高码率,取值范围:
  • 0:否,
  • 1:是。
  • */ public void setDisableHigherVideoBitrate(Long DisableHigherVideoBitrate) { this.DisableHigherVideoBitrate = DisableHigherVideoBitrate; } /** * Get 是否禁止视频分辨率转高分辨率,取值范围:
  • 0:否,
  • 1:是。
  • * @return DisableHigherVideoResolution 是否禁止视频分辨率转高分辨率,取值范围:
  • 0:否,
  • 1:是。
  • */ public Long getDisableHigherVideoResolution() { return this.DisableHigherVideoResolution; } /** * Set 是否禁止视频分辨率转高分辨率,取值范围:
  • 0:否,
  • 1:是。
  • * @param DisableHigherVideoResolution 是否禁止视频分辨率转高分辨率,取值范围:
  • 0:否,
  • 1:是。
  • */ public void setDisableHigherVideoResolution(Long DisableHigherVideoResolution) { this.DisableHigherVideoResolution = DisableHigherVideoResolution; } /** * Get 自适应转码输入流参数信息,最多输入10路流。 注意:各个流的帧率必须保持一致;如果不一致,采用第一个流的帧率作为输出帧率。 * @return StreamInfos 自适应转码输入流参数信息,最多输入10路流。 注意:各个流的帧率必须保持一致;如果不一致,采用第一个流的帧率作为输出帧率。 */ public AdaptiveStreamTemplate [] getStreamInfos() { return this.StreamInfos; } /** * Set 自适应转码输入流参数信息,最多输入10路流。 注意:各个流的帧率必须保持一致;如果不一致,采用第一个流的帧率作为输出帧率。 * @param StreamInfos 自适应转码输入流参数信息,最多输入10路流。 注意:各个流的帧率必须保持一致;如果不一致,采用第一个流的帧率作为输出帧率。 */ public void setStreamInfos(AdaptiveStreamTemplate [] StreamInfos) { this.StreamInfos = StreamInfos; } /** * Get 模板描述信息,长度限制:256 个字符。 * @return Comment 模板描述信息,长度限制:256 个字符。 */ public String getComment() { return this.Comment; } /** * Set 模板描述信息,长度限制:256 个字符。 * @param Comment 模板描述信息,长度限制:256 个字符。 */ public void setComment(String Comment) { this.Comment = Comment; } /** * Get 切片类型,当 Format 为 HLS 时有效,可选值:
  • ts:ts 切片;
  • fmp4:fmp4 切片。
  • * @return SegmentType 切片类型,当 Format 为 HLS 时有效,可选值:
  • ts:ts 切片;
  • fmp4:fmp4 切片。
  • */ public String getSegmentType() { return this.SegmentType; } /** * Set 切片类型,当 Format 为 HLS 时有效,可选值:
  • ts:ts 切片;
  • fmp4:fmp4 切片。
  • * @param SegmentType 切片类型,当 Format 为 HLS 时有效,可选值:
  • ts:ts 切片;
  • fmp4:fmp4 切片。
  • */ 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 - 2024 Weber Informatics LLC | Privacy Policy