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