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