Class UpdateDialogNode.Builder

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

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

    • Builder

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

    • build

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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