public static class CreateIntentOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
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 Builder()
public 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 examples(java.util.List<CreateExample> examples)
examples
- the examplespublic CreateIntentOptions.Builder description(java.lang.String description)
description
- the descriptionpublic CreateIntentOptions.Builder intent(java.lang.String intent)
intent
- the intent