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 a new element 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 |
ocrEnabled(Boolean ocrEnabled)
Set the ocrEnabled.
|
CreateCollectionOptions.Builder |
projectId(String projectId)
Set the projectId.
|
public CreateCollectionOptions build()
public CreateCollectionOptions.Builder addEnrichments(CollectionEnrichment enrichments)
enrichments
- the new element to be addedpublic 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 ocrEnabled(Boolean ocrEnabled)
ocrEnabled
- the ocrEnabledpublic CreateCollectionOptions.Builder enrichments(List<CollectionEnrichment> enrichments)
enrichments
- the enrichmentspublic CreateCollectionOptions.Builder collectionDetails(CollectionDetails collectionDetails)
collectionDetails
- the collectionDetailsCopyright © 2024 IBM Cloud. All rights reserved.