Class DialogNode.Builder

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

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

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

    • build

      public DialogNode build()
      Builds a DialogNode.
      Returns:
      the new DialogNode instance
    • addActions

      public DialogNode.Builder addActions​(DialogNodeAction actions)
      Adds an actions to actions.
      Parameters:
      actions - the new actions
      Returns:
      the DialogNode builder
    • dialogNode

      public DialogNode.Builder dialogNode​(String dialogNode)
      Set the dialogNode.
      Parameters:
      dialogNode - the dialogNode
      Returns:
      the DialogNode builder
    • description

      public DialogNode.Builder description​(String description)
      Set the description.
      Parameters:
      description - the description
      Returns:
      the DialogNode builder
    • conditions

      public DialogNode.Builder conditions​(String conditions)
      Set the conditions.
      Parameters:
      conditions - the conditions
      Returns:
      the DialogNode builder
    • parent

      public DialogNode.Builder parent​(String parent)
      Set the parent.
      Parameters:
      parent - the parent
      Returns:
      the DialogNode builder
    • previousSibling

      public DialogNode.Builder previousSibling​(String previousSibling)
      Set the previousSibling.
      Parameters:
      previousSibling - the previousSibling
      Returns:
      the DialogNode builder
    • output

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

      public DialogNode.Builder context​(DialogNodeContext context)
      Set the context.
      Parameters:
      context - the context
      Returns:
      the DialogNode builder
    • metadata

      public DialogNode.Builder metadata​(Map<String,​Object> metadata)
      Set the metadata.
      Parameters:
      metadata - the metadata
      Returns:
      the DialogNode builder
    • nextStep

      public DialogNode.Builder nextStep​(DialogNodeNextStep nextStep)
      Set the nextStep.
      Parameters:
      nextStep - the nextStep
      Returns:
      the DialogNode builder
    • title

      public DialogNode.Builder title​(String title)
      Set the title.
      Parameters:
      title - the title
      Returns:
      the DialogNode builder
    • type

      public DialogNode.Builder type​(String type)
      Set the type.
      Parameters:
      type - the type
      Returns:
      the DialogNode builder
    • eventName

      public DialogNode.Builder eventName​(String eventName)
      Set the eventName.
      Parameters:
      eventName - the eventName
      Returns:
      the DialogNode builder
    • variable

      public DialogNode.Builder variable​(String variable)
      Set the variable.
      Parameters:
      variable - the variable
      Returns:
      the DialogNode builder
    • actions

      public DialogNode.Builder actions​(List<DialogNodeAction> actions)
      Set the actions. Existing actions will be replaced.
      Parameters:
      actions - the actions
      Returns:
      the DialogNode builder
    • digressIn

      public DialogNode.Builder digressIn​(String digressIn)
      Set the digressIn.
      Parameters:
      digressIn - the digressIn
      Returns:
      the DialogNode builder
    • digressOut

      public DialogNode.Builder digressOut​(String digressOut)
      Set the digressOut.
      Parameters:
      digressOut - the digressOut
      Returns:
      the DialogNode builder
    • digressOutSlots

      public DialogNode.Builder digressOutSlots​(String digressOutSlots)
      Set the digressOutSlots.
      Parameters:
      digressOutSlots - the digressOutSlots
      Returns:
      the DialogNode builder
    • userLabel

      public DialogNode.Builder userLabel​(String userLabel)
      Set the userLabel.
      Parameters:
      userLabel - the userLabel
      Returns:
      the DialogNode builder
    • disambiguationOptOut

      public DialogNode.Builder disambiguationOptOut​(Boolean disambiguationOptOut)
      Set the disambiguationOptOut.
      Parameters:
      disambiguationOptOut - the disambiguationOptOut
      Returns:
      the DialogNode builder