Record Class ImageToolModelPricing
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.ImageToolModelPricing
@Generated("copilot-sdk-codegen")
public record ImageToolModelPricing(Long batchSize, Double textInputPrice, Double textOutputPrice, Double imageInputPrice, Double imageOutputPrice)
extends Record
Default-tier text and image token prices reported for an image model, in AI credits per billing batch. Missing rates remain absent; these are not per-image quotes or actual billed usage.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebatchSizerecord 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 theimageInputPricerecord component.Returns the value of theimageOutputPricerecord component.Returns the value of thetextInputPricerecord component.Returns the value of thetextOutputPricerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ImageToolModelPricing
public ImageToolModelPricing(Long batchSize, Double textInputPrice, Double textOutputPrice, Double imageInputPrice, Double imageOutputPrice) Creates an instance of aImageToolModelPricingrecord class.- Parameters:
batchSize- the value for thebatchSizerecord componenttextInputPrice- the value for thetextInputPricerecord componenttextOutputPrice- the value for thetextOutputPricerecord componentimageInputPrice- the value for theimageInputPricerecord componentimageOutputPrice- the value for theimageOutputPricerecord 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). -
batchSize
Returns the value of thebatchSizerecord component.- Returns:
- the value of the
batchSizerecord component
-
textInputPrice
Returns the value of thetextInputPricerecord component.- Returns:
- the value of the
textInputPricerecord component
-
textOutputPrice
Returns the value of thetextOutputPricerecord component.- Returns:
- the value of the
textOutputPricerecord component
-
imageInputPrice
Returns the value of theimageInputPricerecord component.- Returns:
- the value of the
imageInputPricerecord component
-
imageOutputPrice
Returns the value of theimageOutputPricerecord component.- Returns:
- the value of the
imageOutputPricerecord component
-