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

com.tencentcloudapi.ses.v20201002.models.Attachment 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.ses.v20201002.models;

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

public class Attachment extends AbstractModel{

    /**
    * 附件名称,最大支持255个字符长度,不支持部分附件类型,详情请参考[附件类型](https://cloud.tencent.com/document/product/1288/51951)。
    */
    @SerializedName("FileName")
    @Expose
    private String FileName;

    /**
    * base64之后的附件内容,您可以发送的附件大小上限为5 MB。 注意:腾讯云api目前要求请求包大小不得超过10 MB。如果您要发送多个附件,那么这些附件的总大小不能超过10 MB。
    */
    @SerializedName("Content")
    @Expose
    private String Content;

    /**
     * Get 附件名称,最大支持255个字符长度,不支持部分附件类型,详情请参考[附件类型](https://cloud.tencent.com/document/product/1288/51951)。 
     * @return FileName 附件名称,最大支持255个字符长度,不支持部分附件类型,详情请参考[附件类型](https://cloud.tencent.com/document/product/1288/51951)。
     */
    public String getFileName() {
        return this.FileName;
    }

    /**
     * Set 附件名称,最大支持255个字符长度,不支持部分附件类型,详情请参考[附件类型](https://cloud.tencent.com/document/product/1288/51951)。
     * @param FileName 附件名称,最大支持255个字符长度,不支持部分附件类型,详情请参考[附件类型](https://cloud.tencent.com/document/product/1288/51951)。
     */
    public void setFileName(String FileName) {
        this.FileName = FileName;
    }

    /**
     * Get base64之后的附件内容,您可以发送的附件大小上限为5 MB。 注意:腾讯云api目前要求请求包大小不得超过10 MB。如果您要发送多个附件,那么这些附件的总大小不能超过10 MB。 
     * @return Content base64之后的附件内容,您可以发送的附件大小上限为5 MB。 注意:腾讯云api目前要求请求包大小不得超过10 MB。如果您要发送多个附件,那么这些附件的总大小不能超过10 MB。
     */
    public String getContent() {
        return this.Content;
    }

    /**
     * Set base64之后的附件内容,您可以发送的附件大小上限为5 MB。 注意:腾讯云api目前要求请求包大小不得超过10 MB。如果您要发送多个附件,那么这些附件的总大小不能超过10 MB。
     * @param Content base64之后的附件内容,您可以发送的附件大小上限为5 MB。 注意:腾讯云api目前要求请求包大小不得超过10 MB。如果您要发送多个附件,那么这些附件的总大小不能超过10 MB。
     */
    public void setContent(String Content) {
        this.Content = Content;
    }

    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "FileName", this.FileName);
        this.setParamSimple(map, prefix + "Content", this.Content);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy