Class EnrichmentOptions.Builder

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

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

    • Builder

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

    • build

      public EnrichmentOptions build()
      Builds a EnrichmentOptions.
      Returns:
      the new EnrichmentOptions instance
    • addLanguages

      public EnrichmentOptions.Builder addLanguages​(String languages)
      Adds an languages to languages.
      Parameters:
      languages - the new languages
      Returns:
      the EnrichmentOptions builder
    • languages

      public EnrichmentOptions.Builder languages​(List<String> languages)
      Set the languages. Existing languages will be replaced.
      Parameters:
      languages - the languages
      Returns:
      the EnrichmentOptions builder
    • entityType

      public EnrichmentOptions.Builder entityType​(String entityType)
      Set the entityType.
      Parameters:
      entityType - the entityType
      Returns:
      the EnrichmentOptions builder
    • regularExpression

      public EnrichmentOptions.Builder regularExpression​(String regularExpression)
      Set the regularExpression.
      Parameters:
      regularExpression - the regularExpression
      Returns:
      the EnrichmentOptions builder
    • resultField

      public EnrichmentOptions.Builder resultField​(String resultField)
      Set the resultField.
      Parameters:
      resultField - the resultField
      Returns:
      the EnrichmentOptions builder