Class CreateIntentOptions.Builder
java.lang.Object
com.ibm.watson.assistant.v1.model.CreateIntentOptions.Builder
- Enclosing class:
- CreateIntentOptions
public static class CreateIntentOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description CreateIntentOptions.BuilderaddExample(Example example)Adds an example to examples.CreateIntentOptionsbuild()Builds a CreateIntentOptions.CreateIntentOptions.Builderdescription(String description)Set the description.CreateIntentOptions.Builderexamples(List<Example> examples)Set the examples.CreateIntentOptions.BuilderincludeAudit(Boolean includeAudit)Set the includeAudit.CreateIntentOptions.Builderintent(String intent)Set the intent.CreateIntentOptions.BuilderworkspaceId(String workspaceId)Set the workspaceId.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
workspaceId- the workspaceIdintent- the intent
-
-
Method Details
-
build
Builds a CreateIntentOptions.- Returns:
- the new CreateIntentOptions instance
-
addExample
Adds an example to examples.- Parameters:
example- the new example- Returns:
- the CreateIntentOptions builder
-
workspaceId
Set the workspaceId.- Parameters:
workspaceId- the workspaceId- Returns:
- the CreateIntentOptions builder
-
intent
Set the intent.- Parameters:
intent- the intent- Returns:
- the CreateIntentOptions builder
-
description
Set the description.- Parameters:
description- the description- Returns:
- the CreateIntentOptions builder
-
examples
Set the examples. Existing examples will be replaced.- Parameters:
examples- the examples- Returns:
- the CreateIntentOptions builder
-
includeAudit
Set the includeAudit.- Parameters:
includeAudit- the includeAudit- Returns:
- the CreateIntentOptions builder
-