Record Class ProviderQuotaState

java.lang.Object
java.lang.Record
com.github.copilot.generated.ProviderQuotaState

@CopilotExperimental @Generated("copilot-sdk-codegen") public record ProviderQuotaState(ModelProviderRef provider, String quotaId, ProviderQuotaUnit unit, ProviderQuotaAccessState accessState, ProviderQuotaCapacityState capacityState, ProviderQuotaObservationKind observationKind, ProviderQuotaQuantityKind quantityKind, ProviderQuotaAcquisitionStatus acquisitionStatus, String observedAt, Long httpStatus, String acquisitionError, ProviderQuotaBudgetMetadata budgetMetadata, ProviderMonthlyUsage monthlyUsage, String compatibilityKey, Boolean hasQuota, Long entitledQuantity, Long availableQuantity, String reason, String source, String service) extends Record
An account quota reading. Absence of a quantity is unknown, never zero.
Since:
1.0.0
  • Constructor Details

    • ProviderQuotaState

      public ProviderQuotaState(ModelProviderRef provider, String quotaId, ProviderQuotaUnit unit, ProviderQuotaAccessState accessState, ProviderQuotaCapacityState capacityState, ProviderQuotaObservationKind observationKind, ProviderQuotaQuantityKind quantityKind, ProviderQuotaAcquisitionStatus acquisitionStatus, String observedAt, Long httpStatus, String acquisitionError, ProviderQuotaBudgetMetadata budgetMetadata, ProviderMonthlyUsage monthlyUsage, String compatibilityKey, Boolean hasQuota, Long entitledQuantity, Long availableQuantity, String reason, String source, String service)
      Creates an instance of a ProviderQuotaState record class.
      Parameters:
      provider - the value for the provider record component
      quotaId - the value for the quotaId record component
      unit - the value for the unit record component
      accessState - the value for the accessState record component
      capacityState - the value for the capacityState record component
      observationKind - the value for the observationKind record component
      quantityKind - the value for the quantityKind record component
      acquisitionStatus - the value for the acquisitionStatus record component
      observedAt - the value for the observedAt record component
      httpStatus - the value for the httpStatus record component
      acquisitionError - the value for the acquisitionError record component
      budgetMetadata - the value for the budgetMetadata record component
      monthlyUsage - the value for the monthlyUsage record component
      compatibilityKey - the value for the compatibilityKey record component
      hasQuota - the value for the hasQuota record component
      entitledQuantity - the value for the entitledQuantity record component
      availableQuantity - the value for the availableQuantity record component
      reason - the value for the reason record component
      source - the value for the source record component
      service - the value for the service 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.
    • provider

      public ModelProviderRef provider()
      Returns the value of the provider record component.
      Returns:
      the value of the provider record component
    • quotaId

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

      public ProviderQuotaUnit unit()
      Returns the value of the unit record component.
      Returns:
      the value of the unit record component
    • accessState

      public ProviderQuotaAccessState accessState()
      Returns the value of the accessState record component.
      Returns:
      the value of the accessState record component
    • capacityState

      public ProviderQuotaCapacityState capacityState()
      Returns the value of the capacityState record component.
      Returns:
      the value of the capacityState record component
    • observationKind

      public ProviderQuotaObservationKind observationKind()
      Returns the value of the observationKind record component.
      Returns:
      the value of the observationKind record component
    • quantityKind

      public ProviderQuotaQuantityKind quantityKind()
      Returns the value of the quantityKind record component.
      Returns:
      the value of the quantityKind record component
    • acquisitionStatus

      public ProviderQuotaAcquisitionStatus acquisitionStatus()
      Returns the value of the acquisitionStatus record component.
      Returns:
      the value of the acquisitionStatus record component
    • observedAt

      public String observedAt()
      Returns the value of the observedAt record component.
      Returns:
      the value of the observedAt record component
    • httpStatus

      public Long httpStatus()
      Returns the value of the httpStatus record component.
      Returns:
      the value of the httpStatus record component
    • acquisitionError

      public String acquisitionError()
      Returns the value of the acquisitionError record component.
      Returns:
      the value of the acquisitionError record component
    • budgetMetadata

      public ProviderQuotaBudgetMetadata budgetMetadata()
      Returns the value of the budgetMetadata record component.
      Returns:
      the value of the budgetMetadata record component
    • monthlyUsage

      public ProviderMonthlyUsage monthlyUsage()
      Returns the value of the monthlyUsage record component.
      Returns:
      the value of the monthlyUsage record component
    • compatibilityKey

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

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

      public Long entitledQuantity()
      Returns the value of the entitledQuantity record component.
      Returns:
      the value of the entitledQuantity record component
    • availableQuantity

      public Long availableQuantity()
      Returns the value of the availableQuantity record component.
      Returns:
      the value of the availableQuantity record component
    • reason

      public String reason()
      Returns the value of the reason record component.
      Returns:
      the value of the reason record component
    • source

      public String source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • service

      public String service()
      Returns the value of the service record component.
      Returns:
      the value of the service record component