public static class ToneChatOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(List<Utterance> utterances)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and 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.
|
public ToneChatOptions build()
public ToneChatOptions.Builder addUtterances(Utterance utterances)
utterances
- the new utterancespublic ToneChatOptions.Builder utterances(List<Utterance> utterances)
utterances
- the utterancespublic ToneChatOptions.Builder contentLanguage(String contentLanguage)
contentLanguage
- the contentLanguagepublic ToneChatOptions.Builder acceptLanguage(String acceptLanguage)
acceptLanguage
- the acceptLanguageCopyright © 2021 IBM Cloud. All rights reserved.