Module com.github.copilot.sdk.java
Package com.github.copilot.sdk.generated
Record Class SessionCustomNotificationEvent.SessionCustomNotificationEventData
java.lang.Object
java.lang.Record
com.github.copilot.sdk.generated.SessionCustomNotificationEvent.SessionCustomNotificationEventData
- Enclosing class:
- SessionCustomNotificationEvent
public static record SessionCustomNotificationEvent.SessionCustomNotificationEventData(String source, String name, Long version, Map<String,String> subject, Object payload)
extends Record
Data payload for
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
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
payload
Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-