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 Details

    • ImageToolModelPricing

      public ImageToolModelPricing(Long batchSize, Double textInputPrice, Double textOutputPrice, Double imageInputPrice, Double imageOutputPrice)
      Creates an instance of a ImageToolModelPricing record class.
      Parameters:
      batchSize - the value for the batchSize record component
      textInputPrice - the value for the textInputPrice record component
      textOutputPrice - the value for the textOutputPrice record component
      imageInputPrice - the value for the imageInputPrice record component
      imageOutputPrice - the value for the imageOutputPrice record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • batchSize

      public Long batchSize()
      Returns the value of the batchSize record component.
      Returns:
      the value of the batchSize record component
    • textInputPrice

      public Double textInputPrice()
      Returns the value of the textInputPrice record component.
      Returns:
      the value of the textInputPrice record component
    • textOutputPrice

      public Double textOutputPrice()
      Returns the value of the textOutputPrice record component.
      Returns:
      the value of the textOutputPrice record component
    • imageInputPrice

      public Double imageInputPrice()
      Returns the value of the imageInputPrice record component.
      Returns:
      the value of the imageInputPrice record component
    • imageOutputPrice

      public Double imageOutputPrice()
      Returns the value of the imageOutputPrice record component.
      Returns:
      the value of the imageOutputPrice record component