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 Summary
-
Method Summary
Modifier and Type Method Description Expansion.Builder
addExpandedTerms(String expandedTerms)
Adds an expandedTerms to expandedTerms.Expansion.Builder
addInputTerms(String inputTerms)
Adds an inputTerms to inputTerms.Expansion
build()
Builds a Expansion.Expansion.Builder
expandedTerms(List<String> expandedTerms)
Set the expandedTerms.Expansion.Builder
inputTerms(List<String> inputTerms)
Set the inputTerms.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
expandedTerms
- the expandedTerms
-
-
Method Details
-
build
Builds a Expansion.- Returns:
- the new Expansion instance
-
addInputTerms
Adds an inputTerms to inputTerms.- Parameters:
inputTerms
- the new inputTerms- Returns:
- the Expansion builder
-
addExpandedTerms
Adds an expandedTerms to expandedTerms.- Parameters:
expandedTerms
- the new expandedTerms- Returns:
- the Expansion builder
-
inputTerms
Set the inputTerms. Existing inputTerms will be replaced.- Parameters:
inputTerms
- the inputTerms- Returns:
- the Expansion builder
-
expandedTerms
Set the expandedTerms. Existing expandedTerms will be replaced.- Parameters:
expandedTerms
- the expandedTerms- Returns:
- the Expansion builder
-