public static class CreateIntentOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
CreateIntentOptions.Builder()
Instantiates a new builder.
|
CreateIntentOptions.Builder(java.lang.String workspaceId,
java.lang.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(java.lang.String description)
Set the description.
|
CreateIntentOptions.Builder |
examples(java.util.List<Example> examples)
Set the examples.
|
CreateIntentOptions.Builder |
includeAudit(java.lang.Boolean includeAudit)
Set the includeAudit.
|
CreateIntentOptions.Builder |
intent(java.lang.String intent)
Set the intent.
|
CreateIntentOptions.Builder |
workspaceId(java.lang.String workspaceId)
Set the workspaceId.
|
public CreateIntentOptions.Builder()
public CreateIntentOptions.Builder(java.lang.String workspaceId, java.lang.String intent)
workspaceId
- the workspaceIdintent
- the intentpublic CreateIntentOptions build()
public CreateIntentOptions.Builder addExample(Example example)
example
- the new examplepublic CreateIntentOptions.Builder workspaceId(java.lang.String workspaceId)
workspaceId
- the workspaceIdpublic CreateIntentOptions.Builder intent(java.lang.String intent)
intent
- the intentpublic CreateIntentOptions.Builder description(java.lang.String description)
description
- the descriptionpublic CreateIntentOptions.Builder examples(java.util.List<Example> examples)
examples
- the examplespublic CreateIntentOptions.Builder includeAudit(java.lang.Boolean includeAudit)
includeAudit
- the includeAudit