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 Attachment content after Base64 encoding.
|
String |
getFileName()
Get Attachment name, which cannot exceed 255 characters.
|
void |
setContent(String Content)
Set Attachment content after Base64 encoding.
|
void |
setFileName(String FileName)
Set Attachment name, which cannot exceed 255 characters.
|
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
- Attachment name, which cannot exceed 255 characters. Some attachment types are not supported. For details, see [Attachment Types](https://intl.cloud.tencent.com/document/product/1288/51951?from_cn_redirect=1).public String getContent()
public void setContent(String Content)
Content
- Attachment content after Base64 encoding. A single attachment cannot exceed 4 MB. Note: Tencent Cloud APIs require that a request packet should not exceed 8 MB. If you are sending multiple attachments, the total size of these attachments cannot exceed 8 MB.Copyright © 2022. All rights reserved.