Class MessageRequest.Builder
java.lang.Object
com.ibm.watson.assistant.v2.model.MessageRequest.Builder
- Enclosing class:
- MessageRequest
public static class MessageRequest.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder. -
Method Summary
Modifier and Type Method Description MessageRequest
build()
Builds a MessageRequest.MessageRequest.Builder
context(MessageContext context)
Set the context.MessageRequest.Builder
input(MessageInput input)
Set the input.MessageRequest.Builder
userId(String userId)
Set the userId.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
Builds a MessageRequest.- Returns:
- the new MessageRequest instance
-
input
Set the input.- Parameters:
input
- the input- Returns:
- the MessageRequest builder
-
context
Set the context.- Parameters:
context
- the context- Returns:
- the MessageRequest builder
-
userId
Set the userId.- Parameters:
userId
- the userId- Returns:
- the MessageRequest builder
-