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.BuilderaddExample(Example example)Adds an example to examples.CreateIntentbuild()Builds a CreateIntent.CreateIntent.Builderdescription(String description)Set the description.CreateIntent.Builderexamples(List<Example> examples)Set the examples.CreateIntent.Builderintent(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
-