Class RuntimeResponseGenericRuntimeResponseTypeConnectToAgent.Builder
java.lang.Object
com.ibm.watson.assistant.v1.model.RuntimeResponseGenericRuntimeResponseTypeConnectToAgent.Builder
- Enclosing class:
- RuntimeResponseGenericRuntimeResponseTypeConnectToAgent
public static class RuntimeResponseGenericRuntimeResponseTypeConnectToAgent.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(RuntimeResponseGenericRuntimeResponseTypeConnectToAgent runtimeResponseGenericRuntimeResponseTypeConnectToAgent)
Builder(String responseType)
Instantiates a new builder with required properties. -
Method Summary
-
Constructor Details
-
Builder
public Builder(RuntimeResponseGenericRuntimeResponseTypeConnectToAgent runtimeResponseGenericRuntimeResponseTypeConnectToAgent) -
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
responseType
- the responseType
-
-
Method Details
-
build
Builds a RuntimeResponseGenericRuntimeResponseTypeConnectToAgent.- Returns:
- the new RuntimeResponseGenericRuntimeResponseTypeConnectToAgent instance
-
addChannels
public RuntimeResponseGenericRuntimeResponseTypeConnectToAgent.Builder addChannels(ResponseGenericChannel channels)Adds an channels to channels.- Parameters:
channels
- the new channels- Returns:
- the RuntimeResponseGenericRuntimeResponseTypeConnectToAgent builder
-
responseType
public RuntimeResponseGenericRuntimeResponseTypeConnectToAgent.Builder responseType(String responseType)Set the responseType.- Parameters:
responseType
- the responseType- Returns:
- the RuntimeResponseGenericRuntimeResponseTypeConnectToAgent builder
-
messageToHumanAgent
public RuntimeResponseGenericRuntimeResponseTypeConnectToAgent.Builder messageToHumanAgent(String messageToHumanAgent)Set the messageToHumanAgent.- Parameters:
messageToHumanAgent
- the messageToHumanAgent- Returns:
- the RuntimeResponseGenericRuntimeResponseTypeConnectToAgent builder
-
agentAvailable
public RuntimeResponseGenericRuntimeResponseTypeConnectToAgent.Builder agentAvailable(AgentAvailabilityMessage agentAvailable)Set the agentAvailable.- Parameters:
agentAvailable
- the agentAvailable- Returns:
- the RuntimeResponseGenericRuntimeResponseTypeConnectToAgent builder
-
transferInfo
public RuntimeResponseGenericRuntimeResponseTypeConnectToAgent.Builder transferInfo(DialogNodeOutputConnectToAgentTransferInfo transferInfo)Set the transferInfo.- Parameters:
transferInfo
- the transferInfo- Returns:
- the RuntimeResponseGenericRuntimeResponseTypeConnectToAgent builder
-
topic
Set the topic.- Parameters:
topic
- the topic- Returns:
- the RuntimeResponseGenericRuntimeResponseTypeConnectToAgent builder
-
dialogNode
public RuntimeResponseGenericRuntimeResponseTypeConnectToAgent.Builder dialogNode(String dialogNode)Set the dialogNode.- Parameters:
dialogNode
- the dialogNode- Returns:
- the RuntimeResponseGenericRuntimeResponseTypeConnectToAgent builder
-
channels
public RuntimeResponseGenericRuntimeResponseTypeConnectToAgent.Builder channels(List<ResponseGenericChannel> channels)Set the channels. Existing channels will be replaced.- Parameters:
channels
- the channels- Returns:
- the RuntimeResponseGenericRuntimeResponseTypeConnectToAgent builder
-