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.BuilderaddNewMentions(Mention newMentions)Adds an newMentions to newMentions.UpdateExampleOptionsbuild()Builds a UpdateExampleOptions.UpdateExampleOptions.BuilderincludeAudit(Boolean includeAudit)Set the includeAudit.UpdateExampleOptions.Builderintent(String intent)Set the intent.UpdateExampleOptions.BuildernewMentions(List<Mention> newMentions)Set the newMentions.UpdateExampleOptions.BuildernewText(String newText)Set the newText.UpdateExampleOptions.Buildertext(String text)Set the text.UpdateExampleOptions.BuilderworkspaceId(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
-