Package com.ibm.cloud.cloudant.v1.model
Class DesignDocument.Builder
java.lang.Object
com.ibm.cloud.cloudant.v1.model.DesignDocument.Builder
- Enclosing class:
 DesignDocument
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.autoupdate(Boolean autoupdate) Set the autoupdate.build()Builds a DesignDocument.Set the conflicts.Set the deleted.deletedConflicts(List<String> deletedConflicts) Set the deletedConflicts.Set the filters.Set the id.indexes(Map<String, SearchIndexDefinition> indexes) Set the indexes.Set the language.Set the localSeq.options(DesignDocumentOptions options) Set the options.Set the rev.Set the revisions.revsInfo(List<DocumentRevisionStatus> revsInfo) Set the revsInfo.validateDocUpdate(String validateDocUpdate) Set the validateDocUpdate.views(Map<String, DesignDocumentViewsMapReduce> views) Set the views. 
- 
Constructor Details
- 
Builder
public Builder()Instantiates a new builder. 
 - 
 - 
Method Details
- 
build
Builds a DesignDocument.- Returns:
 - the new DesignDocument instance
 
 - 
addConflicts
Adds a new element to conflicts.- Parameters:
 conflicts- the new element to be added- Returns:
 - the DesignDocument builder
 
 - 
addDeletedConflicts
Adds a new element to deletedConflicts.- Parameters:
 deletedConflicts- the new element to be added- Returns:
 - the DesignDocument builder
 
 - 
addRevsInfo
Adds a new element to revsInfo.- Parameters:
 revsInfo- the new element to be added- Returns:
 - the DesignDocument builder
 
 - 
attachments
Set the attachments.- Parameters:
 attachments- the attachments- Returns:
 - the DesignDocument builder
 
 - 
conflicts
Set the conflicts. Existing conflicts will be replaced.- Parameters:
 conflicts- the conflicts- Returns:
 - the DesignDocument builder
 
 - 
deleted
Set the deleted.- Parameters:
 deleted- the deleted- Returns:
 - the DesignDocument builder
 
 - 
deletedConflicts
Set the deletedConflicts. Existing deletedConflicts will be replaced.- Parameters:
 deletedConflicts- the deletedConflicts- Returns:
 - the DesignDocument builder
 
 - 
id
Set the id.- Parameters:
 id- the id- Returns:
 - the DesignDocument builder
 
 - 
localSeq
Set the localSeq.- Parameters:
 localSeq- the localSeq- Returns:
 - the DesignDocument builder
 
 - 
rev
Set the rev.- Parameters:
 rev- the rev- Returns:
 - the DesignDocument builder
 
 - 
revisions
Set the revisions.- Parameters:
 revisions- the revisions- Returns:
 - the DesignDocument builder
 
 - 
revsInfo
Set the revsInfo. Existing revsInfo will be replaced.- Parameters:
 revsInfo- the revsInfo- Returns:
 - the DesignDocument builder
 
 - 
autoupdate
Set the autoupdate.- Parameters:
 autoupdate- the autoupdate- Returns:
 - the DesignDocument builder
 
 - 
filters
Set the filters.- Parameters:
 filters- the filters- Returns:
 - the DesignDocument builder
 
 - 
indexes
Set the indexes.- Parameters:
 indexes- the indexes- Returns:
 - the DesignDocument builder
 
 - 
language
Set the language.- Parameters:
 language- the language- Returns:
 - the DesignDocument builder
 
 - 
options
Set the options.- Parameters:
 options- the options- Returns:
 - the DesignDocument builder
 
 - 
validateDocUpdate
Set the validateDocUpdate.- Parameters:
 validateDocUpdate- the validateDocUpdate- Returns:
 - the DesignDocument builder
 
 - 
views
Set the views.- Parameters:
 views- the views- Returns:
 - the DesignDocument builder
 
 - 
add
Add an arbitrary property.- Parameters:
 name- the name of the property to addvalue- the value of the property to add- Returns:
 - the DesignDocument builder
 
 
 -