Class ToneChatOptions.Builder
java.lang.Object
com.ibm.watson.tone_analyzer.v3.model.ToneChatOptions.Builder
- Enclosing class:
- ToneChatOptions
public static class ToneChatOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description ToneChatOptions.Builder
acceptLanguage(String acceptLanguage)
Set the acceptLanguage.ToneChatOptions.Builder
addUtterances(Utterance utterances)
Adds an utterances to utterances.ToneChatOptions
build()
Builds a ToneChatOptions.ToneChatOptions.Builder
contentLanguage(String contentLanguage)
Set the contentLanguage.ToneChatOptions.Builder
utterances(List<Utterance> utterances)
Set the utterances.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
utterances
- the utterances
-
-
Method Details
-
build
Builds a ToneChatOptions.- Returns:
- the new ToneChatOptions instance
-
addUtterances
Adds an utterances to utterances.- Parameters:
utterances
- the new utterances- Returns:
- the ToneChatOptions builder
-
utterances
Set the utterances. Existing utterances will be replaced.- Parameters:
utterances
- the utterances- Returns:
- the ToneChatOptions builder
-
contentLanguage
Set the contentLanguage.- Parameters:
contentLanguage
- the contentLanguage- Returns:
- the ToneChatOptions builder
-
acceptLanguage
Set the acceptLanguage.- Parameters:
acceptLanguage
- the acceptLanguage- Returns:
- the ToneChatOptions builder
-