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.BuilderaddChannels(ResponseGenericChannel channels)Adds an channels to channels.RuntimeResponseGenericRuntimeResponseTypeTextbuild()Builds a RuntimeResponseGenericRuntimeResponseTypeText.RuntimeResponseGenericRuntimeResponseTypeText.Builderchannels(List<ResponseGenericChannel> channels)Set the channels.RuntimeResponseGenericRuntimeResponseTypeText.BuilderresponseType(String responseType)Set the responseType.RuntimeResponseGenericRuntimeResponseTypeText.Buildertext(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
-