Package com.ibm.cloud.cloudant.v1.model
Class PostIndexOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.cloudant.v1.model.PostIndexOptions.Builder
-
- Enclosing class:
- PostIndexOptions
public static class PostIndexOptions.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(String db, IndexDefinition index)
Instantiates a new builder with required properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PostIndexOptions
build()
Builds a PostIndexOptions.PostIndexOptions.Builder
db(String db)
Set the db.PostIndexOptions.Builder
ddoc(String ddoc)
Set the ddoc.PostIndexOptions.Builder
def(IndexDefinition def)
Set the def.PostIndexOptions.Builder
index(IndexDefinition index)
Set the index.PostIndexOptions.Builder
name(String name)
Set the name.PostIndexOptions.Builder
partitioned(Boolean partitioned)
Set the partitioned.PostIndexOptions.Builder
type(String type)
Set the type.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String db, IndexDefinition index)
Instantiates a new builder with required properties.- Parameters:
db
- the dbindex
- the index
-
-
Method Detail
-
build
public PostIndexOptions build()
Builds a PostIndexOptions.- Returns:
- the new PostIndexOptions instance
-
db
public PostIndexOptions.Builder db(String db)
Set the db.- Parameters:
db
- the db- Returns:
- the PostIndexOptions builder
-
index
public PostIndexOptions.Builder index(IndexDefinition index)
Set the index.- Parameters:
index
- the index- Returns:
- the PostIndexOptions builder
-
ddoc
public PostIndexOptions.Builder ddoc(String ddoc)
Set the ddoc.- Parameters:
ddoc
- the ddoc- Returns:
- the PostIndexOptions builder
-
def
public PostIndexOptions.Builder def(IndexDefinition def)
Set the def.- Parameters:
def
- the def- Returns:
- the PostIndexOptions builder
-
name
public PostIndexOptions.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the PostIndexOptions builder
-
partitioned
public PostIndexOptions.Builder partitioned(Boolean partitioned)
Set the partitioned.- Parameters:
partitioned
- the partitioned- Returns:
- the PostIndexOptions builder
-
type
public PostIndexOptions.Builder type(String type)
Set the type.- Parameters:
type
- the type- Returns:
- the PostIndexOptions builder
-
-