Package com.ibm.cloud.cloudant.v1.model
Class Document
- All Implemented Interfaces:
 ObjectModel
Schema for a document.
 This type supports additional properties of type Object.
- 
Nested Class Summary
Nested Classes - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionGets the attachments.Gets the conflicts.Gets the deletedConflicts.getId()Gets the id.Gets the localSeq.getRev()Gets the rev.Gets the revisions.Gets the revsInfo.Gets the deleted.New builder.voidsetAttachments(Map<String, Attachment> attachments) Sets the attachments.voidsetConflicts(List<String> conflicts) Sets the conflicts.voidsetDeleted(Boolean deleted) Sets the deleted.voidsetDeletedConflicts(List<String> deletedConflicts) Sets the deletedConflicts.voidSets the id.voidsetLocalSeq(String localSeq) Sets the localSeq.voidSets the rev.voidsetRevisions(Revisions revisions) Sets the revisions.voidsetRevsInfo(List<DocumentRevisionStatus> revsInfo) Sets the revsInfo.Methods inherited from class com.ibm.cloud.sdk.core.service.model.DynamicModel
equals, get, getAdditionalPropertyTypeToken, getProperties, getPropertyNames, hashCode, put, removeProperties, removeProperty, setProperties, toString 
- 
Constructor Details
- 
Document
public Document() 
 - 
 - 
Method Details
- 
newBuilder
New builder.- Returns:
 - a Document builder
 
 - 
getAttachments
Gets the attachments. Schema for a map of attachment name to attachment metadata.- Returns:
 - the attachments
 
 - 
setAttachments
Sets the attachments.- Parameters:
 attachments- the new attachments
 - 
getConflicts
Gets the conflicts. Schema for a list of document revision identifiers.- Returns:
 - the conflicts
 
 - 
setConflicts
Sets the conflicts.- Parameters:
 conflicts- the new conflicts
 - 
isDeleted
Gets the deleted. Deletion flag. Available if document was removed.- Returns:
 - the deleted
 
 - 
setDeleted
Sets the deleted.- Parameters:
 deleted- the new deleted
 - 
getDeletedConflicts
Gets the deletedConflicts. Schema for a list of document revision identifiers.- Returns:
 - the deletedConflicts
 
 - 
setDeletedConflicts
Sets the deletedConflicts.- Parameters:
 deletedConflicts- the new deletedConflicts
 - 
getId
Gets the id. Schema for a document ID.- Returns:
 - the id
 
 - 
setId
Sets the id.- Parameters:
 id- the new id
 - 
getLocalSeq
Gets the localSeq. Document's update sequence in current database. Available if requested with local_seq=true query parameter.- Returns:
 - the localSeq
 
 - 
setLocalSeq
Sets the localSeq.- Parameters:
 localSeq- the new localSeq
 - 
getRev
Gets the rev. Schema for a document revision identifier.- Returns:
 - the rev
 
 - 
setRev
Sets the rev.- Parameters:
 rev- the new rev
 - 
getRevisions
Gets the revisions. Schema for list of revision information.- Returns:
 - the revisions
 
 - 
setRevisions
Sets the revisions.- Parameters:
 revisions- the new revisions
 - 
getRevsInfo
Gets the revsInfo. Schema for a list of objects with information about local revisions and their status.- Returns:
 - the revsInfo
 
 - 
setRevsInfo
Sets the revsInfo.- Parameters:
 revsInfo- the new revsInfo
 
 -