public static class MessageInput.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
MessageInput.Builder |
add(String name,
Object value)
Add an arbitrary property.
|
MessageInput |
build()
Builds a MessageInput.
|
MessageInput.Builder |
spellingAutoCorrect(Boolean spellingAutoCorrect)
Set the spellingAutoCorrect.
|
MessageInput.Builder |
spellingSuggestions(Boolean spellingSuggestions)
Set the spellingSuggestions.
|
MessageInput.Builder |
text(String text)
Set the text.
|
public MessageInput build()
public MessageInput.Builder text(String text)
text
- the textpublic MessageInput.Builder spellingSuggestions(Boolean spellingSuggestions)
spellingSuggestions
- the spellingSuggestionspublic MessageInput.Builder spellingAutoCorrect(Boolean spellingAutoCorrect)
spellingAutoCorrect
- the spellingAutoCorrectpublic MessageInput.Builder add(String name, Object value)
name
- the name of the property to addvalue
- the value of the property to addCopyright © 2022 IBM Cloud. All rights reserved.