Record Class SessionErrorEvent.SessionErrorEventData
java.lang.Object
java.lang.Record
com.github.copilot.generated.SessionErrorEvent.SessionErrorEventData
- Enclosing class:
SessionErrorEvent
public static record SessionErrorEvent.SessionErrorEventData(String errorType, String errorCode, String providerErrorType, String providerErrorParam, Boolean eligibleForAutoSwitch, String message, RemediationAction remediation, String stack, Long statusCode, String providerCallId, String serviceRequestId, String url)
extends Record
Data payload for
SessionErrorEvent.- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionErrorEventData(String errorType, String errorCode, String providerErrorType, String providerErrorParam, Boolean eligibleForAutoSwitch, String message, RemediationAction remediation, String stack, Long statusCode, String providerCallId, String serviceRequestId, String url) Creates an instance of aSessionErrorEventDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theeligibleForAutoSwitchrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorCoderecord component.Returns the value of theerrorTyperecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.Returns the value of theproviderCallIdrecord component.Returns the value of theproviderErrorParamrecord component.Returns the value of theproviderErrorTyperecord component.Returns the value of theremediationrecord component.Returns the value of theserviceRequestIdrecord component.stack()Returns the value of thestackrecord component.Returns the value of thestatusCoderecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
SessionErrorEventData
public SessionErrorEventData(String errorType, String errorCode, String providerErrorType, String providerErrorParam, Boolean eligibleForAutoSwitch, String message, RemediationAction remediation, String stack, Long statusCode, String providerCallId, String serviceRequestId, String url) Creates an instance of aSessionErrorEventDatarecord class.- Parameters:
errorType- the value for theerrorTyperecord componenterrorCode- the value for theerrorCoderecord componentproviderErrorType- the value for theproviderErrorTyperecord componentproviderErrorParam- the value for theproviderErrorParamrecord componenteligibleForAutoSwitch- the value for theeligibleForAutoSwitchrecord componentmessage- the value for themessagerecord componentremediation- the value for theremediationrecord componentstack- the value for thestackrecord componentstatusCode- the value for thestatusCoderecord componentproviderCallId- the value for theproviderCallIdrecord componentserviceRequestId- the value for theserviceRequestIdrecord componenturl- the value for theurlrecord 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). -
errorType
Returns the value of theerrorTyperecord component.- Returns:
- the value of the
errorTyperecord component
-
errorCode
Returns the value of theerrorCoderecord component.- Returns:
- the value of the
errorCoderecord component
-
providerErrorType
Returns the value of theproviderErrorTyperecord component.- Returns:
- the value of the
providerErrorTyperecord component
-
providerErrorParam
Returns the value of theproviderErrorParamrecord component.- Returns:
- the value of the
providerErrorParamrecord component
-
eligibleForAutoSwitch
Returns the value of theeligibleForAutoSwitchrecord component.- Returns:
- the value of the
eligibleForAutoSwitchrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
remediation
Returns the value of theremediationrecord component.- Returns:
- the value of the
remediationrecord component
-
stack
Returns the value of thestackrecord component.- Returns:
- the value of the
stackrecord component
-
statusCode
Returns the value of thestatusCoderecord component.- Returns:
- the value of the
statusCoderecord component
-
providerCallId
Returns the value of theproviderCallIdrecord component.- Returns:
- the value of the
providerCallIdrecord component
-
serviceRequestId
Returns the value of theserviceRequestIdrecord component.- Returns:
- the value of the
serviceRequestIdrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-