Record Class SessionModelListResult
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionModelListResult
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record SessionModelListResult(List<Object> list, List<ModelProviderDescriptor> providers, List<SessionModelPriceCategory> modelPriceCategories, Map<String,Object> quotaSnapshots, AutoTierMetadata auto)
extends Record
The list of models available to this session.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionModelListResult(List<Object> list, List<ModelProviderDescriptor> providers, List<SessionModelPriceCategory> modelPriceCategories, Map<String, Object> quotaSnapshots, AutoTierMetadata auto) Creates an instance of aSessionModelListResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionauto()Returns the value of theautorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.list()Returns the value of thelistrecord component.Returns the value of themodelPriceCategoriesrecord component.Returns the value of theprovidersrecord component.Returns the value of thequotaSnapshotsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionModelListResult
public SessionModelListResult(List<Object> list, List<ModelProviderDescriptor> providers, List<SessionModelPriceCategory> modelPriceCategories, Map<String, Object> quotaSnapshots, AutoTierMetadata auto) Creates an instance of aSessionModelListResultrecord class.- Parameters:
list- the value for thelistrecord componentproviders- the value for theprovidersrecord componentmodelPriceCategories- the value for themodelPriceCategoriesrecord componentquotaSnapshots- the value for thequotaSnapshotsrecord componentauto- the value for theautorecord 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). -
list
-
providers
Returns the value of theprovidersrecord component.- Returns:
- the value of the
providersrecord component
-
modelPriceCategories
Returns the value of themodelPriceCategoriesrecord component.- Returns:
- the value of the
modelPriceCategoriesrecord component
-
quotaSnapshots
-
auto
Returns the value of theautorecord component.- Returns:
- the value of the
autorecord component
-