Package com.github.copilot.sdk.events
Record Class HookEndEvent.HookEndData
java.lang.Object
java.lang.Record
com.github.copilot.sdk.events.HookEndEvent.HookEndData
- Enclosing class:
- HookEndEvent
public static record HookEndEvent.HookEndData(String hookInvocationId, String hookType, Object output, boolean success, HookEndEvent.HookEndData.HookError error)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionHookEndData(String hookInvocationId, String hookType, Object output, boolean success, HookEndEvent.HookEndData.HookError error) Creates an instance of aHookEndDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thehookInvocationIdrecord component.hookType()Returns the value of thehookTyperecord component.output()Returns the value of theoutputrecord component.booleansuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HookEndData
public HookEndData(String hookInvocationId, String hookType, Object output, boolean success, HookEndEvent.HookEndData.HookError error) Creates an instance of aHookEndDatarecord class.- Parameters:
hookInvocationId- the value for thehookInvocationIdrecord componenthookType- the value for thehookTyperecord componentoutput- the value for theoutputrecord componentsuccess- the value for thesuccessrecord componenterror- the value for theerrorrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
hookInvocationId
Returns the value of thehookInvocationIdrecord component.- Returns:
- the value of the
hookInvocationIdrecord component
-
hookType
Returns the value of thehookTyperecord component.- Returns:
- the value of the
hookTyperecord component
-
output
Returns the value of theoutputrecord component.- Returns:
- the value of the
outputrecord component
-
success
public boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-