Record Class CopilotUserResponseQuotaSnapshotsCompletions

java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.CopilotUserResponseQuotaSnapshotsCompletions

@Generated("copilot-sdk-codegen") public record CopilotUserResponseQuotaSnapshotsCompletions(Double entitlement, Double overageCount, Boolean overagePermitted, Double percentRemaining, String quotaId, Double quotaRemaining, Double remaining, Boolean unlimited, String timestampUtc, Boolean hasQuota, Double quotaResetAt, Boolean tokenBasedBilling) extends Record
Schema for the `CopilotUserResponseQuotaSnapshotsCompletions` type.
Since:
1.0.0
  • Constructor Details

    • CopilotUserResponseQuotaSnapshotsCompletions

      public CopilotUserResponseQuotaSnapshotsCompletions(Double entitlement, Double overageCount, Boolean overagePermitted, Double percentRemaining, String quotaId, Double quotaRemaining, Double remaining, Boolean unlimited, String timestampUtc, Boolean hasQuota, Double quotaResetAt, Boolean tokenBasedBilling)
      Creates an instance of a CopilotUserResponseQuotaSnapshotsCompletions record class.
      Parameters:
      entitlement - the value for the entitlement record component
      overageCount - the value for the overageCount record component
      overagePermitted - the value for the overagePermitted record component
      percentRemaining - the value for the percentRemaining record component
      quotaId - the value for the quotaId record component
      quotaRemaining - the value for the quotaRemaining record component
      remaining - the value for the remaining record component
      unlimited - the value for the unlimited record component
      timestampUtc - the value for the timestampUtc record component
      hasQuota - the value for the hasQuota record component
      quotaResetAt - the value for the quotaResetAt record component
      tokenBasedBilling - the value for the tokenBasedBilling 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.
    • entitlement

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

      public Double overageCount()
      Returns the value of the overageCount record component.
      Returns:
      the value of the overageCount record component
    • overagePermitted

      public Boolean overagePermitted()
      Returns the value of the overagePermitted record component.
      Returns:
      the value of the overagePermitted record component
    • percentRemaining

      public Double percentRemaining()
      Returns the value of the percentRemaining record component.
      Returns:
      the value of the percentRemaining record component
    • quotaId

      public String quotaId()
      Returns the value of the quotaId record component.
      Returns:
      the value of the quotaId record component
    • quotaRemaining

      public Double quotaRemaining()
      Returns the value of the quotaRemaining record component.
      Returns:
      the value of the quotaRemaining record component
    • remaining

      public Double remaining()
      Returns the value of the remaining record component.
      Returns:
      the value of the remaining record component
    • unlimited

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

      public String timestampUtc()
      Returns the value of the timestampUtc record component.
      Returns:
      the value of the timestampUtc record component
    • hasQuota

      public Boolean hasQuota()
      Returns the value of the hasQuota record component.
      Returns:
      the value of the hasQuota record component
    • quotaResetAt

      public Double quotaResetAt()
      Returns the value of the quotaResetAt record component.
      Returns:
      the value of the quotaResetAt record component
    • tokenBasedBilling

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