public static class CreateExampleOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String workspaceId,
String intent,
String text)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
CreateExampleOptions.Builder |
addMentions(Mention mentions)
Adds an mentions to mentions.
|
CreateExampleOptions |
build()
Builds a CreateExampleOptions.
|
CreateExampleOptions.Builder |
example(Example example)
Set the example.
|
CreateExampleOptions.Builder |
includeAudit(Boolean includeAudit)
Set the includeAudit.
|
CreateExampleOptions.Builder |
intent(String intent)
Set the intent.
|
CreateExampleOptions.Builder |
mentions(List<Mention> mentions)
Set the mentions.
|
CreateExampleOptions.Builder |
text(String text)
Set the text.
|
CreateExampleOptions.Builder |
workspaceId(String workspaceId)
Set the workspaceId.
|
public CreateExampleOptions build()
public CreateExampleOptions.Builder addMentions(Mention mentions)
mentions
- the new mentionspublic CreateExampleOptions.Builder workspaceId(String workspaceId)
workspaceId
- the workspaceIdpublic CreateExampleOptions.Builder intent(String intent)
intent
- the intentpublic CreateExampleOptions.Builder text(String text)
text
- the textpublic CreateExampleOptions.Builder mentions(List<Mention> mentions)
mentions
- the mentionspublic CreateExampleOptions.Builder includeAudit(Boolean includeAudit)
includeAudit
- the includeAuditpublic CreateExampleOptions.Builder example(Example example)
example
- the exampleCopyright © 2021 IBM Cloud. All rights reserved.