Class Expansions.Builder
java.lang.Object
com.ibm.watson.discovery.v1.model.Expansions.Builder
- Enclosing class:
- Expansions
public static class Expansions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Expansions.Builder
addExpansions(Expansion expansions)
Adds an expansions to expansions.Expansions
build()
Builds a Expansions.Expansions.Builder
expansions(List<Expansion> expansions)
Set the expansions.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
expansions
- the expansions
-
-
Method Details
-
build
Builds a Expansions.- Returns:
- the new Expansions instance
-
addExpansions
Adds an expansions to expansions.- Parameters:
expansions
- the new expansions- Returns:
- the Expansions builder
-
expansions
Set the expansions. Existing expansions will be replaced.- Parameters:
expansions
- the expansions- Returns:
- the Expansions builder
-