Class CollectionEnrichment.Builder

java.lang.Object
com.ibm.watson.discovery.v2.model.CollectionEnrichment.Builder
Enclosing class:
CollectionEnrichment

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

    • Builder

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

    • build

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

      public CollectionEnrichment.Builder addFields​(String fields)
      Adds an fields to fields.
      Parameters:
      fields - the new fields
      Returns:
      the CollectionEnrichment builder
    • enrichmentId

      public CollectionEnrichment.Builder enrichmentId​(String enrichmentId)
      Set the enrichmentId.
      Parameters:
      enrichmentId - the enrichmentId
      Returns:
      the CollectionEnrichment builder
    • fields

      public CollectionEnrichment.Builder fields​(List<String> fields)
      Set the fields. Existing fields will be replaced.
      Parameters:
      fields - the fields
      Returns:
      the CollectionEnrichment builder