Class Context.Builder
java.lang.Object
com.ibm.watson.assistant.v1.model.Context.Builder
- Enclosing class:
- Context
public static class Context.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder. -
Method Summary
Modifier and Type Method Description Context.Builder
add(String name, Object value)
Add an arbitrary property.Context
build()
Builds a Context.Context.Builder
conversationId(String conversationId)
Set the conversationId.Context.Builder
metadata(MessageContextMetadata metadata)
Set the metadata.Context.Builder
system(Map<String,Object> system)
Set the system.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
Builds a Context.- Returns:
- the new Context instance
-
conversationId
Set the conversationId.- Parameters:
conversationId
- the conversationId- Returns:
- the Context builder
-
system
Set the system.- Parameters:
system
- the system- Returns:
- the Context builder
-
metadata
Set the metadata.- Parameters:
metadata
- the metadata- Returns:
- the Context builder
-
add
Add an arbitrary property.- Parameters:
name
- the name of the property to addvalue
- the value of the property to add- Returns:
- the Context builder
-