public static class MessageOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String assistantId,
String sessionId)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
MessageOptions.Builder |
assistantId(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 |
messageRequest(MessageRequest messageRequest)
Set the messageRequest.
|
MessageOptions.Builder |
sessionId(String sessionId)
Set the sessionId.
|
MessageOptions.Builder |
userId(String userId)
Set the userId.
|
public MessageOptions build()
public MessageOptions.Builder assistantId(String assistantId)
assistantId
- the assistantIdpublic MessageOptions.Builder sessionId(String sessionId)
sessionId
- the sessionIdpublic MessageOptions.Builder input(MessageInput input)
input
- the inputpublic MessageOptions.Builder context(MessageContext context)
context
- the contextpublic MessageOptions.Builder userId(String userId)
userId
- the userIdpublic MessageOptions.Builder messageRequest(MessageRequest messageRequest)
messageRequest
- the messageRequestCopyright © 2021 IBM Cloud. All rights reserved.