public static class UpdateIntentOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
UpdateIntentOptions.Builder()
Instantiates a new builder.
|
UpdateIntentOptions.Builder(java.lang.String workspaceId,
java.lang.String intent)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
UpdateIntentOptions.Builder |
addExample(CreateExample example)
Adds an example to newExamples.
|
UpdateIntentOptions |
build()
Builds a UpdateIntentOptions.
|
UpdateIntentOptions.Builder |
intent(java.lang.String intent)
Set the intent.
|
UpdateIntentOptions.Builder |
newDescription(java.lang.String newDescription)
Set the newDescription.
|
UpdateIntentOptions.Builder |
newExamples(java.util.List<CreateExample> newExamples)
Set the newExamples.
|
UpdateIntentOptions.Builder |
newIntent(java.lang.String newIntent)
Set the newIntent.
|
UpdateIntentOptions.Builder |
workspaceId(java.lang.String workspaceId)
Set the workspaceId.
|
public UpdateIntentOptions.Builder()
public UpdateIntentOptions.Builder(java.lang.String workspaceId, java.lang.String intent)
workspaceId
- the workspaceIdintent
- the intentpublic UpdateIntentOptions build()
public UpdateIntentOptions.Builder addExample(CreateExample example)
example
- the new examplepublic UpdateIntentOptions.Builder workspaceId(java.lang.String workspaceId)
workspaceId
- the workspaceIdpublic UpdateIntentOptions.Builder intent(java.lang.String intent)
intent
- the intentpublic UpdateIntentOptions.Builder newIntent(java.lang.String newIntent)
newIntent
- the newIntentpublic UpdateIntentOptions.Builder newExamples(java.util.List<CreateExample> newExamples)
newExamples
- the newExamplespublic UpdateIntentOptions.Builder newDescription(java.lang.String newDescription)
newDescription
- the newDescription