Class UpdateExampleOptions.Builder
java.lang.Object
com.ibm.watson.assistant.v1.model.UpdateExampleOptions.Builder
- Enclosing class:
- UpdateExampleOptions
public static class UpdateExampleOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description UpdateExampleOptions.Builder
addNewMentions(Mention newMentions)
Adds an newMentions to newMentions.UpdateExampleOptions
build()
Builds a UpdateExampleOptions.UpdateExampleOptions.Builder
includeAudit(Boolean includeAudit)
Set the includeAudit.UpdateExampleOptions.Builder
intent(String intent)
Set the intent.UpdateExampleOptions.Builder
newMentions(List<Mention> newMentions)
Set the newMentions.UpdateExampleOptions.Builder
newText(String newText)
Set the newText.UpdateExampleOptions.Builder
text(String text)
Set the text.UpdateExampleOptions.Builder
workspaceId(String workspaceId)
Set the workspaceId.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
workspaceId
- the workspaceIdintent
- the intenttext
- the text
-
-
Method Details
-
build
Builds a UpdateExampleOptions.- Returns:
- the new UpdateExampleOptions instance
-
addNewMentions
Adds an newMentions to newMentions.- Parameters:
newMentions
- the new newMentions- Returns:
- the UpdateExampleOptions builder
-
workspaceId
Set the workspaceId.- Parameters:
workspaceId
- the workspaceId- Returns:
- the UpdateExampleOptions builder
-
intent
Set the intent.- Parameters:
intent
- the intent- Returns:
- the UpdateExampleOptions builder
-
text
Set the text.- Parameters:
text
- the text- Returns:
- the UpdateExampleOptions builder
-
newText
Set the newText.- Parameters:
newText
- the newText- Returns:
- the UpdateExampleOptions builder
-
newMentions
Set the newMentions. Existing newMentions will be replaced.- Parameters:
newMentions
- the newMentions- Returns:
- the UpdateExampleOptions builder
-
includeAudit
Set the includeAudit.- Parameters:
includeAudit
- the includeAudit- Returns:
- the UpdateExampleOptions builder
-