Record Class SessionPermissionsModifyRulesParams
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionPermissionsModifyRulesParams
@Generated("copilot-sdk-codegen")
public record SessionPermissionsModifyRulesParams(String sessionId, PermissionsModifyRulesScope scope, List<PermissionRule> add, List<PermissionRule> remove, Boolean removeAll)
extends Record
Scope and add/remove instructions for modifying session- or location-scoped permission rules.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionPermissionsModifyRulesParams(String sessionId, PermissionsModifyRulesScope scope, List<PermissionRule> add, List<PermissionRule> remove, Boolean removeAll) Creates an instance of aSessionPermissionsModifyRulesParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionadd()Returns the value of theaddrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.remove()Returns the value of theremoverecord component.Returns the value of theremoveAllrecord component.scope()Returns the value of thescoperecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionPermissionsModifyRulesParams
public SessionPermissionsModifyRulesParams(String sessionId, PermissionsModifyRulesScope scope, List<PermissionRule> add, List<PermissionRule> remove, Boolean removeAll) Creates an instance of aSessionPermissionsModifyRulesParamsrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentscope- the value for thescoperecord componentadd- the value for theaddrecord componentremove- the value for theremoverecord componentremoveAll- the value for theremoveAllrecord 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). -
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
scope
Returns the value of thescoperecord component.- Returns:
- the value of the
scoperecord component
-
add
Returns the value of theaddrecord component.- Returns:
- the value of the
addrecord component
-
remove
Returns the value of theremoverecord component.- Returns:
- the value of the
removerecord component
-
removeAll
Returns the value of theremoveAllrecord component.- Returns:
- the value of the
removeAllrecord component
-