Class UpdateIntentOptions.Builder
java.lang.Object
com.ibm.watson.assistant.v1.model.UpdateIntentOptions.Builder
- Enclosing class:
- UpdateIntentOptions
public static class UpdateIntentOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description UpdateIntentOptions.BuilderaddExample(Example example)Adds an example to newExamples.UpdateIntentOptions.Builderappend(Boolean append)Set the append.UpdateIntentOptionsbuild()Builds a UpdateIntentOptions.UpdateIntentOptions.BuilderincludeAudit(Boolean includeAudit)Set the includeAudit.UpdateIntentOptions.Builderintent(String intent)Set the intent.UpdateIntentOptions.BuildernewDescription(String newDescription)Set the newDescription.UpdateIntentOptions.BuildernewExamples(List<Example> newExamples)Set the newExamples.UpdateIntentOptions.BuildernewIntent(String newIntent)Set the newIntent.UpdateIntentOptions.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 UpdateIntentOptions.- Returns:
- the new UpdateIntentOptions instance
-
addExample
Adds an example to newExamples.- Parameters:
example- the new example- Returns:
- the UpdateIntentOptions builder
-
workspaceId
Set the workspaceId.- Parameters:
workspaceId- the workspaceId- Returns:
- the UpdateIntentOptions builder
-
intent
Set the intent.- Parameters:
intent- the intent- Returns:
- the UpdateIntentOptions builder
-
newIntent
Set the newIntent.- Parameters:
newIntent- the newIntent- Returns:
- the UpdateIntentOptions builder
-
newDescription
Set the newDescription.- Parameters:
newDescription- the newDescription- Returns:
- the UpdateIntentOptions builder
-
newExamples
Set the newExamples. Existing newExamples will be replaced.- Parameters:
newExamples- the newExamples- Returns:
- the UpdateIntentOptions builder
-
append
Set the append.- Parameters:
append- the append- Returns:
- the UpdateIntentOptions builder
-
includeAudit
Set the includeAudit.- Parameters:
includeAudit- the includeAudit- Returns:
- the UpdateIntentOptions builder
-