public class Attachment extends Object
| Constructor and Description |
|---|
Attachment() |
| Modifier and Type | Method and Description |
|---|---|
Attachment |
attachmentID(UUID attachmentID) |
Attachment |
contentLength(BigDecimal contentLength) |
boolean |
equals(Object o) |
Attachment |
fileName(String fileName) |
UUID |
getAttachmentID()
Unique ID for the file
|
BigDecimal |
getContentLength()
Length of the file content
|
String |
getFileName()
Name of the file
|
Boolean |
getIncludeOnline()
Include the file with the online invoice
|
String |
getMimeType()
Type of file
|
String |
getUrl()
URL to the file on xero.com
|
int |
hashCode() |
Attachment |
includeOnline(Boolean includeOnline) |
Attachment |
mimeType(String mimeType) |
void |
setAttachmentID(UUID attachmentID) |
void |
setContentLength(BigDecimal contentLength) |
void |
setFileName(String fileName) |
void |
setIncludeOnline(Boolean includeOnline) |
void |
setMimeType(String mimeType) |
void |
setUrl(String url) |
String |
toString() |
Attachment |
url(String url) |
public Attachment attachmentID(UUID attachmentID)
public UUID getAttachmentID()
public void setAttachmentID(UUID attachmentID)
public Attachment fileName(String fileName)
public String getFileName()
public void setFileName(String fileName)
public Attachment url(String url)
public String getUrl()
public void setUrl(String url)
public Attachment mimeType(String mimeType)
public String getMimeType()
public void setMimeType(String mimeType)
public Attachment contentLength(BigDecimal contentLength)
public BigDecimal getContentLength()
public void setContentLength(BigDecimal contentLength)
public Attachment includeOnline(Boolean includeOnline)
public Boolean getIncludeOnline()
public void setIncludeOnline(Boolean includeOnline)
Copyright © 2019. All rights reserved.