Record Class SessionLimitsExhaustedResponse
java.lang.Object
java.lang.Record
com.github.copilot.generated.SessionLimitsExhaustedResponse
@Generated("copilot-sdk-codegen")
public record SessionLimitsExhaustedResponse(SessionLimitsExhaustedResponseAction action, Double additionalAiCredits, Double maxAiCredits)
extends Record
The user's selected action for an exhausted session limit.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionLimitsExhaustedResponse(SessionLimitsExhaustedResponseAction action, Double additionalAiCredits, Double maxAiCredits) Creates an instance of aSessionLimitsExhaustedResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.Returns the value of theadditionalAiCreditsrecord 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 themaxAiCreditsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionLimitsExhaustedResponse
public SessionLimitsExhaustedResponse(SessionLimitsExhaustedResponseAction action, Double additionalAiCredits, Double maxAiCredits) Creates an instance of aSessionLimitsExhaustedResponserecord class.- Parameters:
action- the value for theactionrecord componentadditionalAiCredits- the value for theadditionalAiCreditsrecord 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). -
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
additionalAiCredits
Returns the value of theadditionalAiCreditsrecord component.- Returns:
- the value of the
additionalAiCreditsrecord component
-
maxAiCredits
Returns the value of themaxAiCreditsrecord component.- Returns:
- the value of the
maxAiCreditsrecord component
-