public class Attachment extends AbstractModel
Constructor and Description |
---|
Attachment() |
Attachment(Attachment source)
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.
|
Modifier and Type | Method and Description |
---|---|
String |
getContent()
Get base64之后的附件内容,您可以发送的附件大小上限为5 MB。 注意:腾讯云api目前要求请求包大小不得超过10 MB。如果您要发送多个附件,那么这些附件的总大小不能超过10 MB。
|
String |
getFileName()
Get 附件名称,最大支持255个字符长度,不支持部分附件类型,详情请参考[附件类型](https://cloud.tencent.com/document/product/1288/51951)。
|
void |
setContent(String Content)
Set base64之后的附件内容,您可以发送的附件大小上限为5 MB。 注意:腾讯云api目前要求请求包大小不得超过10 MB。如果您要发送多个附件,那么这些附件的总大小不能超过10 MB。
|
void |
setFileName(String FileName)
Set 附件名称,最大支持255个字符长度,不支持部分附件类型,详情请参考[附件类型](https://cloud.tencent.com/document/product/1288/51951)。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public Attachment()
public Attachment(Attachment source)
public String getFileName()
public void setFileName(String FileName)
FileName
- 附件名称,最大支持255个字符长度,不支持部分附件类型,详情请参考[附件类型](https://cloud.tencent.com/document/product/1288/51951)。public String getContent()
public void setContent(String Content)
Content
- base64之后的附件内容,您可以发送的附件大小上限为5 MB。 注意:腾讯云api目前要求请求包大小不得超过10 MB。如果您要发送多个附件,那么这些附件的总大小不能超过10 MB。Copyright © 2021. All rights reserved.