Package com.ibm.cloud.cloudant.v1.model
Class PutDatabaseOptions
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.cloudant.v1.model.PutDatabaseOptions
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class PutDatabaseOptions extends com.ibm.cloud.sdk.core.service.model.GenericModel
The putDatabase options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PutDatabaseOptions.Builder
Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
db()
Gets the db.PutDatabaseOptions.Builder
newBuilder()
New builder.Boolean
partitioned()
Gets the partitioned.Long
q()
Gets the q.
-
-
-
Method Detail
-
newBuilder
public PutDatabaseOptions.Builder newBuilder()
New builder.- Returns:
- a PutDatabaseOptions builder
-
db
public String db()
Gets the db. Path parameter to specify the database name.- Returns:
- the db
-
partitioned
public Boolean partitioned()
Gets the partitioned. Query parameter to specify whether to enable database partitions when creating a database.- Returns:
- the partitioned
-
q
public Long q()
Gets the q. The number of shards in the database. Each shard is a partition of the hash value range. Default is 8, unless overridden in the `cluster config`.- Returns:
- the q
-
-