Record Class ProviderQuotaBudgetMetadata
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.ProviderQuotaBudgetMetadata
@Generated("copilot-sdk-codegen")
public record ProviderQuotaBudgetMetadata(Boolean unlimited, Double entitlement, Double consumed, Double remainingPercentage, Boolean usageAllowedWhenExhausted, Double overage, Boolean overageAllowedWhenExhausted, Double resetAtEpochMs, Boolean resetEstimated, Boolean tokenBasedBilling, Double overageLimit)
extends Record
Authoritative budget measurements and policy metadata, independent of provider.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionProviderQuotaBudgetMetadata(Boolean unlimited, Double entitlement, Double consumed, Double remainingPercentage, Boolean usageAllowedWhenExhausted, Double overage, Boolean overageAllowedWhenExhausted, Double resetAtEpochMs, Boolean resetEstimated, Boolean tokenBasedBilling, Double overageLimit) Creates an instance of aProviderQuotaBudgetMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionconsumed()Returns the value of theconsumedrecord component.Returns the value of theentitlementrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.overage()Returns the value of theoveragerecord component.Returns the value of theoverageAllowedWhenExhaustedrecord component.Returns the value of theoverageLimitrecord component.Returns the value of theremainingPercentagerecord component.Returns the value of theresetAtEpochMsrecord component.Returns the value of theresetEstimatedrecord component.Returns the value of thetokenBasedBillingrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunlimitedrecord component.Returns the value of theusageAllowedWhenExhaustedrecord component.
-
Constructor Details
-
ProviderQuotaBudgetMetadata
public ProviderQuotaBudgetMetadata(Boolean unlimited, Double entitlement, Double consumed, Double remainingPercentage, Boolean usageAllowedWhenExhausted, Double overage, Boolean overageAllowedWhenExhausted, Double resetAtEpochMs, Boolean resetEstimated, Boolean tokenBasedBilling, Double overageLimit) Creates an instance of aProviderQuotaBudgetMetadatarecord class.- Parameters:
unlimited- the value for theunlimitedrecord componententitlement- the value for theentitlementrecord componentconsumed- the value for theconsumedrecord componentremainingPercentage- the value for theremainingPercentagerecord componentusageAllowedWhenExhausted- the value for theusageAllowedWhenExhaustedrecord componentoverage- the value for theoveragerecord componentoverageAllowedWhenExhausted- the value for theoverageAllowedWhenExhaustedrecord componentresetAtEpochMs- the value for theresetAtEpochMsrecord componentresetEstimated- the value for theresetEstimatedrecord componenttokenBasedBilling- the value for thetokenBasedBillingrecord componentoverageLimit- the value for theoverageLimitrecord 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). -
unlimited
Returns the value of theunlimitedrecord component.- Returns:
- the value of the
unlimitedrecord component
-
entitlement
Returns the value of theentitlementrecord component.- Returns:
- the value of the
entitlementrecord component
-
consumed
Returns the value of theconsumedrecord component.- Returns:
- the value of the
consumedrecord component
-
remainingPercentage
Returns the value of theremainingPercentagerecord component.- Returns:
- the value of the
remainingPercentagerecord component
-
usageAllowedWhenExhausted
Returns the value of theusageAllowedWhenExhaustedrecord component.- Returns:
- the value of the
usageAllowedWhenExhaustedrecord component
-
overage
Returns the value of theoveragerecord component.- Returns:
- the value of the
overagerecord component
-
overageAllowedWhenExhausted
Returns the value of theoverageAllowedWhenExhaustedrecord component.- Returns:
- the value of the
overageAllowedWhenExhaustedrecord component
-
resetAtEpochMs
Returns the value of theresetAtEpochMsrecord component.- Returns:
- the value of the
resetAtEpochMsrecord component
-
resetEstimated
Returns the value of theresetEstimatedrecord component.- Returns:
- the value of the
resetEstimatedrecord component
-
tokenBasedBilling
Returns the value of thetokenBasedBillingrecord component.- Returns:
- the value of the
tokenBasedBillingrecord component
-
overageLimit
Returns the value of theoverageLimitrecord component.- Returns:
- the value of the
overageLimitrecord component
-