Package com.xero.models.accounting
Class Attachment
- java.lang.Object
-
- com.xero.models.accounting.Attachment
-
public class Attachment extends Object
Attachment
-
-
Constructor Summary
Constructors Constructor Description Attachment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttachmentattachmentID(UUID attachmentID)Unique ID for the fileAttachmentcontentLength(Integer contentLength)Length of the file contentbooleanequals(Object o)AttachmentfileName(String fileName)Name of the fileUUIDgetAttachmentID()Unique ID for the fileIntegergetContentLength()Length of the file contentStringgetFileName()Name of the fileBooleangetIncludeOnline()Include the file with the online invoiceStringgetMimeType()Type of fileStringgetUrl()URL to the file on xero.cominthashCode()AttachmentincludeOnline(Boolean includeOnline)Include the file with the online invoiceAttachmentmimeType(String mimeType)Type of filevoidsetAttachmentID(UUID attachmentID)Unique ID for the filevoidsetContentLength(Integer contentLength)Length of the file contentvoidsetFileName(String fileName)Name of the filevoidsetIncludeOnline(Boolean includeOnline)Include the file with the online invoicevoidsetMimeType(String mimeType)Type of filevoidsetUrl(String url)URL to the file on xero.comStringtoString()Attachmenturl(String url)URL to the file on xero.com
-
-
-
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
-
-