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

com.tencentcloudapi.vod.v20180717.models.PlayerConfig 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 PlayerConfig extends AbstractModel{

    /**
    * 播放器配置名字。
    */
    @SerializedName("Name")
    @Expose
    private String Name;

    /**
    * 播放器配置类型,取值范围:
  • Preset:系统预置配置;
  • Custom:用户自定义配置。
  • */ @SerializedName("Type") @Expose private String Type; /** * 播放 DRM 保护的自适应码流开关:
  • ON:开启,表示仅播放 DRM 保护的自适应码流输出;
  • OFF:关闭,表示播放未加密的自适应码流输出。
  • */ @SerializedName("DrmSwitch") @Expose private String DrmSwitch; /** * 允许输出的未加密的自适应码流模板 ID。 */ @SerializedName("AdaptiveDynamicStreamingDefinition") @Expose private Long AdaptiveDynamicStreamingDefinition; /** * 允许输出的 DRM 自适应码流模板内容。 注意:此字段可能返回 null,表示取不到有效值。 */ @SerializedName("DrmStreamingsInfo") @Expose private DrmStreamingsInfo DrmStreamingsInfo; /** * 允许输出的雪碧图模板 ID。 */ @SerializedName("ImageSpriteDefinition") @Expose private Long ImageSpriteDefinition; /** * 播放器对不于不同分辨率的子流展示名字。 */ @SerializedName("ResolutionNameSet") @Expose private ResolutionNameInfo [] ResolutionNameSet; /** * 播放器配置创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F)。 */ @SerializedName("CreateTime") @Expose private String CreateTime; /** * 播放器配置最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F)。 */ @SerializedName("UpdateTime") @Expose private String UpdateTime; /** * 播放时使用的域名。值为 Default,表示使用[默认分发配置](https://cloud.tencent.com/document/product/266/33373)中的域名。 */ @SerializedName("Domain") @Expose private String Domain; /** * 播放时使用的 Scheme。取值范围:
  • Default:使用[默认分发配置](https://cloud.tencent.com/document/product/266/33373)中的 Scheme;
  • HTTP;
  • HTTPS。
  • */ @SerializedName("Scheme") @Expose private String Scheme; /** * 模板描述信息。 */ @SerializedName("Comment") @Expose private String Comment; /** * Get 播放器配置名字。 * @return Name 播放器配置名字。 */ public String getName() { return this.Name; } /** * Set 播放器配置名字。 * @param Name 播放器配置名字。 */ public void setName(String Name) { this.Name = Name; } /** * Get 播放器配置类型,取值范围:
  • Preset:系统预置配置;
  • Custom:用户自定义配置。
  • * @return Type 播放器配置类型,取值范围:
  • Preset:系统预置配置;
  • Custom:用户自定义配置。
  • */ public String getType() { return this.Type; } /** * Set 播放器配置类型,取值范围:
  • Preset:系统预置配置;
  • Custom:用户自定义配置。
  • * @param Type 播放器配置类型,取值范围:
  • Preset:系统预置配置;
  • Custom:用户自定义配置。
  • */ public void setType(String Type) { this.Type = Type; } /** * Get 播放 DRM 保护的自适应码流开关:
  • ON:开启,表示仅播放 DRM 保护的自适应码流输出;
  • OFF:关闭,表示播放未加密的自适应码流输出。
  • * @return DrmSwitch 播放 DRM 保护的自适应码流开关:
  • ON:开启,表示仅播放 DRM 保护的自适应码流输出;
  • OFF:关闭,表示播放未加密的自适应码流输出。
  • */ public String getDrmSwitch() { return this.DrmSwitch; } /** * Set 播放 DRM 保护的自适应码流开关:
  • ON:开启,表示仅播放 DRM 保护的自适应码流输出;
  • OFF:关闭,表示播放未加密的自适应码流输出。
  • * @param DrmSwitch 播放 DRM 保护的自适应码流开关:
  • ON:开启,表示仅播放 DRM 保护的自适应码流输出;
  • OFF:关闭,表示播放未加密的自适应码流输出。
  • */ public void setDrmSwitch(String DrmSwitch) { this.DrmSwitch = DrmSwitch; } /** * Get 允许输出的未加密的自适应码流模板 ID。 * @return AdaptiveDynamicStreamingDefinition 允许输出的未加密的自适应码流模板 ID。 */ public Long getAdaptiveDynamicStreamingDefinition() { return this.AdaptiveDynamicStreamingDefinition; } /** * Set 允许输出的未加密的自适应码流模板 ID。 * @param AdaptiveDynamicStreamingDefinition 允许输出的未加密的自适应码流模板 ID。 */ public void setAdaptiveDynamicStreamingDefinition(Long AdaptiveDynamicStreamingDefinition) { this.AdaptiveDynamicStreamingDefinition = AdaptiveDynamicStreamingDefinition; } /** * Get 允许输出的 DRM 自适应码流模板内容。 注意:此字段可能返回 null,表示取不到有效值。 * @return DrmStreamingsInfo 允许输出的 DRM 自适应码流模板内容。 注意:此字段可能返回 null,表示取不到有效值。 */ public DrmStreamingsInfo getDrmStreamingsInfo() { return this.DrmStreamingsInfo; } /** * Set 允许输出的 DRM 自适应码流模板内容。 注意:此字段可能返回 null,表示取不到有效值。 * @param DrmStreamingsInfo 允许输出的 DRM 自适应码流模板内容。 注意:此字段可能返回 null,表示取不到有效值。 */ public void setDrmStreamingsInfo(DrmStreamingsInfo DrmStreamingsInfo) { this.DrmStreamingsInfo = DrmStreamingsInfo; } /** * Get 允许输出的雪碧图模板 ID。 * @return ImageSpriteDefinition 允许输出的雪碧图模板 ID。 */ public Long getImageSpriteDefinition() { return this.ImageSpriteDefinition; } /** * Set 允许输出的雪碧图模板 ID。 * @param ImageSpriteDefinition 允许输出的雪碧图模板 ID。 */ public void setImageSpriteDefinition(Long ImageSpriteDefinition) { this.ImageSpriteDefinition = ImageSpriteDefinition; } /** * Get 播放器对不于不同分辨率的子流展示名字。 * @return ResolutionNameSet 播放器对不于不同分辨率的子流展示名字。 */ public ResolutionNameInfo [] getResolutionNameSet() { return this.ResolutionNameSet; } /** * Set 播放器对不于不同分辨率的子流展示名字。 * @param ResolutionNameSet 播放器对不于不同分辨率的子流展示名字。 */ public void setResolutionNameSet(ResolutionNameInfo [] ResolutionNameSet) { this.ResolutionNameSet = ResolutionNameSet; } /** * Get 播放器配置创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F)。 * @return CreateTime 播放器配置创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F)。 */ public String getCreateTime() { return this.CreateTime; } /** * Set 播放器配置创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F)。 * @param CreateTime 播放器配置创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F)。 */ public void setCreateTime(String CreateTime) { this.CreateTime = CreateTime; } /** * Get 播放器配置最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F)。 * @return UpdateTime 播放器配置最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F)。 */ public String getUpdateTime() { return this.UpdateTime; } /** * Set 播放器配置最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F)。 * @param UpdateTime 播放器配置最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F)。 */ public void setUpdateTime(String UpdateTime) { this.UpdateTime = UpdateTime; } /** * Get 播放时使用的域名。值为 Default,表示使用[默认分发配置](https://cloud.tencent.com/document/product/266/33373)中的域名。 * @return Domain 播放时使用的域名。值为 Default,表示使用[默认分发配置](https://cloud.tencent.com/document/product/266/33373)中的域名。 */ public String getDomain() { return this.Domain; } /** * Set 播放时使用的域名。值为 Default,表示使用[默认分发配置](https://cloud.tencent.com/document/product/266/33373)中的域名。 * @param Domain 播放时使用的域名。值为 Default,表示使用[默认分发配置](https://cloud.tencent.com/document/product/266/33373)中的域名。 */ public void setDomain(String Domain) { this.Domain = Domain; } /** * Get 播放时使用的 Scheme。取值范围:
  • Default:使用[默认分发配置](https://cloud.tencent.com/document/product/266/33373)中的 Scheme;
  • HTTP;
  • HTTPS。
  • * @return Scheme 播放时使用的 Scheme。取值范围:
  • Default:使用[默认分发配置](https://cloud.tencent.com/document/product/266/33373)中的 Scheme;
  • HTTP;
  • HTTPS。
  • */ public String getScheme() { return this.Scheme; } /** * Set 播放时使用的 Scheme。取值范围:
  • Default:使用[默认分发配置](https://cloud.tencent.com/document/product/266/33373)中的 Scheme;
  • HTTP;
  • HTTPS。
  • * @param Scheme 播放时使用的 Scheme。取值范围:
  • Default:使用[默认分发配置](https://cloud.tencent.com/document/product/266/33373)中的 Scheme;
  • HTTP;
  • HTTPS。
  • */ public void setScheme(String Scheme) { this.Scheme = Scheme; } /** * Get 模板描述信息。 * @return Comment 模板描述信息。 */ public String getComment() { return this.Comment; } /** * Set 模板描述信息。 * @param Comment 模板描述信息。 */ public void setComment(String Comment) { this.Comment = Comment; } public PlayerConfig() { } /** * 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 PlayerConfig(PlayerConfig source) { if (source.Name != null) { this.Name = new String(source.Name); } if (source.Type != null) { this.Type = new String(source.Type); } 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 DrmStreamingsInfo(source.DrmStreamingsInfo); } if (source.ImageSpriteDefinition != null) { this.ImageSpriteDefinition = new Long(source.ImageSpriteDefinition); } if (source.ResolutionNameSet != null) { this.ResolutionNameSet = new ResolutionNameInfo[source.ResolutionNameSet.length]; for (int i = 0; i < source.ResolutionNameSet.length; i++) { this.ResolutionNameSet[i] = new ResolutionNameInfo(source.ResolutionNameSet[i]); } } if (source.CreateTime != null) { this.CreateTime = new String(source.CreateTime); } if (source.UpdateTime != null) { this.UpdateTime = new String(source.UpdateTime); } 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 + "Type", this.Type); 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 + "ImageSpriteDefinition", this.ImageSpriteDefinition); this.setParamArrayObj(map, prefix + "ResolutionNameSet.", this.ResolutionNameSet); this.setParamSimple(map, prefix + "CreateTime", this.CreateTime); this.setParamSimple(map, prefix + "UpdateTime", this.UpdateTime); this.setParamSimple(map, prefix + "Domain", this.Domain); this.setParamSimple(map, prefix + "Scheme", this.Scheme); this.setParamSimple(map, prefix + "Comment", this.Comment); } }




    © 2015 - 2024 Weber Informatics LLC | Privacy Policy