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.Builder
addExample(Example example)
Adds an example to examples.CreateIntentOptions
build()
Builds a CreateIntentOptions.CreateIntentOptions.Builder
description(String description)
Set the description.CreateIntentOptions.Builder
examples(List<Example> examples)
Set the examples.CreateIntentOptions.Builder
includeAudit(Boolean includeAudit)
Set the includeAudit.CreateIntentOptions.Builder
intent(String intent)
Set the intent.CreateIntentOptions.Builder
workspaceId(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
-