Record Class SessionLimitsExhaustedRequestedEvent.SessionLimitsExhaustedRequestedEventData
java.lang.Object
java.lang.Record
com.github.copilot.generated.SessionLimitsExhaustedRequestedEvent.SessionLimitsExhaustedRequestedEventData
- Enclosing class:
SessionLimitsExhaustedRequestedEvent
public static record SessionLimitsExhaustedRequestedEvent.SessionLimitsExhaustedRequestedEventData(String requestId, Double usedAiCredits, Double maxAiCredits)
extends Record
Data payload for
SessionLimitsExhaustedRequestedEvent.- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionLimitsExhaustedRequestedEventData(String requestId, Double usedAiCredits, Double maxAiCredits) Creates an instance of aSessionLimitsExhaustedRequestedEventDatarecord 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.Returns the value of themaxAiCreditsrecord component.Returns the value of therequestIdrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theusedAiCreditsrecord component.
-
Constructor Details
-
SessionLimitsExhaustedRequestedEventData
public SessionLimitsExhaustedRequestedEventData(String requestId, Double usedAiCredits, Double maxAiCredits) Creates an instance of aSessionLimitsExhaustedRequestedEventDatarecord class.- Parameters:
requestId- the value for therequestIdrecord componentusedAiCredits- the value for theusedAiCreditsrecord componentmaxAiCredits- the value for themaxAiCreditsrecord 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). -
requestId
Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
usedAiCredits
Returns the value of theusedAiCreditsrecord component.- Returns:
- the value of the
usedAiCreditsrecord component
-
maxAiCredits
Returns the value of themaxAiCreditsrecord component.- Returns:
- the value of the
maxAiCreditsrecord component
-