public static class OutputData.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(List<LogMessage> logMessages,
List<String> text)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
OutputData.Builder |
add(String name,
Object value)
Add an arbitrary property.
|
OutputData.Builder |
addGeneric(RuntimeResponseGeneric generic)
Adds an generic to generic.
|
OutputData.Builder |
addLogMessages(LogMessage logMessages)
Adds an logMessages to logMessages.
|
OutputData.Builder |
addNodesVisited(String nodesVisited)
Adds an nodesVisited to nodesVisited.
|
OutputData.Builder |
addNodesVisitedDetails(DialogNodeVisitedDetails nodesVisitedDetails)
Adds an nodesVisitedDetails to nodesVisitedDetails.
|
OutputData.Builder |
addText(String text)
Adds an text to text.
|
OutputData |
build()
Builds a OutputData.
|
OutputData.Builder |
generic(List<RuntimeResponseGeneric> generic)
Set the generic.
|
OutputData.Builder |
logMessages(List<LogMessage> logMessages)
Set the logMessages.
|
OutputData.Builder |
nodesVisited(List<String> nodesVisited)
Set the nodesVisited.
|
OutputData.Builder |
nodesVisitedDetails(List<DialogNodeVisitedDetails> nodesVisitedDetails)
Set the nodesVisitedDetails.
|
OutputData.Builder |
text(List<String> text)
Set the text.
|
public Builder()
public Builder(List<LogMessage> logMessages, List<String> text)
logMessages
- the logMessagestext
- the textpublic OutputData build()
public OutputData.Builder addNodesVisited(String nodesVisited)
nodesVisited
- the new nodesVisitedpublic OutputData.Builder addNodesVisitedDetails(DialogNodeVisitedDetails nodesVisitedDetails)
nodesVisitedDetails
- the new nodesVisitedDetailspublic OutputData.Builder addLogMessages(LogMessage logMessages)
logMessages
- the new logMessagespublic OutputData.Builder addText(String text)
text
- the new textpublic OutputData.Builder addGeneric(RuntimeResponseGeneric generic)
generic
- the new genericpublic OutputData.Builder nodesVisited(List<String> nodesVisited)
nodesVisited
- the nodesVisitedpublic OutputData.Builder nodesVisitedDetails(List<DialogNodeVisitedDetails> nodesVisitedDetails)
nodesVisitedDetails
- the nodesVisitedDetailspublic OutputData.Builder logMessages(List<LogMessage> logMessages)
logMessages
- the logMessagespublic OutputData.Builder text(List<String> text)
text
- the textpublic OutputData.Builder generic(List<RuntimeResponseGeneric> generic)
generic
- the genericpublic OutputData.Builder add(String name, Object value)
name
- the name of the property to addvalue
- the value of the property to addCopyright © 2021 IBM Cloud. All rights reserved.