com.tencentcloudapi.vod.v20180717.models.CreateAdaptiveDynamicStreamingTemplateRequest Maven / Gradle / Ivy
/*
* 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 CreateAdaptiveDynamicStreamingTemplateRequest extends AbstractModel{
/**
* Adaptive bitstream format. Valid values:
HLS.
*/
@SerializedName("Format")
@Expose
private String Format;
/**
* Parameter information of output substream for adaptive bitrate streaming. Up to 10 substreams can be output.
Note: the frame rate of all substreams must be the same; otherwise, the frame rate of the first substream will be used as the output frame rate.
*/
@SerializedName("StreamInfos")
@Expose
private AdaptiveStreamTemplate [] StreamInfos;
/**
* Template name. Length limit: 64 characters.
*/
@SerializedName("Name")
@Expose
private String Name;
/**
* DRM scheme type. Valid values:
SimpleAES.
If this field is an empty string, DRM will not be performed on the video.
*/
@SerializedName("DrmType")
@Expose
private String DrmType;
/**
* Whether to prohibit transcoding video from low bitrate to high bitrate. Valid values:
0: no,
1: yes.
Default value: no.
*/
@SerializedName("DisableHigherVideoBitrate")
@Expose
private Long DisableHigherVideoBitrate;
/**
* Whether to prohibit transcoding from low resolution to high resolution. Valid values:
0: no,
1: yes.
Default value: no.
*/
@SerializedName("DisableHigherVideoResolution")
@Expose
private Long DisableHigherVideoResolution;
/**
* Template description. Length limit: 256 characters.
*/
@SerializedName("Comment")
@Expose
private String Comment;
/**
* [Subapplication](https://intl.cloud.tencent.com/document/product/266/14574?from_cn_redirect=1) ID in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty.
*/
@SerializedName("SubAppId")
@Expose
private Long SubAppId;
/**
* Get Adaptive bitstream format. Valid values:
HLS.
* @return Format Adaptive bitstream format. Valid values:
HLS.
*/
public String getFormat() {
return this.Format;
}
/**
* Set Adaptive bitstream format. Valid values:
HLS.
* @param Format Adaptive bitstream format. Valid values:
HLS.
*/
public void setFormat(String Format) {
this.Format = Format;
}
/**
* Get Parameter information of output substream for adaptive bitrate streaming. Up to 10 substreams can be output.
Note: the frame rate of all substreams must be the same; otherwise, the frame rate of the first substream will be used as the output frame rate.
* @return StreamInfos Parameter information of output substream for adaptive bitrate streaming. Up to 10 substreams can be output.
Note: the frame rate of all substreams must be the same; otherwise, the frame rate of the first substream will be used as the output frame rate.
*/
public AdaptiveStreamTemplate [] getStreamInfos() {
return this.StreamInfos;
}
/**
* Set Parameter information of output substream for adaptive bitrate streaming. Up to 10 substreams can be output.
Note: the frame rate of all substreams must be the same; otherwise, the frame rate of the first substream will be used as the output frame rate.
* @param StreamInfos Parameter information of output substream for adaptive bitrate streaming. Up to 10 substreams can be output.
Note: the frame rate of all substreams must be the same; otherwise, the frame rate of the first substream will be used as the output frame rate.
*/
public void setStreamInfos(AdaptiveStreamTemplate [] StreamInfos) {
this.StreamInfos = StreamInfos;
}
/**
* 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 DRM scheme type. Valid values:
SimpleAES.
If this field is an empty string, DRM will not be performed on the video.
* @return DrmType DRM scheme type. Valid values:
SimpleAES.
If this field is an empty string, DRM will not be performed on the video.
*/
public String getDrmType() {
return this.DrmType;
}
/**
* Set DRM scheme type. Valid values:
SimpleAES.
If this field is an empty string, DRM will not be performed on the video.
* @param DrmType DRM scheme type. Valid values:
SimpleAES.
If this field is an empty string, DRM will not be performed on the video.
*/
public void setDrmType(String DrmType) {
this.DrmType = DrmType;
}
/**
* Get Whether to prohibit transcoding video from low bitrate to high bitrate. Valid values:
0: no,
1: yes.
Default value: no.
* @return DisableHigherVideoBitrate Whether to prohibit transcoding video from low bitrate to high bitrate. Valid values:
0: no,
1: yes.
Default value: no.
*/
public Long getDisableHigherVideoBitrate() {
return this.DisableHigherVideoBitrate;
}
/**
* Set Whether to prohibit transcoding video from low bitrate to high bitrate. Valid values:
0: no,
1: yes.
Default value: no.
* @param DisableHigherVideoBitrate Whether to prohibit transcoding video from low bitrate to high bitrate. Valid values:
0: no,
1: yes.
Default value: no.
*/
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.
Default value: no.
* @return DisableHigherVideoResolution Whether to prohibit transcoding from low resolution to high resolution. Valid values:
0: no,
1: yes.
Default value: no.
*/
public Long getDisableHigherVideoResolution() {
return this.DisableHigherVideoResolution;
}
/**
* Set Whether to prohibit transcoding from low resolution to high resolution. Valid values:
0: no,
1: yes.
Default value: no.
* @param DisableHigherVideoResolution Whether to prohibit transcoding from low resolution to high resolution. Valid values:
0: no,
1: yes.
Default value: no.
*/
public void setDisableHigherVideoResolution(Long DisableHigherVideoResolution) {
this.DisableHigherVideoResolution = DisableHigherVideoResolution;
}
/**
* 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 [Subapplication](https://intl.cloud.tencent.com/document/product/266/14574?from_cn_redirect=1) ID in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty.
* @return SubAppId [Subapplication](https://intl.cloud.tencent.com/document/product/266/14574?from_cn_redirect=1) ID in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty.
*/
public Long getSubAppId() {
return this.SubAppId;
}
/**
* Set [Subapplication](https://intl.cloud.tencent.com/document/product/266/14574?from_cn_redirect=1) ID in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty.
* @param SubAppId [Subapplication](https://intl.cloud.tencent.com/document/product/266/14574?from_cn_redirect=1) ID in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty.
*/
public void setSubAppId(Long SubAppId) {
this.SubAppId = SubAppId;
}
public CreateAdaptiveDynamicStreamingTemplateRequest() {
}
/**
* 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 CreateAdaptiveDynamicStreamingTemplateRequest(CreateAdaptiveDynamicStreamingTemplateRequest source) {
if (source.Format != null) {
this.Format = new String(source.Format);
}
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.Name != null) {
this.Name = new String(source.Name);
}
if (source.DrmType != null) {
this.DrmType = new String(source.DrmType);
}
if (source.DisableHigherVideoBitrate != null) {
this.DisableHigherVideoBitrate = new Long(source.DisableHigherVideoBitrate);
}
if (source.DisableHigherVideoResolution != null) {
this.DisableHigherVideoResolution = new Long(source.DisableHigherVideoResolution);
}
if (source.Comment != null) {
this.Comment = new String(source.Comment);
}
if (source.SubAppId != null) {
this.SubAppId = new Long(source.SubAppId);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Format", this.Format);
this.setParamArrayObj(map, prefix + "StreamInfos.", this.StreamInfos);
this.setParamSimple(map, prefix + "Name", this.Name);
this.setParamSimple(map, prefix + "DrmType", this.DrmType);
this.setParamSimple(map, prefix + "DisableHigherVideoBitrate", this.DisableHigherVideoBitrate);
this.setParamSimple(map, prefix + "DisableHigherVideoResolution", this.DisableHigherVideoResolution);
this.setParamSimple(map, prefix + "Comment", this.Comment);
this.setParamSimple(map, prefix + "SubAppId", this.SubAppId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy