Class NluEnrichmentEmotion.Builder
java.lang.Object
com.ibm.watson.discovery.v1.model.NluEnrichmentEmotion.Builder
- Enclosing class:
- NluEnrichmentEmotion
public static class NluEnrichmentEmotion.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder. -
Method Summary
Modifier and Type Method Description NluEnrichmentEmotion.BuilderaddTarget(String target)Adds an target to targets.NluEnrichmentEmotionbuild()Builds a NluEnrichmentEmotion.NluEnrichmentEmotion.Builderdocument(Boolean document)Set the document.NluEnrichmentEmotion.Buildertargets(List<String> targets)Set the targets.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
Builds a NluEnrichmentEmotion.- Returns:
- the new NluEnrichmentEmotion instance
-
addTarget
Adds an target to targets.- Parameters:
target- the new target- Returns:
- the NluEnrichmentEmotion builder
-
document
Set the document.- Parameters:
document- the document- Returns:
- the NluEnrichmentEmotion builder
-
targets
Set the targets. Existing targets will be replaced.- Parameters:
targets- the targets- Returns:
- the NluEnrichmentEmotion builder
-