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