Record Class ModelsListResult.ModelsListResultModelsItem
java.lang.Object
java.lang.Record
com.github.copilot.sdk.generated.rpc.ModelsListResult.ModelsListResultModelsItem
- Enclosing class:
- ModelsListResult
public static record ModelsListResult.ModelsListResultModelsItem(String id, String name, ModelsListResult.ModelsListResultModelsItem.ModelsListResultModelsItemCapabilities capabilities, ModelsListResult.ModelsListResultModelsItem.ModelsListResultModelsItemPolicy policy, ModelsListResult.ModelsListResultModelsItem.ModelsListResultModelsItemBilling billing, List<String> supportedReasoningEfforts, String defaultReasoningEffort)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordBilling informationstatic final recordModel capabilities and limitsstatic final recordPolicy state (if applicable) -
Constructor Summary
ConstructorsConstructorDescriptionModelsListResultModelsItem(String id, String name, ModelsListResult.ModelsListResultModelsItem.ModelsListResultModelsItemCapabilities capabilities, ModelsListResult.ModelsListResultModelsItem.ModelsListResultModelsItemPolicy policy, ModelsListResult.ModelsListResultModelsItem.ModelsListResultModelsItemBilling billing, List<String> supportedReasoningEfforts, String defaultReasoningEffort) Creates an instance of aModelsListResultModelsItemrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbilling()Returns the value of thebillingrecord component.Returns the value of thecapabilitiesrecord component.Returns the value of thedefaultReasoningEffortrecord component.final 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.name()Returns the value of thenamerecord component.policy()Returns the value of thepolicyrecord component.Returns the value of thesupportedReasoningEffortsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelsListResultModelsItem
public ModelsListResultModelsItem(String id, String name, ModelsListResult.ModelsListResultModelsItem.ModelsListResultModelsItemCapabilities capabilities, ModelsListResult.ModelsListResultModelsItem.ModelsListResultModelsItemPolicy policy, ModelsListResult.ModelsListResultModelsItem.ModelsListResultModelsItemBilling billing, List<String> supportedReasoningEfforts, String defaultReasoningEffort) Creates an instance of aModelsListResultModelsItemrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentcapabilities- the value for thecapabilitiesrecord componentpolicy- the value for thepolicyrecord componentbilling- the value for thebillingrecord componentsupportedReasoningEfforts- the value for thesupportedReasoningEffortsrecord componentdefaultReasoningEffort- the value for thedefaultReasoningEffortrecord component
-
-
Method Details
-
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. -
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. -
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
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
capabilities
public ModelsListResult.ModelsListResultModelsItem.ModelsListResultModelsItemCapabilities capabilities()Returns the value of thecapabilitiesrecord component.- Returns:
- the value of the
capabilitiesrecord component
-
policy
Returns the value of thepolicyrecord component.- Returns:
- the value of the
policyrecord component
-
billing
Returns the value of thebillingrecord component.- Returns:
- the value of the
billingrecord component
-
supportedReasoningEfforts
Returns the value of thesupportedReasoningEffortsrecord component.- Returns:
- the value of the
supportedReasoningEffortsrecord component
-
defaultReasoningEffort
Returns the value of thedefaultReasoningEffortrecord component.- Returns:
- the value of the
defaultReasoningEffortrecord component
-