Package com.ibm.cloud.cloudant.v1.model
Class PostPartitionFindOptions.Builder
java.lang.Object
com.ibm.cloud.cloudant.v1.model.PostPartitionFindOptions.Builder
- Enclosing class:
PostPartitionFindOptions
Builder.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds a new element to fields.Adds a new element to sort.addUseIndex
(String useIndex) Adds a new element to useIndex.allowFallback
(Boolean allowFallback) Set the allowFallback.Set the bookmark.build()
Builds a PostPartitionFindOptions.Set the conflicts.Set the db.executionStats
(Boolean executionStats) Set the executionStats.Set the fields.limit
(long limit) Set the limit.partitionKey
(String partitionKey) Set the partitionKey.Set the selector.skip
(long skip) Set the skip.Set the sort.Set the stable.Set the update.Set the useIndex.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
db
- the dbpartitionKey
- the partitionKeyselector
- the selector
-
-
Method Details
-
build
Builds a PostPartitionFindOptions.- Returns:
- the new PostPartitionFindOptions instance
-
addFields
Adds a new element to fields.- Parameters:
fields
- the new element to be added- Returns:
- the PostPartitionFindOptions builder
-
addSort
Adds a new element to sort.- Parameters:
sort
- the new element to be added- Returns:
- the PostPartitionFindOptions builder
-
addUseIndex
Adds a new element to useIndex.- Parameters:
useIndex
- the new element to be added- Returns:
- the PostPartitionFindOptions builder
-
db
Set the db.- Parameters:
db
- the db- Returns:
- the PostPartitionFindOptions builder
-
partitionKey
Set the partitionKey.- Parameters:
partitionKey
- the partitionKey- Returns:
- the PostPartitionFindOptions builder
-
selector
Set the selector.- Parameters:
selector
- the selector- Returns:
- the PostPartitionFindOptions builder
-
allowFallback
Set the allowFallback.- Parameters:
allowFallback
- the allowFallback- Returns:
- the PostPartitionFindOptions builder
-
bookmark
Set the bookmark.- Parameters:
bookmark
- the bookmark- Returns:
- the PostPartitionFindOptions builder
-
conflicts
Set the conflicts.- Parameters:
conflicts
- the conflicts- Returns:
- the PostPartitionFindOptions builder
-
executionStats
Set the executionStats.- Parameters:
executionStats
- the executionStats- Returns:
- the PostPartitionFindOptions builder
-
fields
Set the fields. Existing fields will be replaced.- Parameters:
fields
- the fields- Returns:
- the PostPartitionFindOptions builder
-
limit
Set the limit.- Parameters:
limit
- the limit- Returns:
- the PostPartitionFindOptions builder
-
skip
Set the skip.- Parameters:
skip
- the skip- Returns:
- the PostPartitionFindOptions builder
-
sort
Set the sort. Existing sort will be replaced.- Parameters:
sort
- the sort- Returns:
- the PostPartitionFindOptions builder
-
stable
Set the stable.- Parameters:
stable
- the stable- Returns:
- the PostPartitionFindOptions builder
-
update
Set the update.- Parameters:
update
- the update- Returns:
- the PostPartitionFindOptions builder
-
useIndex
Set the useIndex. Existing useIndex will be replaced.- Parameters:
useIndex
- the useIndex- Returns:
- the PostPartitionFindOptions builder
-