Package com.github.copilot.sdk.generated
Record Class HookEndEvent.HookEndEventData
java.lang.Object
java.lang.Record
com.github.copilot.sdk.generated.HookEndEvent.HookEndEventData
- Enclosing class:
- HookEndEvent
public static record HookEndEvent.HookEndEventData(String hookInvocationId, String hookType, Object output, Boolean success, HookEndEvent.HookEndEventData.HookEndEventDataError error)
extends Record
Data payload for
HookEndEvent.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordError details when the hook failed -
Constructor Summary
ConstructorsConstructorDescriptionHookEndEventData(String hookInvocationId, String hookType, Object output, Boolean success, HookEndEvent.HookEndEventData.HookEndEventDataError error) Creates an instance of aHookEndEventDatarecord 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.success()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HookEndEventData
public HookEndEventData(String hookInvocationId, String hookType, Object output, Boolean success, HookEndEvent.HookEndEventData.HookEndEventDataError error) Creates an instance of aHookEndEventDatarecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
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
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
-