Record Class SessionCustomNotificationEvent.SessionCustomNotificationEventData
java.lang.Object
java.lang.Record
com.github.copilot.generated.SessionCustomNotificationEvent.SessionCustomNotificationEventData
- Enclosing class:
SessionCustomNotificationEvent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.payload()Returns the value of thepayloadrecord component.source()Returns the value of thesourcerecord component.subject()Returns the value of thesubjectrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
SessionCustomNotificationEventData
public SessionCustomNotificationEventData(String source, String name, Long version, Map<String, String> subject, Object payload) Creates an instance of aSessionCustomNotificationEventDatarecord class.- Parameters:
source- the value for thesourcerecord componentname- the value for thenamerecord componentversion- the value for theversionrecord componentsubject- the value for thesubjectrecord componentpayload- the value for thepayloadrecord 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). -
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
subject
-
payload
Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-