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, Double cacheReadPrice, Double cacheWritePrice, Long contextMax, Long maxPromptTokens)
extends Record
Long context tier pricing (available for models with extended context windows)
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecachePricerecord component.Returns the value of thecacheReadPricerecord component.Returns the value of thecacheWritePricerecord 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 themaxPromptTokensrecord 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, Double cacheReadPrice, Double cacheWritePrice, Long contextMax, Long maxPromptTokens) Creates an instance of aModelBillingTokenPricesLongContextrecord class.- Parameters:
inputPrice- the value for theinputPricerecord componentoutputPrice- the value for theoutputPricerecord componentcachePrice- the value for thecachePricerecord componentcacheReadPrice- the value for thecacheReadPricerecord componentcacheWritePrice- the value for thecacheWritePricerecord componentcontextMax- the value for thecontextMaxrecord componentmaxPromptTokens- the value for themaxPromptTokensrecord 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). -
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
-
cacheReadPrice
Returns the value of thecacheReadPricerecord component.- Returns:
- the value of the
cacheReadPricerecord component
-
cacheWritePrice
Returns the value of thecacheWritePricerecord component.- Returns:
- the value of the
cacheWritePricerecord component
-
contextMax
Returns the value of thecontextMaxrecord component.- Returns:
- the value of the
contextMaxrecord component
-
maxPromptTokens
Returns the value of themaxPromptTokensrecord component.- Returns:
- the value of the
maxPromptTokensrecord component
-