Class MessageOptions.Builder

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

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(String assistantId, String sessionId)
      Instantiates a new builder with required properties.
      Parameters:
      assistantId - the assistantId
      sessionId - the sessionId
  • Method Details

    • build

      public MessageOptions build()
      Builds a MessageOptions.
      Returns:
      the new MessageOptions instance
    • assistantId

      public MessageOptions.Builder assistantId​(String assistantId)
      Set the assistantId.
      Parameters:
      assistantId - the assistantId
      Returns:
      the MessageOptions builder
    • sessionId

      public MessageOptions.Builder sessionId​(String sessionId)
      Set the sessionId.
      Parameters:
      sessionId - the sessionId
      Returns:
      the MessageOptions builder
    • input

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

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

      public MessageOptions.Builder userId​(String userId)
      Set the userId.
      Parameters:
      userId - the userId
      Returns:
      the MessageOptions builder
    • messageRequest

      public MessageOptions.Builder messageRequest​(MessageRequest messageRequest)
      Set the messageRequest.
      Parameters:
      messageRequest - the messageRequest
      Returns:
      the MessageOptions builder