Class OutputData.Builder

java.lang.Object
com.ibm.watson.assistant.v1.model.OutputData.Builder
Enclosing class:
OutputData

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(List<LogMessage> logMessages, List<String> text)
      Instantiates a new builder with required properties.
      Parameters:
      logMessages - the logMessages
      text - the text
  • Method Details

    • build

      public OutputData build()
      Builds a OutputData.
      Returns:
      the new OutputData instance
    • addNodesVisited

      public OutputData.Builder addNodesVisited​(String nodesVisited)
      Adds an nodesVisited to nodesVisited.
      Parameters:
      nodesVisited - the new nodesVisited
      Returns:
      the OutputData builder
    • addNodesVisitedDetails

      public OutputData.Builder addNodesVisitedDetails​(DialogNodeVisitedDetails nodesVisitedDetails)
      Adds an nodesVisitedDetails to nodesVisitedDetails.
      Parameters:
      nodesVisitedDetails - the new nodesVisitedDetails
      Returns:
      the OutputData builder
    • addLogMessages

      public OutputData.Builder addLogMessages​(LogMessage logMessages)
      Adds an logMessages to logMessages.
      Parameters:
      logMessages - the new logMessages
      Returns:
      the OutputData builder
    • addText

      public OutputData.Builder addText​(String text)
      Adds an text to text.
      Parameters:
      text - the new text
      Returns:
      the OutputData builder
    • addGeneric

      public OutputData.Builder addGeneric​(RuntimeResponseGeneric generic)
      Adds an generic to generic.
      Parameters:
      generic - the new generic
      Returns:
      the OutputData builder
    • nodesVisited

      public OutputData.Builder nodesVisited​(List<String> nodesVisited)
      Set the nodesVisited. Existing nodesVisited will be replaced.
      Parameters:
      nodesVisited - the nodesVisited
      Returns:
      the OutputData builder
    • nodesVisitedDetails

      public OutputData.Builder nodesVisitedDetails​(List<DialogNodeVisitedDetails> nodesVisitedDetails)
      Set the nodesVisitedDetails. Existing nodesVisitedDetails will be replaced.
      Parameters:
      nodesVisitedDetails - the nodesVisitedDetails
      Returns:
      the OutputData builder
    • logMessages

      public OutputData.Builder logMessages​(List<LogMessage> logMessages)
      Set the logMessages. Existing logMessages will be replaced.
      Parameters:
      logMessages - the logMessages
      Returns:
      the OutputData builder
    • text

      public OutputData.Builder text​(List<String> text)
      Set the text. Existing text will be replaced.
      Parameters:
      text - the text
      Returns:
      the OutputData builder
    • generic

      public OutputData.Builder generic​(List<RuntimeResponseGeneric> generic)
      Set the generic. Existing generic will be replaced.
      Parameters:
      generic - the generic
      Returns:
      the OutputData builder
    • add

      public OutputData.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 OutputData builder