Package com.ibm.cloud.cloudant.v1.model
Class IndexField.Builder
- java.lang.Object
-
- com.ibm.cloud.cloudant.v1.model.IndexField.Builder
-
- Enclosing class:
- IndexField
public static class IndexField.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexField.Builder
add(String name, String value)
Add an arbitrary property.IndexField
build()
Builds a IndexField.IndexField.Builder
name(String name)
Set the name.IndexField.Builder
type(String type)
Set the type.
-
-
-
Method Detail
-
build
public IndexField build()
Builds a IndexField.- Returns:
- the new IndexField instance
-
name
public IndexField.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the IndexField builder
-
type
public IndexField.Builder type(String type)
Set the type.- Parameters:
type
- the type- Returns:
- the IndexField builder
-
add
public IndexField.Builder add(String name, String value)
Add an arbitrary property.- Parameters:
name
- the name of the property to addvalue
- the value of the property to add- Returns:
- the IndexField builder
-
-