public static class RecognitionJobOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
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 Builder()
public 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.