Record Class ManagedPermissionsContext
java.lang.Object
java.lang.Record
com.github.copilot.generated.ManagedPermissionsContext
@Generated("copilot-sdk-codegen")
public record ManagedPermissionsContext(Object permissions, Boolean failClosed)
extends Record
Reusable managed permission evaluation context. Treat permissions as runtime-owned policy data and retain it verbatim; it includes source-aware composition metadata. This is a snapshot, not a capability or approval token; only use contexts obtained from trusted policy sources.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionManagedPermissionsContext(Object permissions, Boolean failClosed) Creates an instance of aManagedPermissionsContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefailClosedrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepermissionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ManagedPermissionsContext
-
-
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). -
permissions
Returns the value of thepermissionsrecord component.- Returns:
- the value of the
permissionsrecord component
-
failClosed
Returns the value of thefailClosedrecord component.- Returns:
- the value of the
failClosedrecord component
-