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