Class NluEnrichmentEntities.Builder
java.lang.Object
com.ibm.watson.discovery.v1.model.NluEnrichmentEntities.Builder
- Enclosing class:
- NluEnrichmentEntities
public static class NluEnrichmentEntities.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder. -
Method Summary
Modifier and Type Method Description NluEnrichmentEntities
build()
Builds a NluEnrichmentEntities.NluEnrichmentEntities.Builder
emotion(Boolean emotion)
Set the emotion.NluEnrichmentEntities.Builder
limit(long limit)
Set the limit.NluEnrichmentEntities.Builder
mentions(Boolean mentions)
Set the mentions.NluEnrichmentEntities.Builder
mentionTypes(Boolean mentionTypes)
Set the mentionTypes.NluEnrichmentEntities.Builder
model(String model)
Set the model.NluEnrichmentEntities.Builder
sentenceLocations(Boolean sentenceLocations)
Set the sentenceLocations.NluEnrichmentEntities.Builder
sentiment(Boolean sentiment)
Set the sentiment.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
Builds a NluEnrichmentEntities.- Returns:
- the new NluEnrichmentEntities instance
-
sentiment
Set the sentiment.- Parameters:
sentiment
- the sentiment- Returns:
- the NluEnrichmentEntities builder
-
emotion
Set the emotion.- Parameters:
emotion
- the emotion- Returns:
- the NluEnrichmentEntities builder
-
limit
Set the limit.- Parameters:
limit
- the limit- Returns:
- the NluEnrichmentEntities builder
-
mentions
Set the mentions.- Parameters:
mentions
- the mentions- Returns:
- the NluEnrichmentEntities builder
-
mentionTypes
Set the mentionTypes.- Parameters:
mentionTypes
- the mentionTypes- Returns:
- the NluEnrichmentEntities builder
-
sentenceLocations
Set the sentenceLocations.- Parameters:
sentenceLocations
- the sentenceLocations- Returns:
- the NluEnrichmentEntities builder
-
model
Set the model.- Parameters:
model
- the model- Returns:
- the NluEnrichmentEntities builder
-