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