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-encoded attachment content.
|
String |
getFileName()
Get Attachment name, which cannot exceed 255 characters.
|
void |
setContent(String Content)
Set Base64-encoded attachment content.
|
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
- Base64-encoded attachment content. You can send attachments of up to 4 MB in the total size. Note: The TencentCloud API supports a request packet of up to 8 MB in size, and the size of the attachment content will increase by 1.5 times after Base64 encoding. Therefore, you need to keep the total size of all attachments below 4 MB. If the entire request exceeds 8 MB, the API will return an error.Copyright © 2023. All rights reserved.