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.BuilderaddTargets(String targets)Adds an targets to targets.EmotionOptionsbuild()Builds a EmotionOptions.EmotionOptions.Builderdocument(Boolean document)Set the document.EmotionOptions.Buildertargets(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
-