Class RuntimeResponseGenericRuntimeResponseTypeSuggestion.Builder
java.lang.Object
com.ibm.watson.assistant.v1.model.RuntimeResponseGenericRuntimeResponseTypeSuggestion.Builder
- Enclosing class:
- RuntimeResponseGenericRuntimeResponseTypeSuggestion
public static class RuntimeResponseGenericRuntimeResponseTypeSuggestion.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(RuntimeResponseGeneric runtimeResponseGenericRuntimeResponseTypeSuggestion)
Builder(String responseType, String title, List<DialogSuggestion> suggestions)
Instantiates a new builder with required properties. -
Method Summary
Modifier and Type Method Description RuntimeResponseGenericRuntimeResponseTypeSuggestion.Builder
addChannels(ResponseGenericChannel channels)
Adds an channels to channels.RuntimeResponseGenericRuntimeResponseTypeSuggestion.Builder
addSuggestions(DialogSuggestion suggestions)
Adds an suggestions to suggestions.RuntimeResponseGenericRuntimeResponseTypeSuggestion
build()
Builds a RuntimeResponseGenericRuntimeResponseTypeSuggestion.RuntimeResponseGenericRuntimeResponseTypeSuggestion.Builder
channels(List<ResponseGenericChannel> channels)
Set the channels.RuntimeResponseGenericRuntimeResponseTypeSuggestion.Builder
responseType(String responseType)
Set the responseType.RuntimeResponseGenericRuntimeResponseTypeSuggestion.Builder
suggestions(List<DialogSuggestion> suggestions)
Set the suggestions.RuntimeResponseGenericRuntimeResponseTypeSuggestion.Builder
title(String title)
Set the title.
-
Constructor Details
-
Builder
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
responseType
- the responseTypetitle
- the titlesuggestions
- the suggestions
-
-
Method Details
-
build
Builds a RuntimeResponseGenericRuntimeResponseTypeSuggestion.- Returns:
- the new RuntimeResponseGenericRuntimeResponseTypeSuggestion instance
-
addSuggestions
public RuntimeResponseGenericRuntimeResponseTypeSuggestion.Builder addSuggestions(DialogSuggestion suggestions)Adds an suggestions to suggestions.- Parameters:
suggestions
- the new suggestions- Returns:
- the RuntimeResponseGenericRuntimeResponseTypeSuggestion builder
-
addChannels
public RuntimeResponseGenericRuntimeResponseTypeSuggestion.Builder addChannels(ResponseGenericChannel channels)Adds an channels to channels.- Parameters:
channels
- the new channels- Returns:
- the RuntimeResponseGenericRuntimeResponseTypeSuggestion builder
-
responseType
public RuntimeResponseGenericRuntimeResponseTypeSuggestion.Builder responseType(String responseType)Set the responseType.- Parameters:
responseType
- the responseType- Returns:
- the RuntimeResponseGenericRuntimeResponseTypeSuggestion builder
-
title
Set the title.- Parameters:
title
- the title- Returns:
- the RuntimeResponseGenericRuntimeResponseTypeSuggestion builder
-
suggestions
public RuntimeResponseGenericRuntimeResponseTypeSuggestion.Builder suggestions(List<DialogSuggestion> suggestions)Set the suggestions. Existing suggestions will be replaced.- Parameters:
suggestions
- the suggestions- Returns:
- the RuntimeResponseGenericRuntimeResponseTypeSuggestion builder
-
channels
public RuntimeResponseGenericRuntimeResponseTypeSuggestion.Builder channels(List<ResponseGenericChannel> channels)Set the channels. Existing channels will be replaced.- Parameters:
channels
- the channels- Returns:
- the RuntimeResponseGenericRuntimeResponseTypeSuggestion builder
-