Class CreateExampleOptions.Builder
java.lang.Object
com.ibm.watson.assistant.v1.model.CreateExampleOptions.Builder
- Enclosing class:
- CreateExampleOptions
public static class CreateExampleOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description CreateExampleOptions.BuilderaddMentions(Mention mentions)Adds an mentions to mentions.CreateExampleOptionsbuild()Builds a CreateExampleOptions.CreateExampleOptions.Builderexample(Example example)Set the example.CreateExampleOptions.BuilderincludeAudit(Boolean includeAudit)Set the includeAudit.CreateExampleOptions.Builderintent(String intent)Set the intent.CreateExampleOptions.Buildermentions(List<Mention> mentions)Set the mentions.CreateExampleOptions.Buildertext(String text)Set the text.CreateExampleOptions.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 CreateExampleOptions.- Returns:
- the new CreateExampleOptions instance
-
addMentions
Adds an mentions to mentions.- Parameters:
mentions- the new mentions- Returns:
- the CreateExampleOptions builder
-
workspaceId
Set the workspaceId.- Parameters:
workspaceId- the workspaceId- Returns:
- the CreateExampleOptions builder
-
intent
Set the intent.- Parameters:
intent- the intent- Returns:
- the CreateExampleOptions builder
-
text
Set the text.- Parameters:
text- the text- Returns:
- the CreateExampleOptions builder
-
mentions
Set the mentions. Existing mentions will be replaced.- Parameters:
mentions- the mentions- Returns:
- the CreateExampleOptions builder
-
includeAudit
Set the includeAudit.- Parameters:
includeAudit- the includeAudit- Returns:
- the CreateExampleOptions builder
-
example
Set the example.- Parameters:
example- the example- Returns:
- the CreateExampleOptions builder
-