Class CreateIntent.Builder
java.lang.Object
com.ibm.watson.assistant.v1.model.CreateIntent.Builder
- Enclosing class:
- CreateIntent
public static class CreateIntent.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method 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.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
intent
- the intent
-
-
Method Details
-
build
Builds a CreateIntent.- Returns:
- the new CreateIntent instance
-
addExample
Adds an example to examples.- Parameters:
example
- the new example- Returns:
- the CreateIntent builder
-
intent
Set the intent.- Parameters:
intent
- the intent- Returns:
- the CreateIntent builder
-
description
Set the description.- Parameters:
description
- the description- Returns:
- the CreateIntent builder
-
examples
Set the examples. Existing examples will be replaced.- Parameters:
examples
- the examples- Returns:
- the CreateIntent builder
-