Module com.github.copilot.java
Package com.github.copilot.generated.rpc
Record Class ModelBillingTokenPricesLongContext
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.ModelBillingTokenPricesLongContext
@Generated("copilot-sdk-codegen")
public record ModelBillingTokenPricesLongContext(Double inputPrice, Double outputPrice, Double cachePrice, Long contextMax)
extends Record
Long context tier pricing (available for models with extended context windows)
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionModelBillingTokenPricesLongContext(Double inputPrice, Double outputPrice, Double cachePrice, Long contextMax) Creates an instance of aModelBillingTokenPricesLongContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecachePricerecord component.Returns the value of thecontextMaxrecord 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
-
ModelBillingTokenPricesLongContext
public ModelBillingTokenPricesLongContext(Double inputPrice, Double outputPrice, Double cachePrice, Long contextMax) Creates an instance of aModelBillingTokenPricesLongContextrecord class.- Parameters:
inputPrice- the value for theinputPricerecord componentoutputPrice- the value for theoutputPricerecord componentcachePrice- the value for thecachePricerecord componentcontextMax- the value for thecontextMaxrecord 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
-
contextMax
Returns the value of thecontextMaxrecord component.- Returns:
- the value of the
contextMaxrecord component
-