Package com.github.copilot.sdk.generated
Record Class AssistantUsageEvent.AssistantUsageEventData.AssistantUsageEventDataCopilotUsage.AssistantUsageEventDataCopilotUsageTokenDetailsItem
java.lang.Object
java.lang.Record
com.github.copilot.sdk.generated.AssistantUsageEvent.AssistantUsageEventData.AssistantUsageEventDataCopilotUsage.AssistantUsageEventDataCopilotUsageTokenDetailsItem
public static record AssistantUsageEvent.AssistantUsageEventData.AssistantUsageEventDataCopilotUsage.AssistantUsageEventDataCopilotUsageTokenDetailsItem(Double batchSize, Double costPerBatch, Double tokenCount, String tokenType)
extends Record
Token usage detail for a single billing category
-
Constructor Summary
ConstructorsConstructorDescriptionAssistantUsageEventDataCopilotUsageTokenDetailsItem(Double batchSize, Double costPerBatch, Double tokenCount, String tokenType) Creates an instance of aAssistantUsageEventDataCopilotUsageTokenDetailsItemrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebatchSizerecord component.Returns the value of thecostPerBatchrecord 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 thetokenCountrecord component.Returns the value of thetokenTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AssistantUsageEventDataCopilotUsageTokenDetailsItem
public AssistantUsageEventDataCopilotUsageTokenDetailsItem(Double batchSize, Double costPerBatch, Double tokenCount, String tokenType) Creates an instance of aAssistantUsageEventDataCopilotUsageTokenDetailsItemrecord class.- Parameters:
batchSize- the value for thebatchSizerecord componentcostPerBatch- the value for thecostPerBatchrecord componenttokenCount- the value for thetokenCountrecord componenttokenType- the value for thetokenTyperecord 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). -
batchSize
Returns the value of thebatchSizerecord component.- Returns:
- the value of the
batchSizerecord component
-
costPerBatch
Returns the value of thecostPerBatchrecord component.- Returns:
- the value of the
costPerBatchrecord component
-
tokenCount
Returns the value of thetokenCountrecord component.- Returns:
- the value of the
tokenCountrecord component
-
tokenType
Returns the value of thetokenTyperecord component.- Returns:
- the value of the
tokenTyperecord component
-