Class ContentAttachment
- java.lang.Object
-
- cloud.genesys.webmessaging.sdk.model.ContentAttachment
-
- All Implemented Interfaces:
Serializable
public class ContentAttachment extends Object implements Serializable
Attachment content. Media template header image. Attachment object.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ContentAttachment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentAttachmentcontentSizeBytes(Double contentSizeBytes)Size in bytes of the attachment content.booleanequals(Object o)ContentAttachmentfilename(String filename)Suggested file name for attachment.DoublegetContentSizeBytes()StringgetFilename()StringgetId()MediaTypegetMediaType()StringgetMime()StringgetSha256()StringgetText()StringgetUrl()inthashCode()ContentAttachmentid(String id)Provider specific ID for attachment.ContentAttachmentmediaType(MediaType mediaType)The type of attachment this instance represents.ContentAttachmentmime(String mime)Attachment mime type (https://www.iana.org/assignments/media-types/media-types.xhtml).voidsetContentSizeBytes(Double contentSizeBytes)voidsetFilename(String filename)voidsetId(String id)voidsetMediaType(MediaType mediaType)voidsetMime(String mime)voidsetSha256(String sha256)voidsetText(String text)voidsetUrl(String url)ContentAttachmentsha256(String sha256)Secure hash of the attachment content.ContentAttachmenttext(String text)Text associated with attachment such as an image caption.StringtoString()ContentAttachmenturl(String url)URL of the attachment.
-
-
-
Method Detail
-
contentSizeBytes
public ContentAttachment contentSizeBytes(Double contentSizeBytes)
Size in bytes of the attachment content.
-
getContentSizeBytes
public Double getContentSizeBytes()
-
setContentSizeBytes
public void setContentSizeBytes(Double contentSizeBytes)
-
filename
public ContentAttachment filename(String filename)
Suggested file name for attachment.
-
getFilename
public String getFilename()
-
setFilename
public void setFilename(String filename)
-
id
public ContentAttachment id(String id)
Provider specific ID for attachment. For example, a LINE sticker ID.
-
getId
public String getId()
-
setId
public void setId(String id)
-
mediaType
public ContentAttachment mediaType(MediaType mediaType)
The type of attachment this instance represents.
-
getMediaType
public MediaType getMediaType()
-
setMediaType
public void setMediaType(MediaType mediaType)
-
mime
public ContentAttachment mime(String mime)
Attachment mime type (https://www.iana.org/assignments/media-types/media-types.xhtml).
-
getMime
public String getMime()
-
setMime
public void setMime(String mime)
-
sha256
public ContentAttachment sha256(String sha256)
Secure hash of the attachment content.
-
getSha256
public String getSha256()
-
setSha256
public void setSha256(String sha256)
-
text
public ContentAttachment text(String text)
Text associated with attachment such as an image caption.
-
getText
public String getText()
-
setText
public void setText(String text)
-
url
public ContentAttachment url(String url)
URL of the attachment.
-
getUrl
public String getUrl()
-
setUrl
public void setUrl(String url)
-
-