Package com.ibm.cloud.cloudant.v1.model
Class IndexField
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.DynamicModel<String>
-
- com.ibm.cloud.cloudant.v1.model.IndexField
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class IndexField extends com.ibm.cloud.sdk.core.service.model.DynamicModel<String>
Schema for indexed fields for use with declarative JSON query.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IndexField.Builder
Builder.static interface
IndexField.Type
The type of the named field.
-
Constructor Summary
Constructors Constructor Description IndexField()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Gets the name.String
getType()
Gets the type.IndexField.Builder
newBuilder()
New builder.void
setName(String name)
Sets the name.void
setType(String type)
Sets the type.
-
-
-
Method Detail
-
newBuilder
public IndexField.Builder newBuilder()
New builder.- Returns:
- a IndexField builder
-
getName
public String getName()
Gets the name. Name of the field.- Returns:
- the name
-
setName
public void setName(String name)
Sets the name.- Parameters:
name
- the new name
-
getType
public String getType()
Gets the type. The type of the named field.- Returns:
- the type
-
setType
public void setType(String type)
Sets the type.- Parameters:
type
- the new type
-
-