Record Class InstructionsSources
java.lang.Object
java.lang.Record
com.github.copilot.sdk.generated.rpc.InstructionsSources
@Generated("copilot-sdk-codegen")
public record InstructionsSources(String id, String label, String sourcePath, String content, InstructionsSourcesType type, InstructionsSourcesLocation location, String applyTo, String description)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionInstructionsSources(String id, String label, String sourcePath, String content, InstructionsSourcesType type, InstructionsSourcesLocation location, String applyTo, String description) Creates an instance of aInstructionsSourcesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionapplyTo()Returns the value of theapplyTorecord component.content()Returns the value of thecontentrecord component.Returns the value of thedescriptionrecord 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.label()Returns the value of thelabelrecord component.location()Returns the value of thelocationrecord component.Returns the value of thesourcePathrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
InstructionsSources
public InstructionsSources(String id, String label, String sourcePath, String content, InstructionsSourcesType type, InstructionsSourcesLocation location, String applyTo, String description) Creates an instance of aInstructionsSourcesrecord class.- Parameters:
id- the value for theidrecord componentlabel- the value for thelabelrecord componentsourcePath- the value for thesourcePathrecord componentcontent- the value for thecontentrecord componenttype- the value for thetyperecord componentlocation- the value for thelocationrecord componentapplyTo- the value for theapplyTorecord componentdescription- the value for thedescriptionrecord 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
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
sourcePath
Returns the value of thesourcePathrecord component.- Returns:
- the value of the
sourcePathrecord component
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
applyTo
Returns the value of theapplyTorecord component.- Returns:
- the value of the
applyTorecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-