Package com.ibm.cloud.cloudant.v1.model
Class PostPartitionSearchOptions.Builder
java.lang.Object
com.ibm.cloud.cloudant.v1.model.PostPartitionSearchOptions.Builder
- Enclosing class:
 PostPartitionSearchOptions
Builder.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionaddHighlightFields(String highlightFields) Adds a new element to highlightFields.addIncludeFields(String includeFields) Adds a new element to includeFields.Adds a new element to sort.Set the bookmark.build()Builds a PostPartitionSearchOptions.Set the db.Set the ddoc.highlightFields(List<String> highlightFields) Set the highlightFields.highlightNumber(long highlightNumber) Set the highlightNumber.highlightPostTag(String highlightPostTag) Set the highlightPostTag.highlightPreTag(String highlightPreTag) Set the highlightPreTag.highlightSize(long highlightSize) Set the highlightSize.includeDocs(Boolean includeDocs) Set the includeDocs.includeFields(List<String> includeFields) Set the includeFields.Set the index.limit(long limit) Set the limit.partitionKey(String partitionKey) Set the partitionKey.Set the query.Set the sort.Set the stale. 
- 
Constructor Details
- 
Builder
public Builder()Instantiates a new builder. - 
Builder
Instantiates a new builder with required properties.- Parameters:
 db- the dbpartitionKey- the partitionKeyddoc- the ddocindex- the indexquery- the query
 
 - 
 - 
Method Details
- 
build
Builds a PostPartitionSearchOptions.- Returns:
 - the new PostPartitionSearchOptions instance
 
 - 
addHighlightFields
Adds a new element to highlightFields.- Parameters:
 highlightFields- the new element to be added- Returns:
 - the PostPartitionSearchOptions builder
 
 - 
addIncludeFields
Adds a new element to includeFields.- Parameters:
 includeFields- the new element to be added- Returns:
 - the PostPartitionSearchOptions builder
 
 - 
addSort
Adds a new element to sort.- Parameters:
 sort- the new element to be added- Returns:
 - the PostPartitionSearchOptions builder
 
 - 
db
Set the db.- Parameters:
 db- the db- Returns:
 - the PostPartitionSearchOptions builder
 
 - 
partitionKey
Set the partitionKey.- Parameters:
 partitionKey- the partitionKey- Returns:
 - the PostPartitionSearchOptions builder
 
 - 
ddoc
Set the ddoc.- Parameters:
 ddoc- the ddoc- Returns:
 - the PostPartitionSearchOptions builder
 
 - 
index
Set the index.- Parameters:
 index- the index- Returns:
 - the PostPartitionSearchOptions builder
 
 - 
query
Set the query.- Parameters:
 query- the query- Returns:
 - the PostPartitionSearchOptions builder
 
 - 
bookmark
Set the bookmark.- Parameters:
 bookmark- the bookmark- Returns:
 - the PostPartitionSearchOptions builder
 
 - 
highlightFields
Set the highlightFields. Existing highlightFields will be replaced.- Parameters:
 highlightFields- the highlightFields- Returns:
 - the PostPartitionSearchOptions builder
 
 - 
highlightNumber
Set the highlightNumber.- Parameters:
 highlightNumber- the highlightNumber- Returns:
 - the PostPartitionSearchOptions builder
 
 - 
highlightPostTag
Set the highlightPostTag.- Parameters:
 highlightPostTag- the highlightPostTag- Returns:
 - the PostPartitionSearchOptions builder
 
 - 
highlightPreTag
Set the highlightPreTag.- Parameters:
 highlightPreTag- the highlightPreTag- Returns:
 - the PostPartitionSearchOptions builder
 
 - 
highlightSize
Set the highlightSize.- Parameters:
 highlightSize- the highlightSize- Returns:
 - the PostPartitionSearchOptions builder
 
 - 
includeDocs
Set the includeDocs.- Parameters:
 includeDocs- the includeDocs- Returns:
 - the PostPartitionSearchOptions builder
 
 - 
includeFields
Set the includeFields. Existing includeFields will be replaced.- Parameters:
 includeFields- the includeFields- Returns:
 - the PostPartitionSearchOptions builder
 
 - 
limit
Set the limit.- Parameters:
 limit- the limit- Returns:
 - the PostPartitionSearchOptions builder
 
 - 
sort
Set the sort. Existing sort will be replaced.- Parameters:
 sort- the sort- Returns:
 - the PostPartitionSearchOptions builder
 
 - 
stale
Set the stale.- Parameters:
 stale- the stale- Returns:
 - the PostPartitionSearchOptions builder
 
 
 -