Interface Attachment

All Known Implementing Classes:
AttachmentWrapper

public interface Attachment
Metadata for a file attachment in the Equinix Customer Portal (Attachments v1 attachment).
  • Method Details

    • getAttachmentId

      String getAttachmentId()
      Returns the unique identifier of the attachment.
      Returns:
      the attachment id (UUID)
    • getAttachmentName

      String getAttachmentName()
      Returns the file name of the attachment.
      Returns:
      the attachment name
    • getAttachmentType

      String getAttachmentType()
      Returns the document extension / content type of the attachment.
      Returns:
      the attachment type
    • getAttachmentSize

      Long getAttachmentSize()
      Returns the size of the attachment in bytes.
      Returns:
      the attachment size
    • getCreatedDate

      String getCreatedDate()
      Returns the created date of the attachment.
      Returns:
      the created date
    • getCreatedBy

      String getCreatedBy()
      Returns the user key of the author of the attachment.
      Returns:
      the creator
    • getLastUpdatedDate

      String getLastUpdatedDate()
      Returns the last accessed/updated date of the attachment.
      Returns:
      the last updated date
    • delete

      Boolean delete()
      Deletes this attachment.
      Returns:
      true if the attachment was deleted
    • refresh

      void refresh()
      Refreshes this attachment's metadata from the API.