Class MessageOptions.Builder
java.lang.Object
com.ibm.watson.assistant.v2.model.MessageOptions.Builder
- Enclosing class:
- MessageOptions
public static class MessageOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method 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.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
assistantId
- the assistantIdsessionId
- the sessionId
-
-
Method Details
-
build
Builds a MessageOptions.- Returns:
- the new MessageOptions instance
-
assistantId
Set the assistantId.- Parameters:
assistantId
- the assistantId- Returns:
- the MessageOptions builder
-
sessionId
Set the sessionId.- Parameters:
sessionId
- the sessionId- Returns:
- the MessageOptions builder
-
input
Set the input.- Parameters:
input
- the input- Returns:
- the MessageOptions builder
-
context
Set the context.- Parameters:
context
- the context- Returns:
- the MessageOptions builder
-
userId
Set the userId.- Parameters:
userId
- the userId- Returns:
- the MessageOptions builder
-
messageRequest
Set the messageRequest.- Parameters:
messageRequest
- the messageRequest- Returns:
- the MessageOptions builder
-