Record Class ProviderQuotaBudgetMetadata

java.lang.Object
java.lang.Record
com.github.copilot.generated.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 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 a ProviderQuotaBudgetMetadata record class.
      Parameters:
      unlimited - the value for the unlimited record component
      entitlement - the value for the entitlement record component
      consumed - the value for the consumed record component
      remainingPercentage - the value for the remainingPercentage record component
      usageAllowedWhenExhausted - the value for the usageAllowedWhenExhausted record component
      overage - the value for the overage record component
      overageAllowedWhenExhausted - the value for the overageAllowedWhenExhausted record component
      resetAtEpochMs - the value for the resetAtEpochMs record component
      resetEstimated - the value for the resetEstimated record component
      tokenBasedBilling - the value for the tokenBasedBilling record component
      overageLimit - the value for the overageLimit record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • unlimited

      public Boolean unlimited()
      Returns the value of the unlimited record component.
      Returns:
      the value of the unlimited record component
    • entitlement

      public Double entitlement()
      Returns the value of the entitlement record component.
      Returns:
      the value of the entitlement record component
    • consumed

      public Double consumed()
      Returns the value of the consumed record component.
      Returns:
      the value of the consumed record component
    • remainingPercentage

      public Double remainingPercentage()
      Returns the value of the remainingPercentage record component.
      Returns:
      the value of the remainingPercentage record component
    • usageAllowedWhenExhausted

      public Boolean usageAllowedWhenExhausted()
      Returns the value of the usageAllowedWhenExhausted record component.
      Returns:
      the value of the usageAllowedWhenExhausted record component
    • overage

      public Double overage()
      Returns the value of the overage record component.
      Returns:
      the value of the overage record component
    • overageAllowedWhenExhausted

      public Boolean overageAllowedWhenExhausted()
      Returns the value of the overageAllowedWhenExhausted record component.
      Returns:
      the value of the overageAllowedWhenExhausted record component
    • resetAtEpochMs

      public Double resetAtEpochMs()
      Returns the value of the resetAtEpochMs record component.
      Returns:
      the value of the resetAtEpochMs record component
    • resetEstimated

      public Boolean resetEstimated()
      Returns the value of the resetEstimated record component.
      Returns:
      the value of the resetEstimated record component
    • tokenBasedBilling

      public Boolean tokenBasedBilling()
      Returns the value of the tokenBasedBilling record component.
      Returns:
      the value of the tokenBasedBilling record component
    • overageLimit

      public Double overageLimit()
      Returns the value of the overageLimit record component.
      Returns:
      the value of the overageLimit record component