Class Configuration.Builder

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

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

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

    • build

      public Configuration build()
      Builds a Configuration.
      Returns:
      the new Configuration instance
    • addEnrichment

      public Configuration.Builder addEnrichment​(Enrichment enrichment)
      Adds an enrichment to enrichments.
      Parameters:
      enrichment - the new enrichment
      Returns:
      the Configuration builder
    • addNormalization

      public Configuration.Builder addNormalization​(NormalizationOperation normalization)
      Adds an normalization to normalizations.
      Parameters:
      normalization - the new normalization
      Returns:
      the Configuration builder
    • name

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

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

      public Configuration.Builder conversions​(Conversions conversions)
      Set the conversions.
      Parameters:
      conversions - the conversions
      Returns:
      the Configuration builder
    • enrichments

      public Configuration.Builder enrichments​(List<Enrichment> enrichments)
      Set the enrichments. Existing enrichments will be replaced.
      Parameters:
      enrichments - the enrichments
      Returns:
      the Configuration builder
    • normalizations

      public Configuration.Builder normalizations​(List<NormalizationOperation> normalizations)
      Set the normalizations. Existing normalizations will be replaced.
      Parameters:
      normalizations - the normalizations
      Returns:
      the Configuration builder
    • source

      public Configuration.Builder source​(Source source)
      Set the source.
      Parameters:
      source - the source
      Returns:
      the Configuration builder