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 Details

    • Builder

      public Builder()
      Instantiates a new builder.
  • Method Details

    • build

      public MessageInput build()
      Builds a MessageInput.
      Returns:
      the new MessageInput instance
    • text

      public MessageInput.Builder text​(String text)
      Set the text.
      Parameters:
      text - the text
      Returns:
      the MessageInput builder
    • spellingSuggestions

      public MessageInput.Builder spellingSuggestions​(Boolean spellingSuggestions)
      Set the spellingSuggestions.
      Parameters:
      spellingSuggestions - the spellingSuggestions
      Returns:
      the MessageInput builder
    • spellingAutoCorrect

      public MessageInput.Builder spellingAutoCorrect​(Boolean spellingAutoCorrect)
      Set the spellingAutoCorrect.
      Parameters:
      spellingAutoCorrect - the spellingAutoCorrect
      Returns:
      the MessageInput builder
    • add

      public MessageInput.Builder add​(String name, Object value)
      Add an arbitrary property.
      Parameters:
      name - the name of the property to add
      value - the value of the property to add
      Returns:
      the MessageInput builder