public static class MessageOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
MessageOptions.Builder()
Instantiates a new builder.
|
MessageOptions.Builder(java.lang.String assistantId,
java.lang.String sessionId)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
MessageOptions.Builder |
assistantId(java.lang.String assistantId)
Set the assistantId.
|
MessageOptions |
build()
Builds a MessageOptions.
|
MessageOptions.Builder |
context(MessageContext context)
Set the context.
|
MessageOptions.Builder |
input(MessageInput input)
Set the input.
|
MessageOptions.Builder |
sessionId(java.lang.String sessionId)
Set the sessionId.
|
public MessageOptions.Builder()
public MessageOptions.Builder(java.lang.String assistantId, java.lang.String sessionId)
assistantId
- the assistantIdsessionId
- the sessionIdpublic MessageOptions build()
public MessageOptions.Builder assistantId(java.lang.String assistantId)
assistantId
- the assistantIdpublic MessageOptions.Builder sessionId(java.lang.String sessionId)
sessionId
- the sessionIdpublic MessageOptions.Builder input(MessageInput input)
input
- the inputpublic MessageOptions.Builder context(MessageContext context)
context
- the context