public static class ToneOptions.Builder extends 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(Boolean isHtml)
Sets the text as HTML.
|
public Builder()
public Builder(ToneOptions options)
options - the optionspublic ToneOptions.Builder html(Boolean isHtml)
isHtml - set the text as htmlpublic ToneOptions.Builder addTone(Tone tone)
tone - the tonepublic ToneOptions build()
ToneOptions object.Copyright © 2015–2016 IBM Watson. All rights reserved.