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 a new element to generic.
|
OutputData.Builder |
addLogMessages(LogMessage logMessages)
Adds a new element to logMessages.
|
OutputData.Builder |
addNodesVisited(String nodesVisited)
Adds a new element to nodesVisited.
|
OutputData.Builder |
addNodesVisitedDetails(DialogNodeVisitedDetails nodesVisitedDetails)
Adds a new element 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 element to be addedpublic OutputData.Builder addNodesVisitedDetails(DialogNodeVisitedDetails nodesVisitedDetails)
nodesVisitedDetails
- the new element to be addedpublic OutputData.Builder addLogMessages(LogMessage logMessages)
logMessages
- the new element to be addedpublic OutputData.Builder addGeneric(RuntimeResponseGeneric generic)
generic
- the new element to be addedpublic 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 © 2024 IBM Cloud. All rights reserved.