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.Builder
addExample(Example example)
Adds an example to newExamples.UpdateIntentOptions.Builder
append(Boolean append)
Set the append.UpdateIntentOptions
build()
Builds a UpdateIntentOptions.UpdateIntentOptions.Builder
includeAudit(Boolean includeAudit)
Set the includeAudit.UpdateIntentOptions.Builder
intent(String intent)
Set the intent.UpdateIntentOptions.Builder
newDescription(String newDescription)
Set the newDescription.UpdateIntentOptions.Builder
newExamples(List<Example> newExamples)
Set the newExamples.UpdateIntentOptions.Builder
newIntent(String newIntent)
Set the newIntent.UpdateIntentOptions.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 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
-