public static class CreateDocumentClassifier.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String name,
String language,
String answerField)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
CreateDocumentClassifier.Builder |
addEnrichments(DocumentClassifierEnrichment enrichments)
Adds an enrichments to enrichments.
|
CreateDocumentClassifier.Builder |
answerField(String answerField)
Set the answerField.
|
CreateDocumentClassifier |
build()
Builds a CreateDocumentClassifier.
|
CreateDocumentClassifier.Builder |
description(String description)
Set the description.
|
CreateDocumentClassifier.Builder |
enrichments(List<DocumentClassifierEnrichment> enrichments)
Set the enrichments.
|
CreateDocumentClassifier.Builder |
federatedClassification(ClassifierFederatedModel federatedClassification)
Set the federatedClassification.
|
CreateDocumentClassifier.Builder |
language(String language)
Set the language.
|
CreateDocumentClassifier.Builder |
name(String name)
Set the name.
|
public CreateDocumentClassifier build()
public CreateDocumentClassifier.Builder addEnrichments(DocumentClassifierEnrichment enrichments)
enrichments
- the new enrichmentspublic CreateDocumentClassifier.Builder name(String name)
name
- the namepublic CreateDocumentClassifier.Builder description(String description)
description
- the descriptionpublic CreateDocumentClassifier.Builder language(String language)
language
- the languagepublic CreateDocumentClassifier.Builder answerField(String answerField)
answerField
- the answerFieldpublic CreateDocumentClassifier.Builder enrichments(List<DocumentClassifierEnrichment> enrichments)
enrichments
- the enrichmentspublic CreateDocumentClassifier.Builder federatedClassification(ClassifierFederatedModel federatedClassification)
federatedClassification
- the federatedClassificationCopyright © 2022 IBM Cloud. All rights reserved.