public static class CreateExampleOptions.Builder
extends java.lang.Object
| Constructor and Description |
|---|
CreateExampleOptions.Builder()
Instantiates a new builder.
|
CreateExampleOptions.Builder(java.lang.String workspaceId,
java.lang.String intent,
java.lang.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(java.lang.Boolean includeAudit)
Set the includeAudit.
|
CreateExampleOptions.Builder |
intent(java.lang.String intent)
Set the intent.
|
CreateExampleOptions.Builder |
mentions(java.util.List<Mention> mentions)
Set the mentions.
|
CreateExampleOptions.Builder |
text(java.lang.String text)
Set the text.
|
CreateExampleOptions.Builder |
workspaceId(java.lang.String workspaceId)
Set the workspaceId.
|
public CreateExampleOptions.Builder()
public CreateExampleOptions.Builder(java.lang.String workspaceId,
java.lang.String intent,
java.lang.String text)
workspaceId - the workspaceIdintent - the intenttext - the textpublic CreateExampleOptions build()
public CreateExampleOptions.Builder addMentions(Mention mentions)
mentions - the new mentionspublic CreateExampleOptions.Builder workspaceId(java.lang.String workspaceId)
workspaceId - the workspaceIdpublic CreateExampleOptions.Builder intent(java.lang.String intent)
intent - the intentpublic CreateExampleOptions.Builder text(java.lang.String text)
text - the textpublic CreateExampleOptions.Builder mentions(java.util.List<Mention> mentions)
mentions - the mentionspublic CreateExampleOptions.Builder includeAudit(java.lang.Boolean includeAudit)
includeAudit - the includeAuditpublic CreateExampleOptions.Builder example(Example example)
example - the example