public static class ToneOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
ToneOptions.Builder |
addTone(java.lang.String tone)
Adds an tone to tones.
|
ToneOptions |
build()
Builds a ToneOptions.
|
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 tones(java.util.List<java.lang.String> tones)
tones
- the tonespublic ToneOptions.Builder sentences(java.lang.Boolean sentences)
sentences
- the sentencespublic 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