Record Class ModelProviderInstance
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.ModelProviderInstance
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record ModelProviderInstance(ModelProviderInstanceReference reference, String displayName, ModelProviderProvenance provenance, String inferenceEndpoint, ProviderEndpointType inferenceType, ProviderEndpointWireApi inferenceWireApi, ProviderEndpointTransport inferenceTransport)
extends Record
A normalized model-provider instance discovered by the runtime.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionModelProviderInstance(ModelProviderInstanceReference reference, String displayName, ModelProviderProvenance provenance, String inferenceEndpoint, ProviderEndpointType inferenceType, ProviderEndpointWireApi inferenceWireApi, ProviderEndpointTransport inferenceTransport) Creates an instance of aModelProviderInstancerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedisplayNamerecord 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 theinferenceEndpointrecord component.Returns the value of theinferenceTransportrecord component.Returns the value of theinferenceTyperecord component.Returns the value of theinferenceWireApirecord component.Returns the value of theprovenancerecord component.Returns the value of thereferencerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelProviderInstance
public ModelProviderInstance(ModelProviderInstanceReference reference, String displayName, ModelProviderProvenance provenance, String inferenceEndpoint, ProviderEndpointType inferenceType, ProviderEndpointWireApi inferenceWireApi, ProviderEndpointTransport inferenceTransport) Creates an instance of aModelProviderInstancerecord class.- Parameters:
reference- the value for thereferencerecord componentdisplayName- the value for thedisplayNamerecord componentprovenance- the value for theprovenancerecord componentinferenceEndpoint- the value for theinferenceEndpointrecord componentinferenceType- the value for theinferenceTyperecord componentinferenceWireApi- the value for theinferenceWireApirecord componentinferenceTransport- the value for theinferenceTransportrecord 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). -
reference
Returns the value of thereferencerecord component.- Returns:
- the value of the
referencerecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
provenance
Returns the value of theprovenancerecord component.- Returns:
- the value of the
provenancerecord component
-
inferenceEndpoint
Returns the value of theinferenceEndpointrecord component.- Returns:
- the value of the
inferenceEndpointrecord component
-
inferenceType
Returns the value of theinferenceTyperecord component.- Returns:
- the value of the
inferenceTyperecord component
-
inferenceWireApi
Returns the value of theinferenceWireApirecord component.- Returns:
- the value of the
inferenceWireApirecord component
-
inferenceTransport
Returns the value of theinferenceTransportrecord component.- Returns:
- the value of the
inferenceTransportrecord component
-