Class Attachment

java.lang.Object
com.xero.models.accounting.Attachment

public class Attachment
extends Object
Attachment
  • Constructor Details

    • Attachment

      public Attachment()
  • Method Details

    • attachmentID

      public Attachment attachmentID​(UUID attachmentID)
    • getAttachmentID

      public UUID getAttachmentID()
      Unique ID for the file
      Returns:
      attachmentID
    • setAttachmentID

      public void setAttachmentID​(UUID attachmentID)
    • fileName

      public Attachment fileName​(String fileName)
    • getFileName

      public String getFileName()
      Name of the file
      Returns:
      fileName
    • setFileName

      public void setFileName​(String fileName)
    • url

      public Attachment url​(String url)
    • getUrl

      public String getUrl()
      URL to the file on xero.com
      Returns:
      url
    • setUrl

      public void setUrl​(String url)
    • mimeType

      public Attachment mimeType​(String mimeType)
    • getMimeType

      public String getMimeType()
      Type of file
      Returns:
      mimeType
    • setMimeType

      public void setMimeType​(String mimeType)
    • contentLength

      public Attachment contentLength​(Integer contentLength)
    • getContentLength

      public Integer getContentLength()
      Length of the file content
      Returns:
      contentLength
    • setContentLength

      public void setContentLength​(Integer contentLength)
    • includeOnline

      public Attachment includeOnline​(Boolean includeOnline)
    • getIncludeOnline

      public Boolean getIncludeOnline()
      Include the file with the online invoice
      Returns:
      includeOnline
    • setIncludeOnline

      public void setIncludeOnline​(Boolean includeOnline)
    • 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