Module com.github.copilot.sdk.java
Record Class ModelBillingTokenPrices
java.lang.Object
java.lang.Record
com.github.copilot.sdk.generated.rpc.ModelBillingTokenPrices
@Generated("copilot-sdk-codegen")
public record ModelBillingTokenPrices(Long inputPrice, Long outputPrice, Long cachePrice, Long batchSize)
extends Record
Token-level pricing information for this model
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionModelBillingTokenPrices(Long inputPrice, Long outputPrice, Long cachePrice, Long batchSize) Creates an instance of aModelBillingTokenPricesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebatchSizerecord component.Returns the value of thecachePricerecord 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 theinputPricerecord component.Returns the value of theoutputPricerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelBillingTokenPrices
Creates an instance of aModelBillingTokenPricesrecord class.- Parameters:
inputPrice- the value for theinputPricerecord componentoutputPrice- the value for theoutputPricerecord componentcachePrice- the value for thecachePricerecord componentbatchSize- the value for thebatchSizerecord component
-
-
Method Details
-
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. -
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. -
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). -
inputPrice
Returns the value of theinputPricerecord component.- Returns:
- the value of the
inputPricerecord component
-
outputPrice
Returns the value of theoutputPricerecord component.- Returns:
- the value of the
outputPricerecord component
-
cachePrice
Returns the value of thecachePricerecord component.- Returns:
- the value of the
cachePricerecord component
-
batchSize
Returns the value of thebatchSizerecord component.- Returns:
- the value of the
batchSizerecord component
-