Package com.ibm.cloud.cloudant.v1.model
Class PostBulkGetOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.cloudant.v1.model.PostBulkGetOptions.Builder
-
- Enclosing class:
- PostBulkGetOptions
public static class PostBulkGetOptions.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder.Builder(String db, List<BulkGetQueryDocument> docs)Instantiates a new builder with required properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PostBulkGetOptions.BuilderaddDocs(BulkGetQueryDocument docs)Adds an docs to docs.PostBulkGetOptions.Builderattachments(Boolean attachments)Set the attachments.PostBulkGetOptions.BuilderattEncodingInfo(Boolean attEncodingInfo)Set the attEncodingInfo.PostBulkGetOptionsbuild()Builds a PostBulkGetOptions.PostBulkGetOptions.Builderdb(String db)Set the db.PostBulkGetOptions.Builderdocs(List<BulkGetQueryDocument> docs)Set the docs.PostBulkGetOptions.Builderlatest(Boolean latest)Set the latest.PostBulkGetOptions.Builderrevs(Boolean revs)Set the revs.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String db, List<BulkGetQueryDocument> docs)
Instantiates a new builder with required properties.- Parameters:
db- the dbdocs- the docs
-
-
Method Detail
-
build
public PostBulkGetOptions build()
Builds a PostBulkGetOptions.- Returns:
- the new PostBulkGetOptions instance
-
addDocs
public PostBulkGetOptions.Builder addDocs(BulkGetQueryDocument docs)
Adds an docs to docs.- Parameters:
docs- the new docs- Returns:
- the PostBulkGetOptions builder
-
db
public PostBulkGetOptions.Builder db(String db)
Set the db.- Parameters:
db- the db- Returns:
- the PostBulkGetOptions builder
-
docs
public PostBulkGetOptions.Builder docs(List<BulkGetQueryDocument> docs)
Set the docs. Existing docs will be replaced.- Parameters:
docs- the docs- Returns:
- the PostBulkGetOptions builder
-
attachments
public PostBulkGetOptions.Builder attachments(Boolean attachments)
Set the attachments.- Parameters:
attachments- the attachments- Returns:
- the PostBulkGetOptions builder
-
attEncodingInfo
public PostBulkGetOptions.Builder attEncodingInfo(Boolean attEncodingInfo)
Set the attEncodingInfo.- Parameters:
attEncodingInfo- the attEncodingInfo- Returns:
- the PostBulkGetOptions builder
-
latest
public PostBulkGetOptions.Builder latest(Boolean latest)
Set the latest.- Parameters:
latest- the latest- Returns:
- the PostBulkGetOptions builder
-
revs
public PostBulkGetOptions.Builder revs(Boolean revs)
Set the revs.- Parameters:
revs- the revs- Returns:
- the PostBulkGetOptions builder
-
-