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 Summary
-
Method Summary
Modifier and Type Method Description DialogNode.Builderactions(List<DialogNodeAction> actions)Set the actions.DialogNode.BuilderaddActions(DialogNodeAction actions)Adds an actions to actions.DialogNodebuild()Builds a DialogNode.DialogNode.Builderconditions(String conditions)Set the conditions.DialogNode.Buildercontext(DialogNodeContext context)Set the context.DialogNode.Builderdescription(String description)Set the description.DialogNode.BuilderdialogNode(String dialogNode)Set the dialogNode.DialogNode.BuilderdigressIn(String digressIn)Set the digressIn.DialogNode.BuilderdigressOut(String digressOut)Set the digressOut.DialogNode.BuilderdigressOutSlots(String digressOutSlots)Set the digressOutSlots.DialogNode.BuilderdisambiguationOptOut(Boolean disambiguationOptOut)Set the disambiguationOptOut.DialogNode.BuildereventName(String eventName)Set the eventName.DialogNode.Buildermetadata(Map<String,Object> metadata)Set the metadata.DialogNode.BuildernextStep(DialogNodeNextStep nextStep)Set the nextStep.DialogNode.Builderoutput(DialogNodeOutput output)Set the output.DialogNode.Builderparent(String parent)Set the parent.DialogNode.BuilderpreviousSibling(String previousSibling)Set the previousSibling.DialogNode.Buildertitle(String title)Set the title.DialogNode.Buildertype(String type)Set the type.DialogNode.BuilderuserLabel(String userLabel)Set the userLabel.DialogNode.Buildervariable(String variable)Set the variable.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
dialogNode- the dialogNode
-
-
Method Details
-
build
Builds a DialogNode.- Returns:
- the new DialogNode instance
-
addActions
Adds an actions to actions.- Parameters:
actions- the new actions- Returns:
- the DialogNode builder
-
dialogNode
Set the dialogNode.- Parameters:
dialogNode- the dialogNode- Returns:
- the DialogNode builder
-
description
Set the description.- Parameters:
description- the description- Returns:
- the DialogNode builder
-
conditions
Set the conditions.- Parameters:
conditions- the conditions- Returns:
- the DialogNode builder
-
parent
Set the parent.- Parameters:
parent- the parent- Returns:
- the DialogNode builder
-
previousSibling
Set the previousSibling.- Parameters:
previousSibling- the previousSibling- Returns:
- the DialogNode builder
-
output
Set the output.- Parameters:
output- the output- Returns:
- the DialogNode builder
-
context
Set the context.- Parameters:
context- the context- Returns:
- the DialogNode builder
-
metadata
Set the metadata.- Parameters:
metadata- the metadata- Returns:
- the DialogNode builder
-
nextStep
Set the nextStep.- Parameters:
nextStep- the nextStep- Returns:
- the DialogNode builder
-
title
Set the title.- Parameters:
title- the title- Returns:
- the DialogNode builder
-
type
Set the type.- Parameters:
type- the type- Returns:
- the DialogNode builder
-
eventName
Set the eventName.- Parameters:
eventName- the eventName- Returns:
- the DialogNode builder
-
variable
Set the variable.- Parameters:
variable- the variable- Returns:
- the DialogNode builder
-
actions
Set the actions. Existing actions will be replaced.- Parameters:
actions- the actions- Returns:
- the DialogNode builder
-
digressIn
Set the digressIn.- Parameters:
digressIn- the digressIn- Returns:
- the DialogNode builder
-
digressOut
Set the digressOut.- Parameters:
digressOut- the digressOut- Returns:
- the DialogNode builder
-
digressOutSlots
Set the digressOutSlots.- Parameters:
digressOutSlots- the digressOutSlots- Returns:
- the DialogNode builder
-
userLabel
Set the userLabel.- Parameters:
userLabel- the userLabel- Returns:
- the DialogNode builder
-
disambiguationOptOut
Set the disambiguationOptOut.- Parameters:
disambiguationOptOut- the disambiguationOptOut- Returns:
- the DialogNode builder
-