Class Enrichment.Builder

java.lang.Object
com.ibm.watson.discovery.v1.model.Enrichment.Builder
Enclosing class:
Enrichment

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(String destinationField, String sourceField, String enrichment)
      Instantiates a new builder with required properties.
      Parameters:
      destinationField - the destinationField
      sourceField - the sourceField
      enrichment - the enrichment
  • Method Details

    • build

      public Enrichment build()
      Builds a Enrichment.
      Returns:
      the new Enrichment instance
    • description

      public Enrichment.Builder description​(String description)
      Set the description.
      Parameters:
      description - the description
      Returns:
      the Enrichment builder
    • destinationField

      public Enrichment.Builder destinationField​(String destinationField)
      Set the destinationField.
      Parameters:
      destinationField - the destinationField
      Returns:
      the Enrichment builder
    • sourceField

      public Enrichment.Builder sourceField​(String sourceField)
      Set the sourceField.
      Parameters:
      sourceField - the sourceField
      Returns:
      the Enrichment builder
    • overwrite

      public Enrichment.Builder overwrite​(Boolean overwrite)
      Set the overwrite.
      Parameters:
      overwrite - the overwrite
      Returns:
      the Enrichment builder
    • enrichment

      public Enrichment.Builder enrichment​(String enrichment)
      Set the enrichment.
      Parameters:
      enrichment - the enrichment
      Returns:
      the Enrichment builder
    • ignoreDownstreamErrors

      public Enrichment.Builder ignoreDownstreamErrors​(Boolean ignoreDownstreamErrors)
      Set the ignoreDownstreamErrors.
      Parameters:
      ignoreDownstreamErrors - the ignoreDownstreamErrors
      Returns:
      the Enrichment builder
    • options

      public Enrichment.Builder options​(EnrichmentOptions options)
      Set the options.
      Parameters:
      options - the options
      Returns:
      the Enrichment builder