Record Class DashScopeApiSpec.DashScopeImageAsyncResponse.DashScopeImageAsyncResponseOutput
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.spec.DashScopeApiSpec.DashScopeImageAsyncResponse.DashScopeImageAsyncResponseOutput
- Enclosing class:
- DashScopeApiSpec.DashScopeImageAsyncResponse
public static record DashScopeApiSpec.DashScopeImageAsyncResponse.DashScopeImageAsyncResponseOutput(String taskId, String taskStatus, List<DashScopeApiSpec.DashScopeImageAsyncResponse.DashScopeImageAsyncResponseResult> results, DashScopeApiSpec.DashScopeImageAsyncResponse.DashScopeImageAsyncResponseTaskMetrics taskMetrics, String code, String message)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDashScopeImageAsyncResponseOutput(String taskId, String taskStatus, List<DashScopeApiSpec.DashScopeImageAsyncResponse.DashScopeImageAsyncResponseResult> results, DashScopeApiSpec.DashScopeImageAsyncResponse.DashScopeImageAsyncResponseTaskMetrics taskMetrics, String code, String message) Creates an instance of aDashScopeImageAsyncResponseOutputrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.results()Returns the value of theresultsrecord 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
-
DashScopeImageAsyncResponseOutput
public DashScopeImageAsyncResponseOutput(String taskId, String taskStatus, List<DashScopeApiSpec.DashScopeImageAsyncResponse.DashScopeImageAsyncResponseResult> results, DashScopeApiSpec.DashScopeImageAsyncResponse.DashScopeImageAsyncResponseTaskMetrics taskMetrics, String code, String message) Creates an instance of aDashScopeImageAsyncResponseOutputrecord class.- Parameters:
taskId- the value for thetaskIdrecord componenttaskStatus- the value for thetaskStatusrecord componentresults- the value for theresultsrecord componenttaskMetrics- the value for thetaskMetricsrecord componentcode- the value for thecoderecord componentmessage- the value for themessagerecord 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
-
results
public List<DashScopeApiSpec.DashScopeImageAsyncResponse.DashScopeImageAsyncResponseResult> results()Returns the value of theresultsrecord component.- Returns:
- the value of the
resultsrecord component
-
taskMetrics
public DashScopeApiSpec.DashScopeImageAsyncResponse.DashScopeImageAsyncResponseTaskMetrics taskMetrics()Returns the value of thetaskMetricsrecord component.- Returns:
- the value of the
taskMetricsrecord component
-
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-