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:
  • Constructor Details

    • ContentAttachment

      public ContentAttachment()
  • Method Details

    • 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)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object