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 Details

    • AssistantUsageEventDataQuotaSnapshotsValue

      public AssistantUsageEventDataQuotaSnapshotsValue(Boolean isUnlimitedEntitlement, Double entitlementRequests, Double usedRequests, Boolean usageAllowedWithExhaustedQuota, Double overage, Boolean overageAllowedWithExhaustedQuota, Double remainingPercentage, OffsetDateTime resetDate)
      Creates an instance of a AssistantUsageEventDataQuotaSnapshotsValue record class.
      Parameters:
      isUnlimitedEntitlement - the value for the isUnlimitedEntitlement record component
      entitlementRequests - the value for the entitlementRequests record component
      usedRequests - the value for the usedRequests record component
      usageAllowedWithExhaustedQuota - the value for the usageAllowedWithExhaustedQuota record component
      overage - the value for the overage record component
      overageAllowedWithExhaustedQuota - the value for the overageAllowedWithExhaustedQuota record component
      remainingPercentage - the value for the remainingPercentage record component
      resetDate - the value for the resetDate 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.
    • isUnlimitedEntitlement

      public Boolean isUnlimitedEntitlement()
      Returns the value of the isUnlimitedEntitlement record component.
      Returns:
      the value of the isUnlimitedEntitlement record component
    • entitlementRequests

      public Double entitlementRequests()
      Returns the value of the entitlementRequests record component.
      Returns:
      the value of the entitlementRequests record component
    • usedRequests

      public Double usedRequests()
      Returns the value of the usedRequests record component.
      Returns:
      the value of the usedRequests record component
    • usageAllowedWithExhaustedQuota

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

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

      public Boolean overageAllowedWithExhaustedQuota()
      Returns the value of the overageAllowedWithExhaustedQuota record component.
      Returns:
      the value of the overageAllowedWithExhaustedQuota record component
    • remainingPercentage

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

      public OffsetDateTime resetDate()
      Returns the value of the resetDate record component.
      Returns:
      the value of the resetDate record component