Package com.zendesk.sdk.model.request
Class UploadResponse
- java.lang.Object
-
- com.zendesk.sdk.model.request.UploadResponse
-
public class UploadResponse extends java.lang.ObjectThis is a class model for a response for an uploaded Attachment. This object will be created byZendeskUploadProvider- See Also:
- Show Attachments API documentation
-
-
Constructor Summary
Constructors Constructor and Description UploadResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description AttachmentgetAttachment()Get aAttachmentas a response of an uploaded filejava.util.DategetExpiresAt()Gets the date that the token expires atjava.lang.StringgetToken()Gets the token associated with the uploaded file.
-
-
-
Method Detail
-
getToken
public java.lang.String getToken()
Gets the token associated with the uploaded file. Needed for attaching uploads to comments.- Returns:
- the attachment token
-
getExpiresAt
public java.util.Date getExpiresAt()
Gets the date that the token expires at- Returns:
- the date that the token expires at
-
getAttachment
public Attachment getAttachment()
Get aAttachmentas a response of an uploaded file- Returns:
- The attachment
-
-