Class DialogNodeOutputGenericDialogNodeOutputResponseTypeOption.Builder
java.lang.Object
com.ibm.watson.assistant.v1.model.DialogNodeOutputGenericDialogNodeOutputResponseTypeOption.Builder
- Enclosing class:
- DialogNodeOutputGenericDialogNodeOutputResponseTypeOption
public static class DialogNodeOutputGenericDialogNodeOutputResponseTypeOption.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(DialogNodeOutputGeneric dialogNodeOutputGenericDialogNodeOutputResponseTypeOption)
Builder(String responseType, String title, List<DialogNodeOutputOptionsElement> options)
Instantiates a new builder with required properties. -
Method Summary
-
Constructor Details
-
Builder
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
responseType
- the responseTypetitle
- the titleoptions
- the options
-
-
Method Details
-
build
Builds a DialogNodeOutputGenericDialogNodeOutputResponseTypeOption.- Returns:
- the new DialogNodeOutputGenericDialogNodeOutputResponseTypeOption instance
-
addOptions
public DialogNodeOutputGenericDialogNodeOutputResponseTypeOption.Builder addOptions(DialogNodeOutputOptionsElement options)Adds an options to options.- Parameters:
options
- the new options- Returns:
- the DialogNodeOutputGenericDialogNodeOutputResponseTypeOption builder
-
addChannels
public DialogNodeOutputGenericDialogNodeOutputResponseTypeOption.Builder addChannels(ResponseGenericChannel channels)Adds an channels to channels.- Parameters:
channels
- the new channels- Returns:
- the DialogNodeOutputGenericDialogNodeOutputResponseTypeOption builder
-
responseType
public DialogNodeOutputGenericDialogNodeOutputResponseTypeOption.Builder responseType(String responseType)Set the responseType.- Parameters:
responseType
- the responseType- Returns:
- the DialogNodeOutputGenericDialogNodeOutputResponseTypeOption builder
-
title
Set the title.- Parameters:
title
- the title- Returns:
- the DialogNodeOutputGenericDialogNodeOutputResponseTypeOption builder
-
description
public DialogNodeOutputGenericDialogNodeOutputResponseTypeOption.Builder description(String description)Set the description.- Parameters:
description
- the description- Returns:
- the DialogNodeOutputGenericDialogNodeOutputResponseTypeOption builder
-
preference
public DialogNodeOutputGenericDialogNodeOutputResponseTypeOption.Builder preference(String preference)Set the preference.- Parameters:
preference
- the preference- Returns:
- the DialogNodeOutputGenericDialogNodeOutputResponseTypeOption builder
-
options
public DialogNodeOutputGenericDialogNodeOutputResponseTypeOption.Builder options(List<DialogNodeOutputOptionsElement> options)Set the options. Existing options will be replaced.- Parameters:
options
- the options- Returns:
- the DialogNodeOutputGenericDialogNodeOutputResponseTypeOption builder
-
channels
public DialogNodeOutputGenericDialogNodeOutputResponseTypeOption.Builder channels(List<ResponseGenericChannel> channels)Set the channels. Existing channels will be replaced.- Parameters:
channels
- the channels- Returns:
- the DialogNodeOutputGenericDialogNodeOutputResponseTypeOption builder
-