Record Class PermissionRulesSet
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.PermissionRulesSet
@Generated("copilot-sdk-codegen")
public record PermissionRulesSet(List<PermissionRule> approved, List<PermissionRule> denied)
extends Record
If specified, replaces the session's approved/denied permission rules. Omit to leave the current rules unchanged.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionPermissionRulesSet(List<PermissionRule> approved, List<PermissionRule> denied) Creates an instance of aPermissionRulesSetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionapproved()Returns the value of theapprovedrecord component.denied()Returns the value of thedeniedrecord 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
-
PermissionRulesSet
Creates an instance of aPermissionRulesSetrecord class.- Parameters:
approved- the value for theapprovedrecord componentdenied- the value for thedeniedrecord 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). -
approved
Returns the value of theapprovedrecord component.- Returns:
- the value of the
approvedrecord component
-
denied
Returns the value of thedeniedrecord component.- Returns:
- the value of the
deniedrecord component
-