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