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

com.tencentcloudapi.cme.v20191029.models.MaterialInfo 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.cme.v20191029.models;

import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class MaterialInfo extends AbstractModel{

    /**
    * 媒体基本信息。
    */
    @SerializedName("BasicInfo")
    @Expose
    private MaterialBasicInfo BasicInfo;

    /**
    * 视频媒体信息。
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("VideoMaterial")
    @Expose
    private VideoMaterial VideoMaterial;

    /**
    * 音频媒体信息。
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("AudioMaterial")
    @Expose
    private AudioMaterial AudioMaterial;

    /**
    * 图片媒体信息。
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("ImageMaterial")
    @Expose
    private ImageMaterial ImageMaterial;

    /**
    * 链接媒体信息。
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("LinkMaterial")
    @Expose
    private LinkMaterial LinkMaterial;

    /**
    * 模板媒体信息。
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("VideoEditTemplateMaterial")
    @Expose
    private VideoEditTemplateMaterial VideoEditTemplateMaterial;

    /**
    * 其他类型媒体信息。
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("OtherMaterial")
    @Expose
    private OtherMaterial OtherMaterial;

    /**
     * Get 媒体基本信息。 
     * @return BasicInfo 媒体基本信息。
     */
    public MaterialBasicInfo getBasicInfo() {
        return this.BasicInfo;
    }

    /**
     * Set 媒体基本信息。
     * @param BasicInfo 媒体基本信息。
     */
    public void setBasicInfo(MaterialBasicInfo BasicInfo) {
        this.BasicInfo = BasicInfo;
    }

    /**
     * Get 视频媒体信息。
注意:此字段可能返回 null,表示取不到有效值。 
     * @return VideoMaterial 视频媒体信息。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public VideoMaterial getVideoMaterial() {
        return this.VideoMaterial;
    }

    /**
     * Set 视频媒体信息。
注意:此字段可能返回 null,表示取不到有效值。
     * @param VideoMaterial 视频媒体信息。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setVideoMaterial(VideoMaterial VideoMaterial) {
        this.VideoMaterial = VideoMaterial;
    }

    /**
     * Get 音频媒体信息。
注意:此字段可能返回 null,表示取不到有效值。 
     * @return AudioMaterial 音频媒体信息。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public AudioMaterial getAudioMaterial() {
        return this.AudioMaterial;
    }

    /**
     * Set 音频媒体信息。
注意:此字段可能返回 null,表示取不到有效值。
     * @param AudioMaterial 音频媒体信息。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setAudioMaterial(AudioMaterial AudioMaterial) {
        this.AudioMaterial = AudioMaterial;
    }

    /**
     * Get 图片媒体信息。
注意:此字段可能返回 null,表示取不到有效值。 
     * @return ImageMaterial 图片媒体信息。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public ImageMaterial getImageMaterial() {
        return this.ImageMaterial;
    }

    /**
     * Set 图片媒体信息。
注意:此字段可能返回 null,表示取不到有效值。
     * @param ImageMaterial 图片媒体信息。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setImageMaterial(ImageMaterial ImageMaterial) {
        this.ImageMaterial = ImageMaterial;
    }

    /**
     * Get 链接媒体信息。
注意:此字段可能返回 null,表示取不到有效值。 
     * @return LinkMaterial 链接媒体信息。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public LinkMaterial getLinkMaterial() {
        return this.LinkMaterial;
    }

    /**
     * Set 链接媒体信息。
注意:此字段可能返回 null,表示取不到有效值。
     * @param LinkMaterial 链接媒体信息。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setLinkMaterial(LinkMaterial LinkMaterial) {
        this.LinkMaterial = LinkMaterial;
    }

    /**
     * Get 模板媒体信息。
注意:此字段可能返回 null,表示取不到有效值。 
     * @return VideoEditTemplateMaterial 模板媒体信息。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public VideoEditTemplateMaterial getVideoEditTemplateMaterial() {
        return this.VideoEditTemplateMaterial;
    }

    /**
     * Set 模板媒体信息。
注意:此字段可能返回 null,表示取不到有效值。
     * @param VideoEditTemplateMaterial 模板媒体信息。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setVideoEditTemplateMaterial(VideoEditTemplateMaterial VideoEditTemplateMaterial) {
        this.VideoEditTemplateMaterial = VideoEditTemplateMaterial;
    }

    /**
     * Get 其他类型媒体信息。
注意:此字段可能返回 null,表示取不到有效值。 
     * @return OtherMaterial 其他类型媒体信息。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public OtherMaterial getOtherMaterial() {
        return this.OtherMaterial;
    }

    /**
     * Set 其他类型媒体信息。
注意:此字段可能返回 null,表示取不到有效值。
     * @param OtherMaterial 其他类型媒体信息。
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setOtherMaterial(OtherMaterial OtherMaterial) {
        this.OtherMaterial = OtherMaterial;
    }

    public MaterialInfo() {
    }

    /**
     * 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 MaterialInfo(MaterialInfo source) {
        if (source.BasicInfo != null) {
            this.BasicInfo = new MaterialBasicInfo(source.BasicInfo);
        }
        if (source.VideoMaterial != null) {
            this.VideoMaterial = new VideoMaterial(source.VideoMaterial);
        }
        if (source.AudioMaterial != null) {
            this.AudioMaterial = new AudioMaterial(source.AudioMaterial);
        }
        if (source.ImageMaterial != null) {
            this.ImageMaterial = new ImageMaterial(source.ImageMaterial);
        }
        if (source.LinkMaterial != null) {
            this.LinkMaterial = new LinkMaterial(source.LinkMaterial);
        }
        if (source.VideoEditTemplateMaterial != null) {
            this.VideoEditTemplateMaterial = new VideoEditTemplateMaterial(source.VideoEditTemplateMaterial);
        }
        if (source.OtherMaterial != null) {
            this.OtherMaterial = new OtherMaterial(source.OtherMaterial);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamObj(map, prefix + "BasicInfo.", this.BasicInfo);
        this.setParamObj(map, prefix + "VideoMaterial.", this.VideoMaterial);
        this.setParamObj(map, prefix + "AudioMaterial.", this.AudioMaterial);
        this.setParamObj(map, prefix + "ImageMaterial.", this.ImageMaterial);
        this.setParamObj(map, prefix + "LinkMaterial.", this.LinkMaterial);
        this.setParamObj(map, prefix + "VideoEditTemplateMaterial.", this.VideoEditTemplateMaterial);
        this.setParamObj(map, prefix + "OtherMaterial.", this.OtherMaterial);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy