Class Document.Builder
java.lang.Object
com.ibm.cloud.cloudant.v1.model.Document.Builder
- Enclosing class:
Document
Builder.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd an arbitrary property.addConflicts(String conflicts) Adds a new element to conflicts.addDeletedConflicts(String deletedConflicts) Adds a new element to deletedConflicts.addRevsInfo(DocumentRevisionStatus revsInfo) Adds a new element to revsInfo.attachments(Map<String, Attachment> attachments) Set the attachments.build()Builds a Document.Set the conflicts.Set the deleted.deletedConflicts(List<String> deletedConflicts) Set the deletedConflicts.Set the id.Set the localSeq.Set the rev.Set the revisions.revsInfo(List<DocumentRevisionStatus> revsInfo) Set the revsInfo.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
-
addConflicts
Adds a new element to conflicts.- Parameters:
conflicts- the new element to be added- Returns:
- the Document builder
-
addDeletedConflicts
Adds a new element to deletedConflicts.- Parameters:
deletedConflicts- the new element to be added- Returns:
- the Document builder
-
addRevsInfo
Adds a new element to revsInfo.- Parameters:
revsInfo- the new element to be added- Returns:
- the Document builder
-
attachments
Set the attachments.- Parameters:
attachments- the attachments- Returns:
- the Document builder
-
conflicts
Set the conflicts. Existing conflicts will be replaced.- Parameters:
conflicts- the conflicts- Returns:
- the Document builder
-
deleted
Set the deleted.- Parameters:
deleted- the deleted- Returns:
- the Document builder
-
deletedConflicts
Set the deletedConflicts. Existing deletedConflicts will be replaced.- Parameters:
deletedConflicts- the deletedConflicts- Returns:
- the Document builder
-
id
Set the id.- Parameters:
id- the id- Returns:
- the Document builder
-
localSeq
Set the localSeq.- Parameters:
localSeq- the localSeq- Returns:
- the Document builder
-
rev
Set the rev.- Parameters:
rev- the rev- Returns:
- the Document builder
-
revisions
Set the revisions.- Parameters:
revisions- the revisions- Returns:
- the Document builder
-
revsInfo
Set the revsInfo. Existing revsInfo will be replaced.- Parameters:
revsInfo- the revsInfo- Returns:
- the Document builder
-
add
Add an arbitrary property.- Parameters:
name- the name of the property to addvalue- the value of the property to add- Returns:
- the Document builder
-