Package com.ibm.cloud.cloudant.v1.model
Class PostBulkGetOptions.Builder
java.lang.Object
com.ibm.cloud.cloudant.v1.model.PostBulkGetOptions.Builder
- Enclosing class:
PostBulkGetOptions
Builder.
-
Constructor Summary
ConstructorDescriptionBuilder()
Instantiates a new builder.Builder
(String db, List<BulkGetQueryDocument> docs) Instantiates a new builder with required properties. -
Method Summary
Modifier and TypeMethodDescriptionaddDocs
(BulkGetQueryDocument docs) Adds a new element to docs.attachments
(Boolean attachments) Set the attachments.attEncodingInfo
(Boolean attEncodingInfo) Set the attEncodingInfo.build()
Builds a PostBulkGetOptions.Set the db.docs
(List<BulkGetQueryDocument> docs) Set the docs.Set the latest.Set the revs.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
db
- the dbdocs
- the docs
-
-
Method Details
-
build
Builds a PostBulkGetOptions.- Returns:
- the new PostBulkGetOptions instance
-
addDocs
Adds a new element to docs.- Parameters:
docs
- the new element to be added- Returns:
- the PostBulkGetOptions builder
-
db
Set the db.- Parameters:
db
- the db- Returns:
- the PostBulkGetOptions builder
-
docs
Set the docs. Existing docs will be replaced.- Parameters:
docs
- the docs- Returns:
- the PostBulkGetOptions builder
-
attachments
Set the attachments.- Parameters:
attachments
- the attachments- Returns:
- the PostBulkGetOptions builder
-
attEncodingInfo
Set the attEncodingInfo.- Parameters:
attEncodingInfo
- the attEncodingInfo- Returns:
- the PostBulkGetOptions builder
-
latest
Set the latest.- Parameters:
latest
- the latest- Returns:
- the PostBulkGetOptions builder
-
revs
Set the revs.- Parameters:
revs
- the revs- Returns:
- the PostBulkGetOptions builder
-