public static class ToneOptions.Builder
extends java.lang.Object
| Constructor and Description |
|---|
ToneOptions.Builder()
Instantiates a new builder.
|
| Modifier and Type | Method and Description |
|---|---|
ToneOptions.Builder |
acceptLanguage(java.lang.String acceptLanguage)
Set the acceptLanguage.
|
ToneOptions.Builder |
addTone(java.lang.String tone)
Adds an tone to tones.
|
ToneOptions |
build()
Builds a ToneOptions.
|
ToneOptions.Builder |
contentLanguage(java.lang.String contentLanguage)
Set the contentLanguage.
|
ToneOptions.Builder |
html(java.lang.String html)
Set the html.
|
ToneOptions.Builder |
sentences(java.lang.Boolean sentences)
Set the sentences.
|
ToneOptions.Builder |
text(java.lang.String text)
Set the text.
|
ToneOptions.Builder |
toneInput(ToneInput toneInput)
Set the toneInput.
|
ToneOptions.Builder |
tones(java.util.List<java.lang.String> tones)
Set the tones.
|
public ToneOptions build()
public ToneOptions.Builder addTone(java.lang.String tone)
tone - the new tonepublic ToneOptions.Builder sentences(java.lang.Boolean sentences)
sentences - the sentencespublic ToneOptions.Builder tones(java.util.List<java.lang.String> tones)
tones - the tonespublic ToneOptions.Builder contentLanguage(java.lang.String contentLanguage)
contentLanguage - the contentLanguagepublic ToneOptions.Builder acceptLanguage(java.lang.String acceptLanguage)
acceptLanguage - the acceptLanguagepublic ToneOptions.Builder toneInput(ToneInput toneInput)
toneInput - the toneInputpublic ToneOptions.Builder text(java.lang.String text)
text - the textpublic ToneOptions.Builder html(java.lang.String html)
html - the html