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 
    Builder.
    static interface 
    The type of the named field.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the name.
    Gets the type.
    New builder.
    void
    Sets the name.
    void
    Sets the type.

    Methods inherited from class com.ibm.cloud.sdk.core.service.model.DynamicModel

    equals, get, getAdditionalPropertyTypeToken, getProperties, getPropertyNames, hashCode, put, removeProperties, removeProperty, setProperties, toString

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • IndexField

      public IndexField()
  • Method Details

    • 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