Package com.affinda.api.client.models
Class DocumentUpdate
- java.lang.Object
-
- com.affinda.api.client.models.DocumentUpdate
-
public final class DocumentUpdate extends Object
The DocumentUpdate model.
-
-
Constructor Summary
Constructors Constructor Description DocumentUpdate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCollection()Get the collection property: Uniquely identify a collection.java.time.OffsetDateTimegetExpiryTime()Get the expiryTime property: The date/time in ISO-8601 format when the document will be automatically deleted.StringgetFileName()Get the fileName property: Optional filename of the file.StringgetIdentifier()Get the identifier property: Specify a custom identifier for the document.StringgetLanguage()Get the language property: Language code in ISO 639-1 format.BooleanisArchived()Get the isArchived property: The isArchived property.BooleanisConfirmed()Get the isConfirmed property: The isConfirmed property.BooleanisRejected()Get the isRejected property: The isRejected property.DocumentUpdatesetCollection(String collection)Set the collection property: Uniquely identify a collection.DocumentUpdatesetExpiryTime(java.time.OffsetDateTime expiryTime)Set the expiryTime property: The date/time in ISO-8601 format when the document will be automatically deleted.DocumentUpdatesetFileName(String fileName)Set the fileName property: Optional filename of the file.DocumentUpdatesetIdentifier(String identifier)Set the identifier property: Specify a custom identifier for the document.DocumentUpdatesetIsArchived(Boolean isArchived)Set the isArchived property: The isArchived property.DocumentUpdatesetIsConfirmed(Boolean isConfirmed)Set the isConfirmed property: The isConfirmed property.DocumentUpdatesetIsRejected(Boolean isRejected)Set the isRejected property: The isRejected property.DocumentUpdatesetLanguage(String language)Set the language property: Language code in ISO 639-1 format.
-
-
-
Method Detail
-
getCollection
public String getCollection()
Get the collection property: Uniquely identify a collection.- Returns:
- the collection value.
-
setCollection
public DocumentUpdate setCollection(String collection)
Set the collection property: Uniquely identify a collection.- Parameters:
collection- the collection value to set.- Returns:
- the DocumentUpdate object itself.
-
getFileName
public String getFileName()
Get the fileName property: Optional filename of the file.- Returns:
- the fileName value.
-
setFileName
public DocumentUpdate setFileName(String fileName)
Set the fileName property: Optional filename of the file.- Parameters:
fileName- the fileName value to set.- Returns:
- the DocumentUpdate object itself.
-
getExpiryTime
public java.time.OffsetDateTime getExpiryTime()
Get the expiryTime property: The date/time in ISO-8601 format when the document will be automatically deleted. Defaults to no expiry.- Returns:
- the expiryTime value.
-
setExpiryTime
public DocumentUpdate setExpiryTime(java.time.OffsetDateTime expiryTime)
Set the expiryTime property: The date/time in ISO-8601 format when the document will be automatically deleted. Defaults to no expiry.- Parameters:
expiryTime- the expiryTime value to set.- Returns:
- the DocumentUpdate object itself.
-
isConfirmed
public Boolean isConfirmed()
Get the isConfirmed property: The isConfirmed property.- Returns:
- the isConfirmed value.
-
setIsConfirmed
public DocumentUpdate setIsConfirmed(Boolean isConfirmed)
Set the isConfirmed property: The isConfirmed property.- Parameters:
isConfirmed- the isConfirmed value to set.- Returns:
- the DocumentUpdate object itself.
-
isRejected
public Boolean isRejected()
Get the isRejected property: The isRejected property.- Returns:
- the isRejected value.
-
setIsRejected
public DocumentUpdate setIsRejected(Boolean isRejected)
Set the isRejected property: The isRejected property.- Parameters:
isRejected- the isRejected value to set.- Returns:
- the DocumentUpdate object itself.
-
isArchived
public Boolean isArchived()
Get the isArchived property: The isArchived property.- Returns:
- the isArchived value.
-
setIsArchived
public DocumentUpdate setIsArchived(Boolean isArchived)
Set the isArchived property: The isArchived property.- Parameters:
isArchived- the isArchived value to set.- Returns:
- the DocumentUpdate object itself.
-
getLanguage
public String getLanguage()
Get the language property: Language code in ISO 639-1 format. Must specify zh-cn or zh-tw for Chinese.- Returns:
- the language value.
-
setLanguage
public DocumentUpdate setLanguage(String language)
Set the language property: Language code in ISO 639-1 format. Must specify zh-cn or zh-tw for Chinese.- Parameters:
language- the language value to set.- Returns:
- the DocumentUpdate object itself.
-
getIdentifier
public String getIdentifier()
Get the identifier property: Specify a custom identifier for the document.- Returns:
- the identifier value.
-
setIdentifier
public DocumentUpdate setIdentifier(String identifier)
Set the identifier property: Specify a custom identifier for the document.- Parameters:
identifier- the identifier value to set.- Returns:
- the DocumentUpdate object itself.
-
-