Class CreateCollectionOptions.Builder
java.lang.Object
com.ibm.watson.discovery.v2.model.CreateCollectionOptions.Builder
- Enclosing class:
- CreateCollectionOptions
public static class CreateCollectionOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description CreateCollectionOptions.BuilderaddEnrichments(CollectionEnrichment enrichments)Adds an enrichments to enrichments.CreateCollectionOptionsbuild()Builds a CreateCollectionOptions.CreateCollectionOptions.BuildercollectionDetails(CollectionDetails collectionDetails)Set the collectionDetails.CreateCollectionOptions.Builderdescription(String description)Set the description.CreateCollectionOptions.Builderenrichments(List<CollectionEnrichment> enrichments)Set the enrichments.CreateCollectionOptions.Builderlanguage(String language)Set the language.CreateCollectionOptions.Buildername(String name)Set the name.CreateCollectionOptions.BuilderprojectId(String projectId)Set the projectId.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
projectId- the projectIdname- the name
-
-
Method Details
-
build
Builds a CreateCollectionOptions.- Returns:
- the new CreateCollectionOptions instance
-
addEnrichments
Adds an enrichments to enrichments.- Parameters:
enrichments- the new enrichments- Returns:
- the CreateCollectionOptions builder
-
projectId
Set the projectId.- Parameters:
projectId- the projectId- 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
-
language
Set the language.- Parameters:
language- the language- Returns:
- the CreateCollectionOptions builder
-
enrichments
Set the enrichments. Existing enrichments will be replaced.- Parameters:
enrichments- the enrichments- Returns:
- the CreateCollectionOptions builder
-
collectionDetails
Set the collectionDetails.- Parameters:
collectionDetails- the collectionDetails- Returns:
- the CreateCollectionOptions builder
-