Record Class ModelBilling
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.ModelBilling
@Generated("copilot-sdk-codegen")
public record ModelBilling(Double multiplier, ModelBillingTokenPrices tokenPrices, Long discountPercent, ModelBillingPromo promo)
extends Record
Billing information
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionModelBilling(Double multiplier, ModelBillingTokenPrices tokenPrices, Long discountPercent, ModelBillingPromo promo) Creates an instance of aModelBillingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thediscountPercentrecord 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 themultiplierrecord component.promo()Returns the value of thepromorecord component.Returns the value of thetokenPricesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelBilling
public ModelBilling(Double multiplier, ModelBillingTokenPrices tokenPrices, Long discountPercent, ModelBillingPromo promo) Creates an instance of aModelBillingrecord class.- Parameters:
multiplier- the value for themultiplierrecord componenttokenPrices- the value for thetokenPricesrecord componentdiscountPercent- the value for thediscountPercentrecord componentpromo- the value for thepromorecord 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). -
multiplier
Returns the value of themultiplierrecord component.- Returns:
- the value of the
multiplierrecord component
-
tokenPrices
Returns the value of thetokenPricesrecord component.- Returns:
- the value of the
tokenPricesrecord component
-
discountPercent
Returns the value of thediscountPercentrecord component.- Returns:
- the value of the
discountPercentrecord component
-
promo
Returns the value of thepromorecord component.- Returns:
- the value of the
promorecord component
-