Class KeywordsOptions.Builder
java.lang.Object
com.ibm.watson.natural_language_understanding.v1.model.KeywordsOptions.Builder
- Enclosing class:
- KeywordsOptions
public static class KeywordsOptions.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder. -
Method Summary
Modifier and Type Method Description KeywordsOptionsbuild()Builds a KeywordsOptions.KeywordsOptions.Builderemotion(Boolean emotion)Set the emotion.KeywordsOptions.Builderlimit(long limit)Set the limit.KeywordsOptions.Buildersentiment(Boolean sentiment)Set the sentiment.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
Builds a KeywordsOptions.- Returns:
- the new KeywordsOptions instance
-
limit
Set the limit.- Parameters:
limit- the limit- Returns:
- the KeywordsOptions builder
-
sentiment
Set the sentiment.- Parameters:
sentiment- the sentiment- Returns:
- the KeywordsOptions builder
-
emotion
Set the emotion.- Parameters:
emotion- the emotion- Returns:
- the KeywordsOptions builder
-