public static class NluEnrichmentSentiment.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
NluEnrichmentSentiment.Builder |
addTarget(String target)
Adds a new element to targets.
|
NluEnrichmentSentiment |
build()
Builds a NluEnrichmentSentiment.
|
NluEnrichmentSentiment.Builder |
document(Boolean document)
Set the document.
|
NluEnrichmentSentiment.Builder |
targets(List<String> targets)
Set the targets.
|
public NluEnrichmentSentiment build()
public NluEnrichmentSentiment.Builder addTarget(String target)
target
- the new element to be addedpublic NluEnrichmentSentiment.Builder document(Boolean document)
document
- the documentpublic NluEnrichmentSentiment.Builder targets(List<String> targets)
targets
- the targetsCopyright © 2024 IBM Cloud. All rights reserved.