Record Class SessionWarningEvent.SessionWarningEventData
java.lang.Object
java.lang.Record
com.github.copilot.generated.SessionWarningEvent.SessionWarningEventData
- Enclosing class:
SessionWarningEvent
public static record SessionWarningEvent.SessionWarningEventData(String warningType, String message, String url, RemediationAction remediation)
extends Record
Data payload for
SessionWarningEvent.- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionWarningEventData(String warningType, String message, String url, RemediationAction remediation) Creates an instance of aSessionWarningEventDatarecord 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.message()Returns the value of themessagerecord component.Returns the value of theremediationrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.Returns the value of thewarningTyperecord component.
-
Constructor Details
-
SessionWarningEventData
public SessionWarningEventData(String warningType, String message, String url, RemediationAction remediation) Creates an instance of aSessionWarningEventDatarecord class.- Parameters:
warningType- the value for thewarningTyperecord componentmessage- the value for themessagerecord componenturl- the value for theurlrecord componentremediation- the value for theremediationrecord 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). -
warningType
Returns the value of thewarningTyperecord component.- Returns:
- the value of the
warningTyperecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
remediation
Returns the value of theremediationrecord component.- Returns:
- the value of the
remediationrecord component
-