Class IndexDefinition.Builder

java.lang.Object
com.ibm.cloud.cloudant.v1.model.IndexDefinition.Builder
Enclosing class:
IndexDefinition

public static class IndexDefinition.Builder extends Object
Builder.
  • Constructor Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder(List<IndexField> fields)
      Instantiates a new builder with required properties.
      Parameters:
      fields - the fields
  • Method Details

    • build

      public IndexDefinition build()
      Builds a IndexDefinition.
      Returns:
      the new IndexDefinition instance
    • addFields

      public IndexDefinition.Builder addFields(IndexField fields)
      Adds a new element to fields.
      Parameters:
      fields - the new element to be added
      Returns:
      the IndexDefinition builder
    • defaultAnalyzer

      public IndexDefinition.Builder defaultAnalyzer(Analyzer defaultAnalyzer)
      Set the defaultAnalyzer.
      Parameters:
      defaultAnalyzer - the defaultAnalyzer
      Returns:
      the IndexDefinition builder
    • defaultField

      public IndexDefinition.Builder defaultField(IndexTextOperatorDefaultField defaultField)
      Set the defaultField.
      Parameters:
      defaultField - the defaultField
      Returns:
      the IndexDefinition builder
    • fields

      public IndexDefinition.Builder fields(List<IndexField> fields)
      Set the fields. Existing fields will be replaced.
      Parameters:
      fields - the fields
      Returns:
      the IndexDefinition builder
    • indexArrayLengths

      public IndexDefinition.Builder indexArrayLengths(Boolean indexArrayLengths)
      Set the indexArrayLengths.
      Parameters:
      indexArrayLengths - the indexArrayLengths
      Returns:
      the IndexDefinition builder
    • partialFilterSelector

      public IndexDefinition.Builder partialFilterSelector(Map<String,Object> partialFilterSelector)
      Set the partialFilterSelector.
      Parameters:
      partialFilterSelector - the partialFilterSelector
      Returns:
      the IndexDefinition builder