Record Class ProviderMonthlyUsage
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.ProviderMonthlyUsage
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record ProviderMonthlyUsage(ProviderMonthlyUsageState state, ProviderQuotaUnit unit, ProviderMonthlyUsageScope scope, Double consumedQuantity, String queriedAt, String cycleStart, String resetOn)
extends Record
An authoritative monthly usage reading for the observation's provider, account, and service.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionProviderMonthlyUsage(ProviderMonthlyUsageState state, ProviderQuotaUnit unit, ProviderMonthlyUsageScope scope, Double consumedQuantity, String queriedAt, String cycleStart, String resetOn) Creates an instance of aProviderMonthlyUsagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconsumedQuantityrecord component.Returns the value of thecycleStartrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thequeriedAtrecord component.resetOn()Returns the value of theresetOnrecord component.scope()Returns the value of thescoperecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.unit()Returns the value of theunitrecord component.
-
Constructor Details
-
ProviderMonthlyUsage
public ProviderMonthlyUsage(ProviderMonthlyUsageState state, ProviderQuotaUnit unit, ProviderMonthlyUsageScope scope, Double consumedQuantity, String queriedAt, String cycleStart, String resetOn) Creates an instance of aProviderMonthlyUsagerecord class.- Parameters:
state- the value for thestaterecord componentunit- the value for theunitrecord componentscope- the value for thescoperecord componentconsumedQuantity- the value for theconsumedQuantityrecord componentqueriedAt- the value for thequeriedAtrecord componentcycleStart- the value for thecycleStartrecord componentresetOn- the value for theresetOnrecord 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). -
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
unit
Returns the value of theunitrecord component.- Returns:
- the value of the
unitrecord component
-
scope
Returns the value of thescoperecord component.- Returns:
- the value of the
scoperecord component
-
consumedQuantity
Returns the value of theconsumedQuantityrecord component.- Returns:
- the value of the
consumedQuantityrecord component
-
queriedAt
Returns the value of thequeriedAtrecord component.- Returns:
- the value of the
queriedAtrecord component
-
cycleStart
Returns the value of thecycleStartrecord component.- Returns:
- the value of the
cycleStartrecord component
-
resetOn
Returns the value of theresetOnrecord component.- Returns:
- the value of the
resetOnrecord component
-