Record Class SessionModelPriceCategory
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionModelPriceCategory
@Generated("copilot-sdk-codegen")
public record SessionModelPriceCategory(String id, ModelPickerPriceCategory priceCategory)
extends Record
Cost-category metadata for a CAPI model.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionModelPriceCategory(String id, ModelPickerPriceCategory priceCategory) Creates an instance of aSessionModelPriceCategoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of thepriceCategoryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionModelPriceCategory
Creates an instance of aSessionModelPriceCategoryrecord class.- Parameters:
id- the value for theidrecord componentpriceCategory- the value for thepriceCategoryrecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
priceCategory
Returns the value of thepriceCategoryrecord component.- Returns:
- the value of the
priceCategoryrecord component
-