Class CreateCollectionOptions.Builder
java.lang.Object
com.ibm.watson.discovery.v1.model.CreateCollectionOptions.Builder
- Enclosing class:
- CreateCollectionOptions
public static class CreateCollectionOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description CreateCollectionOptionsbuild()Builds a CreateCollectionOptions.CreateCollectionOptions.BuilderconfigurationId(String configurationId)Set the configurationId.CreateCollectionOptions.Builderdescription(String description)Set the description.CreateCollectionOptions.BuilderenvironmentId(String environmentId)Set the environmentId.CreateCollectionOptions.Builderlanguage(String language)Set the language.CreateCollectionOptions.Buildername(String name)Set the name.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
environmentId- the environmentIdname- the name
-
-
Method Details
-
build
Builds a CreateCollectionOptions.- Returns:
- the new CreateCollectionOptions instance
-
environmentId
Set the environmentId.- Parameters:
environmentId- the environmentId- Returns:
- the CreateCollectionOptions builder
-
name
Set the name.- Parameters:
name- the name- Returns:
- the CreateCollectionOptions builder
-
description
Set the description.- Parameters:
description- the description- Returns:
- the CreateCollectionOptions builder
-
configurationId
Set the configurationId.- Parameters:
configurationId- the configurationId- Returns:
- the CreateCollectionOptions builder
-
language
Set the language.- Parameters:
language- the language- Returns:
- the CreateCollectionOptions builder
-