public static class RecognitionJobOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
RecognitionJobOptions.Builder()
Instantiates a new builder.
|
RecognitionJobOptions.Builder(RecognitionJobOptions options)
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
RecognitionJobOptions |
build()
Builds the
RecognitionJobOptions object. |
RecognitionJobOptions.Builder |
callbackUrl(java.lang.String callbackUrl)
Sets the callback url.
|
RecognitionJobOptions.Builder |
events(java.lang.String... events)
Sets the events.
|
RecognitionJobOptions.Builder |
resultsTtl(java.lang.Integer resultsTtl)
Sets the time to live in minutes for the results.
|
RecognitionJobOptions.Builder |
userToken(java.lang.String userToken)
Sets the user token.
|
public RecognitionJobOptions.Builder()
public RecognitionJobOptions.Builder(RecognitionJobOptions options)
options
- the optionspublic RecognitionJobOptions.Builder callbackUrl(java.lang.String callbackUrl)
callbackUrl
- the callback urlpublic RecognitionJobOptions.Builder events(java.lang.String... events)
events
- the eventspublic RecognitionJobOptions.Builder resultsTtl(java.lang.Integer resultsTtl)
resultsTtl
- the results ttlpublic RecognitionJobOptions.Builder userToken(java.lang.String userToken)
userToken
- the user tokenpublic RecognitionJobOptions build()
RecognitionJobOptions
object.