public static class CreateIntent.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
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 Builder()
public 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