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 Details

    • Builder

      public Builder()
      Instantiates a new builder.
  • Method Details

    • 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 add
      value - the value of the property to add
      Returns:
      the IndexField builder