public static class CreateIntentOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String workspaceId,
String intent)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
CreateIntentOptions.Builder |
addExample(Example example)
Adds an example to examples.
|
CreateIntentOptions |
build()
Builds a CreateIntentOptions.
|
CreateIntentOptions.Builder |
description(String description)
Set the description.
|
CreateIntentOptions.Builder |
examples(List<Example> examples)
Set the examples.
|
CreateIntentOptions.Builder |
includeAudit(Boolean includeAudit)
Set the includeAudit.
|
CreateIntentOptions.Builder |
intent(String intent)
Set the intent.
|
CreateIntentOptions.Builder |
workspaceId(String workspaceId)
Set the workspaceId.
|
public CreateIntentOptions build()
public CreateIntentOptions.Builder addExample(Example example)
example
- the new examplepublic CreateIntentOptions.Builder workspaceId(String workspaceId)
workspaceId
- the workspaceIdpublic CreateIntentOptions.Builder intent(String intent)
intent
- the intentpublic CreateIntentOptions.Builder description(String description)
description
- the descriptionpublic CreateIntentOptions.Builder examples(List<Example> examples)
examples
- the examplespublic CreateIntentOptions.Builder includeAudit(Boolean includeAudit)
includeAudit
- the includeAuditCopyright © 2023 IBM Cloud. All rights reserved.