Class RuntimeResponseGenericRuntimeResponseTypeOption.Builder
java.lang.Object
com.ibm.watson.assistant.v1.model.RuntimeResponseGenericRuntimeResponseTypeOption.Builder
- Enclosing class:
- RuntimeResponseGenericRuntimeResponseTypeOption
public static class RuntimeResponseGenericRuntimeResponseTypeOption.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(RuntimeResponseGeneric runtimeResponseGenericRuntimeResponseTypeOption)
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 RuntimeResponseGenericRuntimeResponseTypeOption.- Returns:
- the new RuntimeResponseGenericRuntimeResponseTypeOption instance
-
addOptions
public RuntimeResponseGenericRuntimeResponseTypeOption.Builder addOptions(DialogNodeOutputOptionsElement options)Adds an options to options.- Parameters:
options
- the new options- Returns:
- the RuntimeResponseGenericRuntimeResponseTypeOption builder
-
addChannels
public RuntimeResponseGenericRuntimeResponseTypeOption.Builder addChannels(ResponseGenericChannel channels)Adds an channels to channels.- Parameters:
channels
- the new channels- Returns:
- the RuntimeResponseGenericRuntimeResponseTypeOption builder
-
responseType
Set the responseType.- Parameters:
responseType
- the responseType- Returns:
- the RuntimeResponseGenericRuntimeResponseTypeOption builder
-
title
Set the title.- Parameters:
title
- the title- Returns:
- the RuntimeResponseGenericRuntimeResponseTypeOption builder
-
description
Set the description.- Parameters:
description
- the description- Returns:
- the RuntimeResponseGenericRuntimeResponseTypeOption builder
-
preference
Set the preference.- Parameters:
preference
- the preference- Returns:
- the RuntimeResponseGenericRuntimeResponseTypeOption builder
-
options
public RuntimeResponseGenericRuntimeResponseTypeOption.Builder options(List<DialogNodeOutputOptionsElement> options)Set the options. Existing options will be replaced.- Parameters:
options
- the options- Returns:
- the RuntimeResponseGenericRuntimeResponseTypeOption builder
-
channels
public RuntimeResponseGenericRuntimeResponseTypeOption.Builder channels(List<ResponseGenericChannel> channels)Set the channels. Existing channels will be replaced.- Parameters:
channels
- the channels- Returns:
- the RuntimeResponseGenericRuntimeResponseTypeOption builder
-