Class MessageRequest.Builder

java.lang.Object
com.ibm.watson.assistant.v2.model.MessageRequest.Builder
Enclosing class:
MessageRequest

public static class MessageRequest.Builder
extends Object
Builder.
  • Constructor Details

    • Builder

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

    • build

      public MessageRequest build()
      Builds a MessageRequest.
      Returns:
      the new MessageRequest instance
    • input

      public MessageRequest.Builder input​(MessageInput input)
      Set the input.
      Parameters:
      input - the input
      Returns:
      the MessageRequest builder
    • context

      public MessageRequest.Builder context​(MessageContext context)
      Set the context.
      Parameters:
      context - the context
      Returns:
      the MessageRequest builder
    • userId

      public MessageRequest.Builder userId​(String userId)
      Set the userId.
      Parameters:
      userId - the userId
      Returns:
      the MessageRequest builder