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