Record Class SessionPermissionsChangedEvent.SessionPermissionsChangedEventData
java.lang.Object
java.lang.Record
com.github.copilot.generated.SessionPermissionsChangedEvent.SessionPermissionsChangedEventData
- Enclosing class:
SessionPermissionsChangedEvent
@CopilotExperimental
public static record SessionPermissionsChangedEvent.SessionPermissionsChangedEventData(PermissionMode previousMode, PermissionMode mode, String assistedApprovalModel)
extends Record
Data payload for
SessionPermissionsChangedEvent.- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionPermissionsChangedEventData(PermissionMode previousMode, PermissionMode mode, String assistedApprovalModel) Creates an instance of aSessionPermissionsChangedEventDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassistedApprovalModelrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mode()Returns the value of themoderecord component.Returns the value of thepreviousModerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionPermissionsChangedEventData
public SessionPermissionsChangedEventData(PermissionMode previousMode, PermissionMode mode, String assistedApprovalModel) Creates an instance of aSessionPermissionsChangedEventDatarecord class.- Parameters:
previousMode- the value for thepreviousModerecord componentmode- the value for themoderecord componentassistedApprovalModel- the value for theassistedApprovalModelrecord 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). -
previousMode
Returns the value of thepreviousModerecord component.- Returns:
- the value of the
previousModerecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
assistedApprovalModel
Returns the value of theassistedApprovalModelrecord component.- Returns:
- the value of the
assistedApprovalModelrecord component
-