Record Class UsageAccountingIdentity
java.lang.Object
java.lang.Record
com.github.copilot.generated.UsageAccountingIdentity
@Generated("copilot-sdk-codegen")
public record UsageAccountingIdentity(String sourceSessionId, Long sequence, String usageId)
extends Record
Ordered accounting identity assigned under the source session's emission lock.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionUsageAccountingIdentity(String sourceSessionId, Long sequence, String usageId) Creates an instance of aUsageAccountingIdentityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.sequence()Returns the value of thesequencerecord component.Returns the value of thesourceSessionIdrecord component.final StringtoString()Returns a string representation of this record class.usageId()Returns the value of theusageIdrecord component.
-
Constructor Details
-
UsageAccountingIdentity
Creates an instance of aUsageAccountingIdentityrecord class.- Parameters:
sourceSessionId- the value for thesourceSessionIdrecord componentsequence- the value for thesequencerecord componentusageId- the value for theusageIdrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
sourceSessionId
Returns the value of thesourceSessionIdrecord component.- Returns:
- the value of the
sourceSessionIdrecord component
-
sequence
Returns the value of thesequencerecord component.- Returns:
- the value of the
sequencerecord component
-
usageId
Returns the value of theusageIdrecord component.- Returns:
- the value of the
usageIdrecord component
-