public static class CreateCollectionOptions.Builder extends Object
| Constructor and Description |
|---|
Builder()
Instantiates a new builder.
|
Builder(String projectId,
String name)
Instantiates a new builder with required properties.
|
| Modifier and Type | Method and 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.
|
public CreateCollectionOptions build()
public CreateCollectionOptions.Builder addEnrichments(CollectionEnrichment enrichments)
enrichments - the new enrichmentspublic CreateCollectionOptions.Builder projectId(String projectId)
projectId - the projectIdpublic CreateCollectionOptions.Builder name(String name)
name - the namepublic CreateCollectionOptions.Builder description(String description)
description - the descriptionpublic CreateCollectionOptions.Builder language(String language)
language - the languagepublic CreateCollectionOptions.Builder enrichments(List<CollectionEnrichment> enrichments)
enrichments - the enrichmentspublic CreateCollectionOptions.Builder collectionDetails(CollectionDetails collectionDetails)
collectionDetails - the collectionDetailsCopyright © 2022 IBM Cloud. All rights reserved.