Record Class TaskBlocker
java.lang.Object
java.lang.Record
com.github.copilot.generated.TaskBlocker
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record TaskBlocker(TaskBlockerKind kind, PermissionRecoveryReason reason, Boolean resumable, PermissionRecoveryData permissionRecovery)
extends Record
Structured reason that the task cannot continue without intervention
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionTaskBlocker(TaskBlockerKind kind, PermissionRecoveryReason reason, Boolean resumable, PermissionRecoveryData permissionRecovery) Creates an instance of aTaskBlockerrecord 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.kind()Returns the value of thekindrecord component.Returns the value of thepermissionRecoveryrecord component.reason()Returns the value of thereasonrecord component.Returns the value of theresumablerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TaskBlocker
public TaskBlocker(TaskBlockerKind kind, PermissionRecoveryReason reason, Boolean resumable, PermissionRecoveryData permissionRecovery) Creates an instance of aTaskBlockerrecord class.- Parameters:
kind- the value for thekindrecord componentreason- the value for thereasonrecord componentresumable- the value for theresumablerecord componentpermissionRecovery- the value for thepermissionRecoveryrecord 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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
resumable
Returns the value of theresumablerecord component.- Returns:
- the value of the
resumablerecord component
-
permissionRecovery
Returns the value of thepermissionRecoveryrecord component.- Returns:
- the value of the
permissionRecoveryrecord component
-