Class Attachment

java.lang.Object
com.atlassian.jira.rest.client.api.domain.Attachment
All Implemented Interfaces:
AddressableEntity

public class Attachment extends Object implements AddressableEntity
A file attachment attached to an issue
Since:
v0.1
  • Constructor Details

    • Attachment

      public Attachment(URI self, String filename, BasicUser author, org.joda.time.DateTime creationDate, int size, String mimeType, URI contentUri, URI thumbnailUri)
  • Method Details

    • hasThumbnail

      public boolean hasThumbnail()
    • getSelf

      public URI getSelf()
      Specified by:
      getSelf in interface AddressableEntity
      Returns:
      URI to this resource or (usually) its complete version - when partial representation is embedded in other resources
    • getFilename

      public String getFilename()
    • getAuthor

      public BasicUser getAuthor()
    • getCreationDate

      public org.joda.time.DateTime getCreationDate()
    • getSize

      public int getSize()
    • getMimeType

      public String getMimeType()
    • getContentUri

      public URI getContentUri()
    • getThumbnailUri

      @Nullable public URI getThumbnailUri()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object