Record Class PermissionContextualAuthorizationEvent.PermissionContextualAuthorizationEventData
java.lang.Object
java.lang.Record
com.github.copilot.generated.PermissionContextualAuthorizationEvent.PermissionContextualAuthorizationEventData
- Enclosing class:
PermissionContextualAuthorizationEvent
public static record PermissionContextualAuthorizationEvent.PermissionContextualAuthorizationEventData(String recordId, String requestId, Long turnIndex, PermissionMessageAuthorizationPolarity polarity, Long spanStart, Long spanEnd)
extends Record
Data payload for
PermissionContextualAuthorizationEvent.- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionPermissionContextualAuthorizationEventData(String recordId, String requestId, Long turnIndex, PermissionMessageAuthorizationPolarity polarity, Long spanStart, Long spanEnd) Creates an instance of aPermissionContextualAuthorizationEventDatarecord class. -
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.polarity()Returns the value of thepolarityrecord component.recordId()Returns the value of therecordIdrecord component.Returns the value of therequestIdrecord component.spanEnd()Returns the value of thespanEndrecord component.Returns the value of thespanStartrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theturnIndexrecord component.
-
Constructor Details
-
PermissionContextualAuthorizationEventData
public PermissionContextualAuthorizationEventData(String recordId, String requestId, Long turnIndex, PermissionMessageAuthorizationPolarity polarity, Long spanStart, Long spanEnd) Creates an instance of aPermissionContextualAuthorizationEventDatarecord class.- Parameters:
recordId- the value for therecordIdrecord componentrequestId- the value for therequestIdrecord componentturnIndex- the value for theturnIndexrecord componentpolarity- the value for thepolarityrecord componentspanStart- the value for thespanStartrecord componentspanEnd- the value for thespanEndrecord 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). -
recordId
Returns the value of therecordIdrecord component.- Returns:
- the value of the
recordIdrecord component
-
requestId
Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
turnIndex
Returns the value of theturnIndexrecord component.- Returns:
- the value of the
turnIndexrecord component
-
polarity
Returns the value of thepolarityrecord component.- Returns:
- the value of the
polarityrecord component
-
spanStart
Returns the value of thespanStartrecord component.- Returns:
- the value of the
spanStartrecord component
-
spanEnd
Returns the value of thespanEndrecord component.- Returns:
- the value of the
spanEndrecord component
-