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(CreateExample 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<CreateExample> examples)
Set the examples.
|
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(CreateExample 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<CreateExample> examples)
examples
- the examples