public static class OutputData.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(List<LogMessage> logMessages)
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 |
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.
|
public Builder()
public Builder(List<LogMessage> logMessages)
logMessages
- the logMessagespublic 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 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 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 © 2022 IBM Cloud. All rights reserved.