Record Class DashScopeAudioTranscriptionApi.Response.Output
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.api.DashScopeAudioTranscriptionApi.Response.Output
- Enclosing class:
- DashScopeAudioTranscriptionApi.Response
public static record DashScopeAudioTranscriptionApi.Response.Output(String taskId, DashScopeAudioTranscriptionApi.TaskStatus taskStatus, String submitTime, String scheduledTime, String endTime, List<DashScopeAudioTranscriptionApi.Response.Output.Result> results, DashScopeAudioTranscriptionApi.Response.Output.TaskMetrics taskMetrics)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionOutput(String taskId, DashScopeAudioTranscriptionApi.TaskStatus taskStatus, String submitTime, String scheduledTime, String endTime, List<DashScopeAudioTranscriptionApi.Response.Output.Result> results, DashScopeAudioTranscriptionApi.Response.Output.TaskMetrics taskMetrics) Creates an instance of aOutputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionendTime()Returns the value of theendTimerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.results()Returns the value of theresultsrecord component.Returns the value of thescheduledTimerecord component.Returns the value of thesubmitTimerecord component.taskId()Returns the value of thetaskIdrecord component.Returns the value of thetaskMetricsrecord component.Returns the value of thetaskStatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Output
public Output(String taskId, DashScopeAudioTranscriptionApi.TaskStatus taskStatus, String submitTime, String scheduledTime, String endTime, List<DashScopeAudioTranscriptionApi.Response.Output.Result> results, DashScopeAudioTranscriptionApi.Response.Output.TaskMetrics taskMetrics) Creates an instance of aOutputrecord class.- Parameters:
taskId- the value for thetaskIdrecord componenttaskStatus- the value for thetaskStatusrecord componentsubmitTime- the value for thesubmitTimerecord componentscheduledTime- the value for thescheduledTimerecord componentendTime- the value for theendTimerecord componentresults- the value for theresultsrecord componenttaskMetrics- the value for thetaskMetricsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
taskId
Returns the value of thetaskIdrecord component.- Returns:
- the value of the
taskIdrecord component
-
taskStatus
Returns the value of thetaskStatusrecord component.- Returns:
- the value of the
taskStatusrecord component
-
submitTime
Returns the value of thesubmitTimerecord component.- Returns:
- the value of the
submitTimerecord component
-
scheduledTime
Returns the value of thescheduledTimerecord component.- Returns:
- the value of the
scheduledTimerecord component
-
endTime
Returns the value of theendTimerecord component.- Returns:
- the value of the
endTimerecord component
-
results
Returns the value of theresultsrecord component.- Returns:
- the value of the
resultsrecord component
-
taskMetrics
Returns the value of thetaskMetricsrecord component.- Returns:
- the value of the
taskMetricsrecord component
-