public static class ToneOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(ToneOptions options)
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
ToneOptions.Builder |
addTone(Tone tone)
Adds the tone.
|
ToneOptions |
build()
Builds the
ToneOptions object. |
ToneOptions.Builder |
html(java.lang.Boolean isHtml)
Sets the text as HTML.
|
ToneOptions.Builder |
includeSentences(java.lang.Boolean sentences)
Indicates whether to return sentence-level tone analysis.
|
public Builder()
public Builder(ToneOptions options)
options
- the optionspublic ToneOptions.Builder html(java.lang.Boolean isHtml)
isHtml
- sets the text as htmlpublic ToneOptions.Builder includeSentences(java.lang.Boolean sentences)
sentences
- sets sentence-level analysis.public ToneOptions.Builder addTone(Tone tone)
tone
- the tone to addpublic ToneOptions build()
ToneOptions
object.