public static class Context.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder()
Instantiates a new builder.
|
| Modifier and Type | Method and Description |
|---|---|
Context.Builder |
add(java.lang.String name,
java.lang.Object value)
Add an arbitrary property.
|
Context |
build()
Builds a Context.
|
Context.Builder |
conversationId(java.lang.String conversationId)
Set the conversationId.
|
Context.Builder |
metadata(MessageContextMetadata metadata)
Set the metadata.
|
Context.Builder |
system(java.util.Map<java.lang.String,java.lang.Object> system)
Set the system.
|
public Context build()
public Context.Builder conversationId(java.lang.String conversationId)
conversationId - the conversationIdpublic Context.Builder system(java.util.Map<java.lang.String,java.lang.Object> system)
system - the systempublic Context.Builder metadata(MessageContextMetadata metadata)
metadata - the metadatapublic Context.Builder add(java.lang.String name, java.lang.Object value)
name - the name of the property to addvalue - the value of the property to add