public static class ToneChatOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
ToneChatOptions.Builder()
Instantiates a new builder.
|
ToneChatOptions.Builder(java.util.List<Utterance> utterances)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
ToneChatOptions.Builder |
acceptLanguage(java.lang.String acceptLanguage)
Set the acceptLanguage.
|
ToneChatOptions.Builder |
addUtterances(Utterance utterances)
Adds an utterances to utterances.
|
ToneChatOptions |
build()
Builds a ToneChatOptions.
|
ToneChatOptions.Builder |
utterances(java.util.List<Utterance> utterances)
Set the utterances.
|
public ToneChatOptions.Builder()
public ToneChatOptions.Builder(java.util.List<Utterance> utterances)
utterances
- the utterancespublic ToneChatOptions build()
public ToneChatOptions.Builder addUtterances(Utterance utterances)
utterances
- the new utterancespublic ToneChatOptions.Builder utterances(java.util.List<Utterance> utterances)
utterances
- the utterancespublic ToneChatOptions.Builder acceptLanguage(java.lang.String acceptLanguage)
acceptLanguage
- the acceptLanguage