Class DialogSuggestion.Builder
java.lang.Object
com.ibm.watson.assistant.v1.model.DialogSuggestion.Builder
- Enclosing class:
- DialogSuggestion
public static class DialogSuggestion.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(String label, DialogSuggestionValue value)
Instantiates a new builder with required properties. -
Method Summary
Modifier and Type Method Description DialogSuggestion
build()
Builds a DialogSuggestion.DialogSuggestion.Builder
dialogNode(String dialogNode)
Set the dialogNode.DialogSuggestion.Builder
label(String label)
Set the label.DialogSuggestion.Builder
output(Map<String,Object> output)
Set the output.DialogSuggestion.Builder
value(DialogSuggestionValue value)
Set the value.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
label
- the labelvalue
- the value
-
-
Method Details
-
build
Builds a DialogSuggestion.- Returns:
- the new DialogSuggestion instance
-
label
Set the label.- Parameters:
label
- the label- Returns:
- the DialogSuggestion builder
-
value
Set the value.- Parameters:
value
- the value- Returns:
- the DialogSuggestion builder
-
output
Set the output.- Parameters:
output
- the output- Returns:
- the DialogSuggestion builder
-
dialogNode
Set the dialogNode.- Parameters:
dialogNode
- the dialogNode- Returns:
- the DialogSuggestion builder
-