Record Class SessionManagedPermissions
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionManagedPermissions
@Generated("copilot-sdk-codegen")
public record SessionManagedPermissions(DisableBypassPermissionsMode disableBypassPermissionsMode, List<String> deny, List<String> ask, List<String> allow)
extends Record
Enterprise permission policy expressed with the runtime's managed permission-rule syntax.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionManagedPermissions(DisableBypassPermissionsMode disableBypassPermissionsMode, List<String> deny, List<String> ask, List<String> allow) Creates an instance of aSessionManagedPermissionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionallow()Returns the value of theallowrecord component.ask()Returns the value of theaskrecord component.deny()Returns the value of thedenyrecord component.Returns the value of thedisableBypassPermissionsModerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionManagedPermissions
public SessionManagedPermissions(DisableBypassPermissionsMode disableBypassPermissionsMode, List<String> deny, List<String> ask, List<String> allow) Creates an instance of aSessionManagedPermissionsrecord class.- Parameters:
disableBypassPermissionsMode- the value for thedisableBypassPermissionsModerecord componentdeny- the value for thedenyrecord componentask- the value for theaskrecord componentallow- the value for theallowrecord 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). -
disableBypassPermissionsMode
Returns the value of thedisableBypassPermissionsModerecord component.- Returns:
- the value of the
disableBypassPermissionsModerecord component
-
deny
-
ask
-
allow
-