Record Class ModelProviderAttribution
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.ModelProviderAttribution
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record ModelProviderAttribution(ModelProviderProvenanceSource source, String ownerId, String ownerDisplayName)
extends Record
Contributor attribution, independent of routing identity and authorization.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionModelProviderAttribution(ModelProviderProvenanceSource source, String ownerId, String ownerDisplayName) Creates an instance of aModelProviderAttributionrecord 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.Returns the value of theownerDisplayNamerecord component.ownerId()Returns the value of theownerIdrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelProviderAttribution
public ModelProviderAttribution(ModelProviderProvenanceSource source, String ownerId, String ownerDisplayName) Creates an instance of aModelProviderAttributionrecord class.- Parameters:
source- the value for thesourcerecord componentownerId- the value for theownerIdrecord componentownerDisplayName- the value for theownerDisplayNamerecord 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). -
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
ownerId
Returns the value of theownerIdrecord component.- Returns:
- the value of the
ownerIdrecord component
-
ownerDisplayName
Returns the value of theownerDisplayNamerecord component.- Returns:
- the value of the
ownerDisplayNamerecord component
-