Record Class DashScopeTTSApiSpec.DashScopeAudioTTSResponse.TTSUsage
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.audio.tts.DashScopeTTSApiSpec.DashScopeAudioTTSResponse.TTSUsage
- Enclosing class:
- DashScopeTTSApiSpec.DashScopeAudioTTSResponse
public static record DashScopeTTSApiSpec.DashScopeAudioTTSResponse.TTSUsage(Integer inputTokens, Integer outputTokens, Integer characters, DashScopeTTSApiSpec.DashScopeAudioTTSResponse.InputTokensDetails inputTokensDetails, DashScopeTTSApiSpec.DashScopeAudioTTSResponse.OutputTokensDetails outputTokensDetails, Integer totalTokens)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTTSUsage(Integer inputTokens, Integer outputTokens, Integer characters, DashScopeTTSApiSpec.DashScopeAudioTTSResponse.InputTokensDetails inputTokensDetails, DashScopeTTSApiSpec.DashScopeAudioTTSResponse.OutputTokensDetails outputTokensDetails, Integer totalTokens) Creates an instance of aTTSUsagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecharactersrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinputTokensrecord component.Returns the value of theinputTokensDetailsrecord component.Returns the value of theoutputTokensrecord component.Returns the value of theoutputTokensDetailsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetotalTokensrecord component.
-
Constructor Details
-
TTSUsage
public TTSUsage(Integer inputTokens, Integer outputTokens, Integer characters, DashScopeTTSApiSpec.DashScopeAudioTTSResponse.InputTokensDetails inputTokensDetails, DashScopeTTSApiSpec.DashScopeAudioTTSResponse.OutputTokensDetails outputTokensDetails, Integer totalTokens) Creates an instance of aTTSUsagerecord class.- Parameters:
inputTokens- the value for theinputTokensrecord componentoutputTokens- the value for theoutputTokensrecord componentcharacters- the value for thecharactersrecord componentinputTokensDetails- the value for theinputTokensDetailsrecord componentoutputTokensDetails- the value for theoutputTokensDetailsrecord componenttotalTokens- the value for thetotalTokensrecord 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). -
inputTokens
Returns the value of theinputTokensrecord component.- Returns:
- the value of the
inputTokensrecord component
-
outputTokens
Returns the value of theoutputTokensrecord component.- Returns:
- the value of the
outputTokensrecord component
-
characters
Returns the value of thecharactersrecord component.- Returns:
- the value of the
charactersrecord component
-
inputTokensDetails
Returns the value of theinputTokensDetailsrecord component.- Returns:
- the value of the
inputTokensDetailsrecord component
-
outputTokensDetails
Returns the value of theoutputTokensDetailsrecord component.- Returns:
- the value of the
outputTokensDetailsrecord component
-
totalTokens
Returns the value of thetotalTokensrecord component.- Returns:
- the value of the
totalTokensrecord component
-