public static class CreateJobOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(java.io.InputStream audio)
Instantiates a new builder with required properties.
|
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 |
audioMetrics(java.lang.Boolean audioMetrics)
Set the audioMetrics.
|
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)
Set the customizationId.
|
CreateJobOptions.Builder |
customizationWeight(java.lang.Double customizationWeight)
Set the customizationWeight.
|
CreateJobOptions.Builder |
events(java.lang.String events)
Set the events.
|
CreateJobOptions.Builder |
grammarName(java.lang.String grammarName)
Set the grammarName.
|
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 |
processingMetrics(java.lang.Boolean processingMetrics)
Set the processingMetrics.
|
CreateJobOptions.Builder |
processingMetricsInterval(java.lang.Float processingMetricsInterval)
Set the processingMetricsInterval.
|
CreateJobOptions.Builder |
profanityFilter(java.lang.Boolean profanityFilter)
Set the profanityFilter.
|
CreateJobOptions.Builder |
redaction(java.lang.Boolean redaction)
Set the redaction.
|
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 Builder()
public 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 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 grammarName(java.lang.String grammarName)
grammarName
- the grammarNamepublic CreateJobOptions.Builder redaction(java.lang.Boolean redaction)
redaction
- the redactionpublic CreateJobOptions.Builder processingMetrics(java.lang.Boolean processingMetrics)
processingMetrics
- the processingMetricspublic CreateJobOptions.Builder processingMetricsInterval(java.lang.Float processingMetricsInterval)
processingMetricsInterval
- the processingMetricsIntervalpublic CreateJobOptions.Builder audioMetrics(java.lang.Boolean audioMetrics)
audioMetrics
- the audioMetricspublic CreateJobOptions.Builder contentType(java.lang.String contentType)
contentType
- the contentTypepublic CreateJobOptions.Builder audio(java.io.File audio) throws java.io.FileNotFoundException
audio
- the audiojava.io.FileNotFoundException
- if the file could not be found