Class MessageInput.Builder
java.lang.Object
com.ibm.watson.assistant.v1.model.MessageInput.Builder
- Enclosing class:
- MessageInput
public static class MessageInput.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder. -
Method Summary
Modifier and Type Method 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.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
Builds a MessageInput.- Returns:
- the new MessageInput instance
-
text
Set the text.- Parameters:
text
- the text- Returns:
- the MessageInput builder
-
spellingSuggestions
Set the spellingSuggestions.- Parameters:
spellingSuggestions
- the spellingSuggestions- Returns:
- the MessageInput builder
-
spellingAutoCorrect
Set the spellingAutoCorrect.- Parameters:
spellingAutoCorrect
- the spellingAutoCorrect- Returns:
- the MessageInput builder
-
add
Add an arbitrary property.- Parameters:
name
- the name of the property to addvalue
- the value of the property to add- Returns:
- the MessageInput builder
-