public static class CreateIntent.Builder
extends java.lang.Object
Constructor and Description |
---|
CreateIntent.Builder()
Instantiates a new builder.
|
CreateIntent.Builder(java.lang.String intent)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
CreateIntent.Builder |
addExample(CreateExample example)
Adds an example to examples.
|
CreateIntent |
build()
Builds a CreateIntent.
|
CreateIntent.Builder |
description(java.lang.String description)
Set the description.
|
CreateIntent.Builder |
examples(java.util.List<CreateExample> examples)
Set the examples.
|
CreateIntent.Builder |
intent(java.lang.String intent)
Set the intent.
|
public CreateIntent.Builder()
public CreateIntent.Builder(java.lang.String intent)
intent
- the intentpublic CreateIntent build()
public CreateIntent.Builder addExample(CreateExample example)
example
- the new examplepublic CreateIntent.Builder intent(java.lang.String intent)
intent
- the intentpublic CreateIntent.Builder description(java.lang.String description)
description
- the descriptionpublic CreateIntent.Builder examples(java.util.List<CreateExample> examples)
examples
- the examples