
com.tencentcloudapi.vod.v20180717.models.ModifySuperPlayerConfigRequest 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 ModifySuperPlayerConfigRequest extends AbstractModel{
/**
* Player configuration name.
*/
@SerializedName("Name")
@Expose
private String Name;
/**
* 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;
/**
* Type of audio/video played. Valid values:
AdaptiveDynamicStreaming
Transcode
Original
*/
@SerializedName("AudioVideoType")
@Expose
private String AudioVideoType;
/**
* Switch of DRM-protected adaptive bitstream playback:
ON: enabled, indicating to play back only output adaptive bitstreams protected by DRM;
OFF: disabled, indicating to play back unencrypted output adaptive bitstreams.
*/
@SerializedName("DrmSwitch")
@Expose
private String DrmSwitch;
/**
* ID of the unencrypted adaptive bitrate streaming template that allows output.
*/
@SerializedName("AdaptiveDynamicStreamingDefinition")
@Expose
private Long AdaptiveDynamicStreamingDefinition;
/**
* Content of the DRM-protected adaptive bitrate streaming template that allows output.
*/
@SerializedName("DrmStreamingsInfo")
@Expose
private DrmStreamingsInfoForUpdate DrmStreamingsInfo;
/**
* ID of the transcoding template allowed for playback
*/
@SerializedName("TranscodeDefinition")
@Expose
private Long TranscodeDefinition;
/**
* ID of the image sprite generating template that allows output.
*/
@SerializedName("ImageSpriteDefinition")
@Expose
private Long ImageSpriteDefinition;
/**
* Display name of player for substreams with different resolutions.
*/
@SerializedName("ResolutionNames")
@Expose
private ResolutionNameInfo [] ResolutionNames;
/**
* Domain name used for playback. If its value is `Default`, the domain name configured in [Default Distribution Configuration](https://intl.cloud.tencent.com/document/product/266/33373?from_cn_redirect=1) will be used.
*/
@SerializedName("Domain")
@Expose
private String Domain;
/**
* Scheme used for playback. Valid values:
Default: the scheme configured in [Default Distribution Configuration](https://intl.cloud.tencent.com/document/product/266/33373?from_cn_redirect=1) will be used;
HTTP;
HTTPS.
*/
@SerializedName("Scheme")
@Expose
private String Scheme;
/**
* Template description. Length limit: 256 characters.
*/
@SerializedName("Comment")
@Expose
private String Comment;
/**
* Get Player configuration name.
* @return Name Player configuration name.
*/
public String getName() {
return this.Name;
}
/**
* Set Player configuration name.
* @param Name Player configuration name.
*/
public void setName(String Name) {
this.Name = Name;
}
/**
* 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 Type of audio/video played. Valid values:
AdaptiveDynamicStreaming
Transcode
Original
* @return AudioVideoType Type of audio/video played. Valid values:
AdaptiveDynamicStreaming
Transcode
Original
*/
public String getAudioVideoType() {
return this.AudioVideoType;
}
/**
* Set Type of audio/video played. Valid values:
AdaptiveDynamicStreaming
Transcode
Original
* @param AudioVideoType Type of audio/video played. Valid values:
AdaptiveDynamicStreaming
Transcode
Original
*/
public void setAudioVideoType(String AudioVideoType) {
this.AudioVideoType = AudioVideoType;
}
/**
* Get Switch of DRM-protected adaptive bitstream playback:
ON: enabled, indicating to play back only output adaptive bitstreams protected by DRM;
OFF: disabled, indicating to play back unencrypted output adaptive bitstreams.
* @return DrmSwitch Switch of DRM-protected adaptive bitstream playback:
ON: enabled, indicating to play back only output adaptive bitstreams protected by DRM;
OFF: disabled, indicating to play back unencrypted output adaptive bitstreams.
*/
public String getDrmSwitch() {
return this.DrmSwitch;
}
/**
* Set Switch of DRM-protected adaptive bitstream playback:
ON: enabled, indicating to play back only output adaptive bitstreams protected by DRM;
OFF: disabled, indicating to play back unencrypted output adaptive bitstreams.
* @param DrmSwitch Switch of DRM-protected adaptive bitstream playback:
ON: enabled, indicating to play back only output adaptive bitstreams protected by DRM;
OFF: disabled, indicating to play back unencrypted output adaptive bitstreams.
*/
public void setDrmSwitch(String DrmSwitch) {
this.DrmSwitch = DrmSwitch;
}
/**
* Get ID of the unencrypted adaptive bitrate streaming template that allows output.
* @return AdaptiveDynamicStreamingDefinition ID of the unencrypted adaptive bitrate streaming template that allows output.
*/
public Long getAdaptiveDynamicStreamingDefinition() {
return this.AdaptiveDynamicStreamingDefinition;
}
/**
* Set ID of the unencrypted adaptive bitrate streaming template that allows output.
* @param AdaptiveDynamicStreamingDefinition ID of the unencrypted adaptive bitrate streaming template that allows output.
*/
public void setAdaptiveDynamicStreamingDefinition(Long AdaptiveDynamicStreamingDefinition) {
this.AdaptiveDynamicStreamingDefinition = AdaptiveDynamicStreamingDefinition;
}
/**
* Get Content of the DRM-protected adaptive bitrate streaming template that allows output.
* @return DrmStreamingsInfo Content of the DRM-protected adaptive bitrate streaming template that allows output.
*/
public DrmStreamingsInfoForUpdate getDrmStreamingsInfo() {
return this.DrmStreamingsInfo;
}
/**
* Set Content of the DRM-protected adaptive bitrate streaming template that allows output.
* @param DrmStreamingsInfo Content of the DRM-protected adaptive bitrate streaming template that allows output.
*/
public void setDrmStreamingsInfo(DrmStreamingsInfoForUpdate DrmStreamingsInfo) {
this.DrmStreamingsInfo = DrmStreamingsInfo;
}
/**
* Get ID of the transcoding template allowed for playback
* @return TranscodeDefinition ID of the transcoding template allowed for playback
*/
public Long getTranscodeDefinition() {
return this.TranscodeDefinition;
}
/**
* Set ID of the transcoding template allowed for playback
* @param TranscodeDefinition ID of the transcoding template allowed for playback
*/
public void setTranscodeDefinition(Long TranscodeDefinition) {
this.TranscodeDefinition = TranscodeDefinition;
}
/**
* Get ID of the image sprite generating template that allows output.
* @return ImageSpriteDefinition ID of the image sprite generating template that allows output.
*/
public Long getImageSpriteDefinition() {
return this.ImageSpriteDefinition;
}
/**
* Set ID of the image sprite generating template that allows output.
* @param ImageSpriteDefinition ID of the image sprite generating template that allows output.
*/
public void setImageSpriteDefinition(Long ImageSpriteDefinition) {
this.ImageSpriteDefinition = ImageSpriteDefinition;
}
/**
* Get Display name of player for substreams with different resolutions.
* @return ResolutionNames Display name of player for substreams with different resolutions.
*/
public ResolutionNameInfo [] getResolutionNames() {
return this.ResolutionNames;
}
/**
* Set Display name of player for substreams with different resolutions.
* @param ResolutionNames Display name of player for substreams with different resolutions.
*/
public void setResolutionNames(ResolutionNameInfo [] ResolutionNames) {
this.ResolutionNames = ResolutionNames;
}
/**
* Get Domain name used for playback. If its value is `Default`, the domain name configured in [Default Distribution Configuration](https://intl.cloud.tencent.com/document/product/266/33373?from_cn_redirect=1) will be used.
* @return Domain Domain name used for playback. If its value is `Default`, the domain name configured in [Default Distribution Configuration](https://intl.cloud.tencent.com/document/product/266/33373?from_cn_redirect=1) will be used.
*/
public String getDomain() {
return this.Domain;
}
/**
* Set Domain name used for playback. If its value is `Default`, the domain name configured in [Default Distribution Configuration](https://intl.cloud.tencent.com/document/product/266/33373?from_cn_redirect=1) will be used.
* @param Domain Domain name used for playback. If its value is `Default`, the domain name configured in [Default Distribution Configuration](https://intl.cloud.tencent.com/document/product/266/33373?from_cn_redirect=1) will be used.
*/
public void setDomain(String Domain) {
this.Domain = Domain;
}
/**
* Get Scheme used for playback. Valid values:
Default: the scheme configured in [Default Distribution Configuration](https://intl.cloud.tencent.com/document/product/266/33373?from_cn_redirect=1) will be used;
HTTP;
HTTPS.
* @return Scheme Scheme used for playback. Valid values:
Default: the scheme configured in [Default Distribution Configuration](https://intl.cloud.tencent.com/document/product/266/33373?from_cn_redirect=1) will be used;
HTTP;
HTTPS.
*/
public String getScheme() {
return this.Scheme;
}
/**
* Set Scheme used for playback. Valid values:
Default: the scheme configured in [Default Distribution Configuration](https://intl.cloud.tencent.com/document/product/266/33373?from_cn_redirect=1) will be used;
HTTP;
HTTPS.
* @param Scheme Scheme used for playback. Valid values:
Default: the scheme configured in [Default Distribution Configuration](https://intl.cloud.tencent.com/document/product/266/33373?from_cn_redirect=1) will be used;
HTTP;
HTTPS.
*/
public void setScheme(String Scheme) {
this.Scheme = Scheme;
}
/**
* 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 ModifySuperPlayerConfigRequest() {
}
/**
* 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 ModifySuperPlayerConfigRequest(ModifySuperPlayerConfigRequest source) {
if (source.Name != null) {
this.Name = new String(source.Name);
}
if (source.SubAppId != null) {
this.SubAppId = new Long(source.SubAppId);
}
if (source.AudioVideoType != null) {
this.AudioVideoType = new String(source.AudioVideoType);
}
if (source.DrmSwitch != null) {
this.DrmSwitch = new String(source.DrmSwitch);
}
if (source.AdaptiveDynamicStreamingDefinition != null) {
this.AdaptiveDynamicStreamingDefinition = new Long(source.AdaptiveDynamicStreamingDefinition);
}
if (source.DrmStreamingsInfo != null) {
this.DrmStreamingsInfo = new DrmStreamingsInfoForUpdate(source.DrmStreamingsInfo);
}
if (source.TranscodeDefinition != null) {
this.TranscodeDefinition = new Long(source.TranscodeDefinition);
}
if (source.ImageSpriteDefinition != null) {
this.ImageSpriteDefinition = new Long(source.ImageSpriteDefinition);
}
if (source.ResolutionNames != null) {
this.ResolutionNames = new ResolutionNameInfo[source.ResolutionNames.length];
for (int i = 0; i < source.ResolutionNames.length; i++) {
this.ResolutionNames[i] = new ResolutionNameInfo(source.ResolutionNames[i]);
}
}
if (source.Domain != null) {
this.Domain = new String(source.Domain);
}
if (source.Scheme != null) {
this.Scheme = new String(source.Scheme);
}
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 + "Name", this.Name);
this.setParamSimple(map, prefix + "SubAppId", this.SubAppId);
this.setParamSimple(map, prefix + "AudioVideoType", this.AudioVideoType);
this.setParamSimple(map, prefix + "DrmSwitch", this.DrmSwitch);
this.setParamSimple(map, prefix + "AdaptiveDynamicStreamingDefinition", this.AdaptiveDynamicStreamingDefinition);
this.setParamObj(map, prefix + "DrmStreamingsInfo.", this.DrmStreamingsInfo);
this.setParamSimple(map, prefix + "TranscodeDefinition", this.TranscodeDefinition);
this.setParamSimple(map, prefix + "ImageSpriteDefinition", this.ImageSpriteDefinition);
this.setParamArrayObj(map, prefix + "ResolutionNames.", this.ResolutionNames);
this.setParamSimple(map, prefix + "Domain", this.Domain);
this.setParamSimple(map, prefix + "Scheme", this.Scheme);
this.setParamSimple(map, prefix + "Comment", this.Comment);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy