Class Expansion.Builder

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

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

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

    • build

      public Expansion build()
      Builds a Expansion.
      Returns:
      the new Expansion instance
    • addInputTerms

      public Expansion.Builder addInputTerms​(String inputTerms)
      Adds an inputTerms to inputTerms.
      Parameters:
      inputTerms - the new inputTerms
      Returns:
      the Expansion builder
    • addExpandedTerms

      public Expansion.Builder addExpandedTerms​(String expandedTerms)
      Adds an expandedTerms to expandedTerms.
      Parameters:
      expandedTerms - the new expandedTerms
      Returns:
      the Expansion builder
    • inputTerms

      public Expansion.Builder inputTerms​(List<String> inputTerms)
      Set the inputTerms. Existing inputTerms will be replaced.
      Parameters:
      inputTerms - the inputTerms
      Returns:
      the Expansion builder
    • expandedTerms

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