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