Class Attachment


  • public class Attachment
    extends Object
    Attachment
    • Constructor Detail

      • Attachment

        public Attachment()
    • Method Detail

      • attachmentID

        public Attachment attachmentID​(UUID attachmentID)
        Unique ID for the file
        Parameters:
        attachmentID - UUID
        Returns:
        Attachment
      • getAttachmentID

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

        public void setAttachmentID​(UUID attachmentID)
        Unique ID for the file
        Parameters:
        attachmentID - UUID
      • fileName

        public Attachment fileName​(String fileName)
        Name of the file
        Parameters:
        fileName - String
        Returns:
        Attachment
      • getFileName

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

        public void setFileName​(String fileName)
        Name of the file
        Parameters:
        fileName - String
      • url

        public Attachment url​(String url)
        URL to the file on xero.com
        Parameters:
        url - String
        Returns:
        Attachment
      • getUrl

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

        public void setUrl​(String url)
        URL to the file on xero.com
        Parameters:
        url - String
      • mimeType

        public Attachment mimeType​(String mimeType)
        Type of file
        Parameters:
        mimeType - String
        Returns:
        Attachment
      • getMimeType

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

        public void setMimeType​(String mimeType)
        Type of file
        Parameters:
        mimeType - String
      • contentLength

        public Attachment contentLength​(Integer contentLength)
        Length of the file content
        Parameters:
        contentLength - Integer
        Returns:
        Attachment
      • getContentLength

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

        public void setContentLength​(Integer contentLength)
        Length of the file content
        Parameters:
        contentLength - Integer
      • includeOnline

        public Attachment includeOnline​(Boolean includeOnline)
        Include the file with the online invoice
        Parameters:
        includeOnline - Boolean
        Returns:
        Attachment
      • getIncludeOnline

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

        public void setIncludeOnline​(Boolean includeOnline)
        Include the file with the online invoice
        Parameters:
        includeOnline - Boolean
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object