Record Class PermissionDecisionContext
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.PermissionDecisionContext
@Generated("copilot-sdk-codegen")
public record PermissionDecisionContext(PermissionDecisionOutcome outcome, PermissionDecisionSource source, PermissionDecisionSurface surface)
extends Record
Optional informational context describing how and where the permission decision was made. This does not affect permission behavior.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionPermissionDecisionContext(PermissionDecisionOutcome outcome, PermissionDecisionSource source, PermissionDecisionSurface surface) Creates an instance of aPermissionDecisionContextrecord 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.outcome()Returns the value of theoutcomerecord component.source()Returns the value of thesourcerecord component.surface()Returns the value of thesurfacerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PermissionDecisionContext
public PermissionDecisionContext(PermissionDecisionOutcome outcome, PermissionDecisionSource source, PermissionDecisionSurface surface) Creates an instance of aPermissionDecisionContextrecord class.- Parameters:
outcome- the value for theoutcomerecord componentsource- the value for thesourcerecord componentsurface- the value for thesurfacerecord 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). -
outcome
Returns the value of theoutcomerecord component.- Returns:
- the value of the
outcomerecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
surface
Returns the value of thesurfacerecord component.- Returns:
- the value of the
surfacerecord component
-