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 SummaryConstructors Constructor Description Builder()Instantiates a new builder.
- 
Method SummaryModifier and Type Method Description SentimentOptions.BuilderaddTargets(String targets)Adds an targets to targets.SentimentOptionsbuild()Builds a SentimentOptions.SentimentOptions.Builderdocument(Boolean document)Set the document.SentimentOptions.Buildermodel(String model)Set the model.SentimentOptions.Buildertargets(List<String> targets)Set the targets.
- 
Constructor Details- 
Builderpublic Builder()Instantiates a new builder.
 
- 
- 
Method Details- 
buildBuilds a SentimentOptions.- Returns:
- the new SentimentOptions instance
 
- 
addTargetsAdds an targets to targets.- Parameters:
- targets- the new targets
- Returns:
- the SentimentOptions builder
 
- 
documentSet the document.- Parameters:
- document- the document
- Returns:
- the SentimentOptions builder
 
- 
targetsSet the targets. Existing targets will be replaced.- Parameters:
- targets- the targets
- Returns:
- the SentimentOptions builder
 
- 
modelSet the model.- Parameters:
- model- the model
- Returns:
- the SentimentOptions builder
 
 
-