Class MessageOptions.Builder

java.lang.Object
com.ibm.watson.assistant.v1.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 workspaceId)
      Instantiates a new builder with required properties.
      Parameters:
      workspaceId - the workspaceId
  • Method Details

    • build

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

      public MessageOptions.Builder addIntent​(RuntimeIntent intent)
      Adds an intent to intents.
      Parameters:
      intent - the new intent
      Returns:
      the MessageOptions builder
    • addEntity

      public MessageOptions.Builder addEntity​(RuntimeEntity entity)
      Adds an entity to entities.
      Parameters:
      entity - the new entity
      Returns:
      the MessageOptions builder
    • workspaceId

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

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

      public MessageOptions.Builder intents​(List<RuntimeIntent> intents)
      Set the intents. Existing intents will be replaced.
      Parameters:
      intents - the intents
      Returns:
      the MessageOptions builder
    • entities

      public MessageOptions.Builder entities​(List<RuntimeEntity> entities)
      Set the entities. Existing entities will be replaced.
      Parameters:
      entities - the entities
      Returns:
      the MessageOptions builder
    • alternateIntents

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

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

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

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

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

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