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 Summary
ConstructorsConstructorDescriptionProviderQuotaState(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 aProviderQuotaStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessStaterecord component.Returns the value of theacquisitionErrorrecord component.Returns the value of theacquisitionStatusrecord component.Returns the value of theavailableQuantityrecord component.Returns the value of thebudgetMetadatarecord component.Returns the value of thecapacityStaterecord component.Returns the value of thecompatibilityKeyrecord component.Returns the value of theentitledQuantityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.hasQuota()Returns the value of thehasQuotarecord component.Returns the value of thehttpStatusrecord component.Returns the value of themonthlyUsagerecord component.Returns the value of theobservationKindrecord component.Returns the value of theobservedAtrecord component.provider()Returns the value of theproviderrecord component.Returns the value of thequantityKindrecord component.quotaId()Returns the value of thequotaIdrecord component.reason()Returns the value of thereasonrecord component.service()Returns the value of theservicerecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.unit()Returns the value of theunitrecord component.
-
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 aProviderQuotaStaterecord class.- Parameters:
provider- the value for theproviderrecord componentquotaId- the value for thequotaIdrecord componentunit- the value for theunitrecord componentaccessState- the value for theaccessStaterecord componentcapacityState- the value for thecapacityStaterecord componentobservationKind- the value for theobservationKindrecord componentquantityKind- the value for thequantityKindrecord componentacquisitionStatus- the value for theacquisitionStatusrecord componentobservedAt- the value for theobservedAtrecord componenthttpStatus- the value for thehttpStatusrecord componentacquisitionError- the value for theacquisitionErrorrecord componentbudgetMetadata- the value for thebudgetMetadatarecord componentmonthlyUsage- the value for themonthlyUsagerecord componentcompatibilityKey- the value for thecompatibilityKeyrecord componenthasQuota- the value for thehasQuotarecord componententitledQuantity- the value for theentitledQuantityrecord componentavailableQuantity- the value for theavailableQuantityrecord componentreason- the value for thereasonrecord componentsource- the value for thesourcerecord componentservice- the value for theservicerecord 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). -
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
quotaId
Returns the value of thequotaIdrecord component.- Returns:
- the value of the
quotaIdrecord component
-
unit
Returns the value of theunitrecord component.- Returns:
- the value of the
unitrecord component
-
accessState
Returns the value of theaccessStaterecord component.- Returns:
- the value of the
accessStaterecord component
-
capacityState
Returns the value of thecapacityStaterecord component.- Returns:
- the value of the
capacityStaterecord component
-
observationKind
Returns the value of theobservationKindrecord component.- Returns:
- the value of the
observationKindrecord component
-
quantityKind
Returns the value of thequantityKindrecord component.- Returns:
- the value of the
quantityKindrecord component
-
acquisitionStatus
Returns the value of theacquisitionStatusrecord component.- Returns:
- the value of the
acquisitionStatusrecord component
-
observedAt
Returns the value of theobservedAtrecord component.- Returns:
- the value of the
observedAtrecord component
-
httpStatus
Returns the value of thehttpStatusrecord component.- Returns:
- the value of the
httpStatusrecord component
-
acquisitionError
Returns the value of theacquisitionErrorrecord component.- Returns:
- the value of the
acquisitionErrorrecord component
-
budgetMetadata
Returns the value of thebudgetMetadatarecord component.- Returns:
- the value of the
budgetMetadatarecord component
-
monthlyUsage
Returns the value of themonthlyUsagerecord component.- Returns:
- the value of the
monthlyUsagerecord component
-
compatibilityKey
Returns the value of thecompatibilityKeyrecord component.- Returns:
- the value of the
compatibilityKeyrecord component
-
hasQuota
Returns the value of thehasQuotarecord component.- Returns:
- the value of the
hasQuotarecord component
-
entitledQuantity
Returns the value of theentitledQuantityrecord component.- Returns:
- the value of the
entitledQuantityrecord component
-
availableQuantity
Returns the value of theavailableQuantityrecord component.- Returns:
- the value of the
availableQuantityrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
service
Returns the value of theservicerecord component.- Returns:
- the value of the
servicerecord component
-