Package com.ibm.cloud.cloudant.v1.model
Class PostDesignDocsQueriesOptions.Builder
java.lang.Object
com.ibm.cloud.cloudant.v1.model.PostDesignDocsQueriesOptions.Builder
- Enclosing class:
PostDesignDocsQueriesOptions
Builder.
-
Constructor Summary
ConstructorDescriptionBuilder()
Instantiates a new builder.Builder
(String db, List<AllDocsQuery> queries) Instantiates a new builder with required properties. -
Method Summary
Modifier and TypeMethodDescriptionSet the accept.addQueries
(AllDocsQuery queries) Adds a new element to queries.build()
Builds a PostDesignDocsQueriesOptions.Set the db.queries
(List<AllDocsQuery> queries) Set the queries.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
db
- the dbqueries
- the queries
-
-
Method Details
-
build
Builds a PostDesignDocsQueriesOptions.- Returns:
- the new PostDesignDocsQueriesOptions instance
-
addQueries
Adds a new element to queries.- Parameters:
queries
- the new element to be added- Returns:
- the PostDesignDocsQueriesOptions builder
-
db
Set the db.- Parameters:
db
- the db- Returns:
- the PostDesignDocsQueriesOptions builder
-
queries
Set the queries. Existing queries will be replaced.- Parameters:
queries
- the queries- Returns:
- the PostDesignDocsQueriesOptions builder
-
accept
Set the accept.- Parameters:
accept
- the accept- Returns:
- the PostDesignDocsQueriesOptions builder
-