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.Builder
addEnrichments(CollectionEnrichment enrichments)
Adds an enrichments to enrichments.CreateCollectionOptions
build()
Builds a CreateCollectionOptions.CreateCollectionOptions.Builder
collectionDetails(CollectionDetails collectionDetails)
Set the collectionDetails.CreateCollectionOptions.Builder
description(String description)
Set the description.CreateCollectionOptions.Builder
enrichments(List<CollectionEnrichment> enrichments)
Set the enrichments.CreateCollectionOptions.Builder
language(String language)
Set the language.CreateCollectionOptions.Builder
name(String name)
Set the name.CreateCollectionOptions.Builder
projectId(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
-