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.Builder
actions(List<DialogNodeAction> actions)
Set the actions.DialogNode.Builder
addActions(DialogNodeAction actions)
Adds an actions to actions.DialogNode
build()
Builds a DialogNode.DialogNode.Builder
conditions(String conditions)
Set the conditions.DialogNode.Builder
context(DialogNodeContext context)
Set the context.DialogNode.Builder
description(String description)
Set the description.DialogNode.Builder
dialogNode(String dialogNode)
Set the dialogNode.DialogNode.Builder
digressIn(String digressIn)
Set the digressIn.DialogNode.Builder
digressOut(String digressOut)
Set the digressOut.DialogNode.Builder
digressOutSlots(String digressOutSlots)
Set the digressOutSlots.DialogNode.Builder
disambiguationOptOut(Boolean disambiguationOptOut)
Set the disambiguationOptOut.DialogNode.Builder
eventName(String eventName)
Set the eventName.DialogNode.Builder
metadata(Map<String,Object> metadata)
Set the metadata.DialogNode.Builder
nextStep(DialogNodeNextStep nextStep)
Set the nextStep.DialogNode.Builder
output(DialogNodeOutput output)
Set the output.DialogNode.Builder
parent(String parent)
Set the parent.DialogNode.Builder
previousSibling(String previousSibling)
Set the previousSibling.DialogNode.Builder
title(String title)
Set the title.DialogNode.Builder
type(String type)
Set the type.DialogNode.Builder
userLabel(String userLabel)
Set the userLabel.DialogNode.Builder
variable(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
-