Class CreateExpansionsOptions.Builder
java.lang.Object
com.ibm.watson.discovery.v1.model.CreateExpansionsOptions.Builder
- Enclosing class:
- CreateExpansionsOptions
public static class CreateExpansionsOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description CreateExpansionsOptions.Builder
addExpansions(Expansion expansions)
Adds an expansions to expansions.CreateExpansionsOptions
build()
Builds a CreateExpansionsOptions.CreateExpansionsOptions.Builder
collectionId(String collectionId)
Set the collectionId.CreateExpansionsOptions.Builder
environmentId(String environmentId)
Set the environmentId.CreateExpansionsOptions.Builder
expansions(Expansions expansions)
Set the expansions.CreateExpansionsOptions.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:
environmentId
- the environmentIdcollectionId
- the collectionIdexpansions
- the expansions
-
-
Method Details
-
build
Builds a CreateExpansionsOptions.- Returns:
- the new CreateExpansionsOptions instance
-
addExpansions
Adds an expansions to expansions.- Parameters:
expansions
- the new expansions- Returns:
- the CreateExpansionsOptions builder
-
environmentId
Set the environmentId.- Parameters:
environmentId
- the environmentId- Returns:
- the CreateExpansionsOptions builder
-
collectionId
Set the collectionId.- Parameters:
collectionId
- the collectionId- Returns:
- the CreateExpansionsOptions builder
-
expansions
Set the expansions. Existing expansions will be replaced.- Parameters:
expansions
- the expansions- Returns:
- the CreateExpansionsOptions builder
-
expansions
Set the expansions.- Parameters:
expansions
- the expansions- Returns:
- the CreateExpansionsOptions builder
-