public static class TranscriptionTask.Builder extends Object
Constructor and Description |
---|
Builder() |
public TranscriptionTask.Builder id(String id)
The OCID of the task.
id
- the value to setpublic TranscriptionTask.Builder displayName(String displayName)
A user-friendly display name for the task.
displayName
- the value to setpublic TranscriptionTask.Builder timeStarted(Date timeStarted)
Task started time.
timeStarted
- the value to setpublic TranscriptionTask.Builder timeFinished(Date timeFinished)
Task finished time.
timeFinished
- the value to setpublic TranscriptionTask.Builder percentComplete(Integer percentComplete)
How much progress the operation has made, vs the total amount of work that must be performed.
percentComplete
- the value to setpublic TranscriptionTask.Builder ttlInDays(Integer ttlInDays)
Time to live duration in days for tasks. Task will be available till max 90 days.
ttlInDays
- the value to setpublic TranscriptionTask.Builder modelDetails(TranscriptionModelDetails modelDetails)
public TranscriptionTask.Builder audioFormatDetails(AudioFormatDetails audioFormatDetails)
public TranscriptionTask.Builder fileSizeInBytes(Integer fileSizeInBytes)
Size of input file in Bytes.
fileSizeInBytes
- the value to setpublic TranscriptionTask.Builder fileDurationInSeconds(Integer fileDurationInSeconds)
Duration of input file in Seconds.
fileDurationInSeconds
- the value to setpublic TranscriptionTask.Builder processingDurationInSeconds(Integer processingDurationInSeconds)
Task proccessing duration, which excludes waiting time in the system.
processingDurationInSeconds
- the value to setpublic TranscriptionTask.Builder inputLocation(ObjectLocation inputLocation)
public TranscriptionTask.Builder outputLocation(ObjectLocation outputLocation)
public TranscriptionTask.Builder lifecycleState(TranscriptionTask.LifecycleState lifecycleState)
The current state of the Task.
lifecycleState
- the value to setpublic TranscriptionTask.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
lifecycleDetails
- the value to setpublic TranscriptionTask build()
public TranscriptionTask.Builder copy(TranscriptionTask model)
Copyright © 2016–2024. All rights reserved.