public static class CollectionDetails.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String name)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
CollectionDetails.Builder |
addEnrichments(CollectionEnrichment enrichments)
Adds a new element to enrichments.
|
CollectionDetails |
build()
Builds a CollectionDetails.
|
CollectionDetails.Builder |
description(String description)
Set the description.
|
CollectionDetails.Builder |
enrichments(List<CollectionEnrichment> enrichments)
Set the enrichments.
|
CollectionDetails.Builder |
language(String language)
Set the language.
|
CollectionDetails.Builder |
name(String name)
Set the name.
|
CollectionDetails.Builder |
ocrEnabled(Boolean ocrEnabled)
Set the ocrEnabled.
|
public Builder()
public Builder(String name)
name
- the namepublic CollectionDetails build()
public CollectionDetails.Builder addEnrichments(CollectionEnrichment enrichments)
enrichments
- the new element to be addedpublic CollectionDetails.Builder name(String name)
name
- the namepublic CollectionDetails.Builder description(String description)
description
- the descriptionpublic CollectionDetails.Builder language(String language)
language
- the languagepublic CollectionDetails.Builder ocrEnabled(Boolean ocrEnabled)
ocrEnabled
- the ocrEnabledpublic CollectionDetails.Builder enrichments(List<CollectionEnrichment> enrichments)
enrichments
- the enrichmentsCopyright © 2024 IBM Cloud. All rights reserved.