Package com.github.copilot.sdk.generated
Record Class AssistantUsageEvent.AssistantUsageEventData.AssistantUsageEventDataQuotaSnapshotsValue
java.lang.Object
java.lang.Record
com.github.copilot.sdk.generated.AssistantUsageEvent.AssistantUsageEventData.AssistantUsageEventDataQuotaSnapshotsValue
- Enclosing class:
- AssistantUsageEvent.AssistantUsageEventData
public static record AssistantUsageEvent.AssistantUsageEventData.AssistantUsageEventDataQuotaSnapshotsValue(Boolean isUnlimitedEntitlement, Double entitlementRequests, Double usedRequests, Boolean usageAllowedWithExhaustedQuota, Double overage, Boolean overageAllowedWithExhaustedQuota, Double remainingPercentage, OffsetDateTime resetDate)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAssistantUsageEventDataQuotaSnapshotsValue(Boolean isUnlimitedEntitlement, Double entitlementRequests, Double usedRequests, Boolean usageAllowedWithExhaustedQuota, Double overage, Boolean overageAllowedWithExhaustedQuota, Double remainingPercentage, OffsetDateTime resetDate) Creates an instance of aAssistantUsageEventDataQuotaSnapshotsValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theentitlementRequestsrecord 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 theisUnlimitedEntitlementrecord component.overage()Returns the value of theoveragerecord component.Returns the value of theoverageAllowedWithExhaustedQuotarecord component.Returns the value of theremainingPercentagerecord component.Returns the value of theresetDaterecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theusageAllowedWithExhaustedQuotarecord component.Returns the value of theusedRequestsrecord component.
-
Constructor Details
-
AssistantUsageEventDataQuotaSnapshotsValue
public AssistantUsageEventDataQuotaSnapshotsValue(Boolean isUnlimitedEntitlement, Double entitlementRequests, Double usedRequests, Boolean usageAllowedWithExhaustedQuota, Double overage, Boolean overageAllowedWithExhaustedQuota, Double remainingPercentage, OffsetDateTime resetDate) Creates an instance of aAssistantUsageEventDataQuotaSnapshotsValuerecord class.- Parameters:
isUnlimitedEntitlement- the value for theisUnlimitedEntitlementrecord componententitlementRequests- the value for theentitlementRequestsrecord componentusedRequests- the value for theusedRequestsrecord componentusageAllowedWithExhaustedQuota- the value for theusageAllowedWithExhaustedQuotarecord componentoverage- the value for theoveragerecord componentoverageAllowedWithExhaustedQuota- the value for theoverageAllowedWithExhaustedQuotarecord componentremainingPercentage- the value for theremainingPercentagerecord componentresetDate- the value for theresetDaterecord 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). -
isUnlimitedEntitlement
Returns the value of theisUnlimitedEntitlementrecord component.- Returns:
- the value of the
isUnlimitedEntitlementrecord component
-
entitlementRequests
Returns the value of theentitlementRequestsrecord component.- Returns:
- the value of the
entitlementRequestsrecord component
-
usedRequests
Returns the value of theusedRequestsrecord component.- Returns:
- the value of the
usedRequestsrecord component
-
usageAllowedWithExhaustedQuota
Returns the value of theusageAllowedWithExhaustedQuotarecord component.- Returns:
- the value of the
usageAllowedWithExhaustedQuotarecord component
-
overage
Returns the value of theoveragerecord component.- Returns:
- the value of the
overagerecord component
-
overageAllowedWithExhaustedQuota
Returns the value of theoverageAllowedWithExhaustedQuotarecord component.- Returns:
- the value of the
overageAllowedWithExhaustedQuotarecord component
-
remainingPercentage
Returns the value of theremainingPercentagerecord component.- Returns:
- the value of the
remainingPercentagerecord component
-
resetDate
Returns the value of theresetDaterecord component.- Returns:
- the value of the
resetDaterecord component
-