public static class CreateJobOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
CreateJobOptions.Builder()
Instantiates a new builder.
|
CreateJobOptions.Builder(java.io.InputStream audio)
Instantiates a new builder with required properties.
|
CreateJobOptions.Builder(java.io.InputStream audio,
java.lang.String contentType)
Deprecated.
contentType is no longer required, so this constructor will be removed in the next major release.
|
Modifier and Type | Method and Description |
---|---|
CreateJobOptions.Builder |
acousticCustomizationId(java.lang.String acousticCustomizationId)
Set the acousticCustomizationId.
|
CreateJobOptions.Builder |
addKeyword(java.lang.String keyword)
Adds an keyword to keywords.
|
CreateJobOptions.Builder |
audio(java.io.File audio)
Set the audio.
|
CreateJobOptions.Builder |
audio(java.io.InputStream audio)
Set the audio.
|
CreateJobOptions.Builder |
baseModelVersion(java.lang.String baseModelVersion)
Set the baseModelVersion.
|
CreateJobOptions |
build()
Builds a CreateJobOptions.
|
CreateJobOptions.Builder |
callbackUrl(java.lang.String callbackUrl)
Set the callbackUrl.
|
CreateJobOptions.Builder |
contentType(java.lang.String contentType)
Set the contentType.
|
CreateJobOptions.Builder |
customizationId(java.lang.String customizationId)
Deprecated.
Use the `languageCustomizationId` setter to specify the customization ID (GUID) of a custom
language model that is to be used with the recognition request. Do not specify both parameters with a
request.
|
CreateJobOptions.Builder |
customizationWeight(java.lang.Double customizationWeight)
Set the customizationWeight.
|
CreateJobOptions.Builder |
events(java.lang.String events)
Set the events.
|
CreateJobOptions.Builder |
inactivityTimeout(long inactivityTimeout)
Set the inactivityTimeout.
|
CreateJobOptions.Builder |
keywords(java.util.List<java.lang.String> keywords)
Set the keywords.
|
CreateJobOptions.Builder |
keywordsThreshold(java.lang.Float keywordsThreshold)
Set the keywordsThreshold.
|
CreateJobOptions.Builder |
languageCustomizationId(java.lang.String languageCustomizationId)
Set the languageCustomizationId.
|
CreateJobOptions.Builder |
maxAlternatives(long maxAlternatives)
Set the maxAlternatives.
|
CreateJobOptions.Builder |
model(java.lang.String model)
Set the model.
|
CreateJobOptions.Builder |
profanityFilter(java.lang.Boolean profanityFilter)
Set the profanityFilter.
|
CreateJobOptions.Builder |
resultsTtl(long resultsTtl)
Set the resultsTtl.
|
CreateJobOptions.Builder |
smartFormatting(java.lang.Boolean smartFormatting)
Set the smartFormatting.
|
CreateJobOptions.Builder |
speakerLabels(java.lang.Boolean speakerLabels)
Set the speakerLabels.
|
CreateJobOptions.Builder |
timestamps(java.lang.Boolean timestamps)
Set the timestamps.
|
CreateJobOptions.Builder |
userToken(java.lang.String userToken)
Set the userToken.
|
CreateJobOptions.Builder |
wordAlternativesThreshold(java.lang.Float wordAlternativesThreshold)
Set the wordAlternativesThreshold.
|
CreateJobOptions.Builder |
wordConfidence(java.lang.Boolean wordConfidence)
Set the wordConfidence.
|
public CreateJobOptions.Builder()
public CreateJobOptions.Builder(java.io.InputStream audio, java.lang.String contentType)
audio
- the audiocontentType
- the contentTypepublic CreateJobOptions.Builder(java.io.InputStream audio)
audio
- the audiopublic CreateJobOptions build()
public CreateJobOptions.Builder addKeyword(java.lang.String keyword)
keyword
- the new keywordpublic CreateJobOptions.Builder audio(java.io.InputStream audio)
audio
- the audiopublic CreateJobOptions.Builder contentType(java.lang.String contentType)
contentType
- the contentTypepublic CreateJobOptions.Builder model(java.lang.String model)
model
- the modelpublic CreateJobOptions.Builder callbackUrl(java.lang.String callbackUrl)
callbackUrl
- the callbackUrlpublic CreateJobOptions.Builder events(java.lang.String events)
events
- the eventspublic CreateJobOptions.Builder userToken(java.lang.String userToken)
userToken
- the userTokenpublic CreateJobOptions.Builder resultsTtl(long resultsTtl)
resultsTtl
- the resultsTtlpublic CreateJobOptions.Builder languageCustomizationId(java.lang.String languageCustomizationId)
languageCustomizationId
- the languageCustomizationIdpublic CreateJobOptions.Builder acousticCustomizationId(java.lang.String acousticCustomizationId)
acousticCustomizationId
- the acousticCustomizationIdpublic CreateJobOptions.Builder baseModelVersion(java.lang.String baseModelVersion)
baseModelVersion
- the baseModelVersionpublic CreateJobOptions.Builder customizationWeight(java.lang.Double customizationWeight)
customizationWeight
- the customizationWeightpublic CreateJobOptions.Builder inactivityTimeout(long inactivityTimeout)
inactivityTimeout
- the inactivityTimeoutpublic CreateJobOptions.Builder keywords(java.util.List<java.lang.String> keywords)
keywords
- the keywordspublic CreateJobOptions.Builder keywordsThreshold(java.lang.Float keywordsThreshold)
keywordsThreshold
- the keywordsThresholdpublic CreateJobOptions.Builder maxAlternatives(long maxAlternatives)
maxAlternatives
- the maxAlternativespublic CreateJobOptions.Builder wordAlternativesThreshold(java.lang.Float wordAlternativesThreshold)
wordAlternativesThreshold
- the wordAlternativesThresholdpublic CreateJobOptions.Builder wordConfidence(java.lang.Boolean wordConfidence)
wordConfidence
- the wordConfidencepublic CreateJobOptions.Builder timestamps(java.lang.Boolean timestamps)
timestamps
- the timestampspublic CreateJobOptions.Builder profanityFilter(java.lang.Boolean profanityFilter)
profanityFilter
- the profanityFilterpublic CreateJobOptions.Builder smartFormatting(java.lang.Boolean smartFormatting)
smartFormatting
- the smartFormattingpublic CreateJobOptions.Builder speakerLabels(java.lang.Boolean speakerLabels)
speakerLabels
- the speakerLabelspublic CreateJobOptions.Builder customizationId(java.lang.String customizationId)
customizationId
- the customizationIdpublic CreateJobOptions.Builder audio(java.io.File audio) throws java.io.FileNotFoundException
audio
- the audiojava.io.FileNotFoundException
- if the file could not be found