Record Class DiscoveredHook
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.DiscoveredHook
@Generated("copilot-sdk-codegen")
public record DiscoveredHook(String id, HookType hookType, HookOrigin origin, String source, String projectPath, Boolean enabled, String disableKey)
extends Record
One server-discovered hook action from user, repository, plugin, or managed-policy configuration.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionDiscoveredHook(String id, HookType hookType, HookOrigin origin, String source, String projectPath, Boolean enabled, String disableKey) Creates an instance of aDiscoveredHookrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedisableKeyrecord component.enabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.hookType()Returns the value of thehookTyperecord component.id()Returns the value of theidrecord component.origin()Returns the value of theoriginrecord component.Returns the value of theprojectPathrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DiscoveredHook
public DiscoveredHook(String id, HookType hookType, HookOrigin origin, String source, String projectPath, Boolean enabled, String disableKey) Creates an instance of aDiscoveredHookrecord class.- Parameters:
id- the value for theidrecord componenthookType- the value for thehookTyperecord componentorigin- the value for theoriginrecord componentsource- the value for thesourcerecord componentprojectPath- the value for theprojectPathrecord componentenabled- the value for theenabledrecord componentdisableKey- the value for thedisableKeyrecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
hookType
Returns the value of thehookTyperecord component.- Returns:
- the value of the
hookTyperecord component
-
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
projectPath
Returns the value of theprojectPathrecord component.- Returns:
- the value of the
projectPathrecord component
-
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
disableKey
Returns the value of thedisableKeyrecord component.- Returns:
- the value of the
disableKeyrecord component
-