Package com.zendesk.sdk.model.request
Class Attachment
- java.lang.Object
-
- com.zendesk.sdk.model.request.Attachment
-
public class Attachment extends java.lang.Object
This is a model class for an Attachment object.- See Also:
- Attachments
-
-
Constructor Summary
Constructors Constructor and Description Attachment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.String
getContentType()
Gets the content type of the attachment, e.g.java.lang.String
getContentUrl()
Gets the URL at which the attachment can be downloadedjava.lang.String
getFileName()
Gets the file name of the attachmentjava.lang.Long
getId()
Gets the ID of the attachmentjava.lang.Long
getSize()
Gets the size of the attachment in bytesjava.util.List<Attachment>
getThumbnails()
Gets the thumbnails of the attachmentjava.lang.String
getUrl()
Gets the API URL of the attachment
-
-
-
Method Detail
-
getUrl
public java.lang.String getUrl()
Gets the API URL of the attachment- Returns:
- the API URL of the attachment
-
getId
public java.lang.Long getId()
Gets the ID of the attachment- Returns:
- the ID of the attachment
-
getFileName
public java.lang.String getFileName()
Gets the file name of the attachment- Returns:
- the file name of the attachment
-
getContentUrl
public java.lang.String getContentUrl()
Gets the URL at which the attachment can be downloaded- Returns:
- the URL at which the attachment can be downloaded
-
getContentType
public java.lang.String getContentType()
Gets the content type of the attachment, e.g. image/png- Returns:
- the content type of the attachment, e.g. image/png
-
getSize
public java.lang.Long getSize()
Gets the size of the attachment in bytes- Returns:
- the size of the attachment in bytes
-
getThumbnails
public java.util.List<Attachment> getThumbnails()
Gets the thumbnails of the attachment- Returns:
- the thumbnails of the attachment
-
-