Class DialogNodeOutput.Builder
java.lang.Object
com.ibm.watson.assistant.v1.model.DialogNodeOutput.Builder
- Enclosing class:
- DialogNodeOutput
public static class DialogNodeOutput.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder. -
Method Summary
Modifier and Type Method Description DialogNodeOutput.Builder
add(String name, Object value)
Add an arbitrary property.DialogNodeOutput.Builder
addGeneric(DialogNodeOutputGeneric generic)
Adds an generic to generic.DialogNodeOutput
build()
Builds a DialogNodeOutput.DialogNodeOutput.Builder
generic(List<DialogNodeOutputGeneric> generic)
Set the generic.DialogNodeOutput.Builder
integrations(Map<String,Map<String,Object>> integrations)
Set the integrations.DialogNodeOutput.Builder
modifiers(DialogNodeOutputModifiers modifiers)
Set the modifiers.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
Builds a DialogNodeOutput.- Returns:
- the new DialogNodeOutput instance
-
addGeneric
Adds an generic to generic.- Parameters:
generic
- the new generic- Returns:
- the DialogNodeOutput builder
-
generic
Set the generic. Existing generic will be replaced.- Parameters:
generic
- the generic- Returns:
- the DialogNodeOutput builder
-
integrations
Set the integrations.- Parameters:
integrations
- the integrations- Returns:
- the DialogNodeOutput builder
-
modifiers
Set the modifiers.- Parameters:
modifiers
- the modifiers- Returns:
- the DialogNodeOutput builder
-
add
Add an arbitrary property.- Parameters:
name
- the name of the property to addvalue
- the value of the property to add- Returns:
- the DialogNodeOutput builder
-