Class MessageOptions.Builder
java.lang.Object
com.ibm.watson.assistant.v1.model.MessageOptions.Builder
- Enclosing class:
- MessageOptions
public static class MessageOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
workspaceId
- the workspaceId
-
-
Method Details
-
build
Builds a MessageOptions.- Returns:
- the new MessageOptions instance
-
addIntent
Adds an intent to intents.- Parameters:
intent
- the new intent- Returns:
- the MessageOptions builder
-
addEntity
Adds an entity to entities.- Parameters:
entity
- the new entity- Returns:
- the MessageOptions builder
-
workspaceId
Set the workspaceId.- Parameters:
workspaceId
- the workspaceId- Returns:
- the MessageOptions builder
-
input
Set the input.- Parameters:
input
- the input- Returns:
- the MessageOptions builder
-
intents
Set the intents. Existing intents will be replaced.- Parameters:
intents
- the intents- Returns:
- the MessageOptions builder
-
entities
Set the entities. Existing entities will be replaced.- Parameters:
entities
- the entities- Returns:
- the MessageOptions builder
-
alternateIntents
Set the alternateIntents.- Parameters:
alternateIntents
- the alternateIntents- Returns:
- the MessageOptions builder
-
context
Set the context.- Parameters:
context
- the context- Returns:
- the MessageOptions builder
-
output
Set the output.- Parameters:
output
- the output- Returns:
- the MessageOptions builder
-
userId
Set the userId.- Parameters:
userId
- the userId- Returns:
- the MessageOptions builder
-
nodesVisitedDetails
Set the nodesVisitedDetails.- Parameters:
nodesVisitedDetails
- the nodesVisitedDetails- Returns:
- the MessageOptions builder
-
messageRequest
Set the messageRequest.- Parameters:
messageRequest
- the messageRequest- Returns:
- the MessageOptions builder
-