Package com.xero.models.file
Class Association
java.lang.Object
com.xero.models.file.Association
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe unique identifier of the fileThe unique identifier of the filegetName()The name of the associated file.Get objectGroupThe identifier of the object that the file is being associated with (e.g.Get objectTypeBoolean flag to determines whether the file is sent with the document it is attached to on client facing communications.getSize()The size of the associated file in bytes.inthashCode()The name of the associated file.objectGroup(ObjectGroup objectGroup) objectGroupThe identifier of the object that the file is being associated with (e.g.objectType(ObjectType objectType) objectTypesendWithObject(Boolean sendWithObject) Boolean flag to determines whether the file is sent with the document it is attached to on client facing communications.voidThe unique identifier of the filevoidThe name of the associated file.voidsetObjectGroup(ObjectGroup objectGroup) objectGroupvoidsetObjectId(UUID objectId) The identifier of the object that the file is being associated with (e.g.voidsetObjectType(ObjectType objectType) objectTypevoidsetSendWithObject(Boolean sendWithObject) Boolean flag to determines whether the file is sent with the document it is attached to on client facing communications.voidThe size of the associated file in bytes.The size of the associated file in bytes.toString()
-
Constructor Details
-
Association
public Association()
-
-
Method Details
-
sendWithObject
Boolean flag to determines whether the file is sent with the document it is attached to on client facing communications. Note- The SendWithObject element is only returned when using /Associations/{ObjectId} endpoint.- Parameters:
sendWithObject- Boolean- Returns:
- Association
-
getSendWithObject
Boolean flag to determines whether the file is sent with the document it is attached to on client facing communications. Note- The SendWithObject element is only returned when using /Associations/{ObjectId} endpoint.- Returns:
- sendWithObject
-
setSendWithObject
Boolean flag to determines whether the file is sent with the document it is attached to on client facing communications. Note- The SendWithObject element is only returned when using /Associations/{ObjectId} endpoint.- Parameters:
sendWithObject- Boolean
-
name
The name of the associated file. Note- The Name element is only returned when using /Associations/{ObjectId} endpoint.- Parameters:
name- String- Returns:
- Association
-
getName
The name of the associated file. Note- The Name element is only returned when using /Associations/{ObjectId} endpoint.- Returns:
- name
-
setName
The name of the associated file. Note- The Name element is only returned when using /Associations/{ObjectId} endpoint.- Parameters:
name- String
-
size
The size of the associated file in bytes. Note- The Size element is only returned when using /Associations/{ObjectId} endpoint.- Parameters:
size- Integer- Returns:
- Association
-
getSize
The size of the associated file in bytes. Note- The Size element is only returned when using /Associations/{ObjectId} endpoint.- Returns:
- size
-
setSize
The size of the associated file in bytes. Note- The Size element is only returned when using /Associations/{ObjectId} endpoint.- Parameters:
size- Integer
-
fileId
The unique identifier of the file- Parameters:
fileId- UUID- Returns:
- Association
-
getFileId
-
setFileId
-
objectId
The identifier of the object that the file is being associated with (e.g. InvoiceID, BankTransactionID, ContactID)- Parameters:
objectId- UUID- Returns:
- Association
-
getObjectId
The identifier of the object that the file is being associated with (e.g. InvoiceID, BankTransactionID, ContactID)- Returns:
- objectId
-
setObjectId
The identifier of the object that the file is being associated with (e.g. InvoiceID, BankTransactionID, ContactID)- Parameters:
objectId- UUID
-
objectGroup
objectGroup- Parameters:
objectGroup- ObjectGroup- Returns:
- Association
-
getObjectGroup
-
setObjectGroup
objectGroup- Parameters:
objectGroup- ObjectGroup
-
objectType
objectType- Parameters:
objectType- ObjectType- Returns:
- Association
-
getObjectType
-
setObjectType
-
equals
-
hashCode
-
toString
-