Record Class UnknownNotification
java.lang.Object
java.lang.Record
com.eqixiac.equinix.messaging.UnknownNotification
- Record Components:
header- common headerbodyJson-Task.Bodyas JSON text, ornullif absentrawJson- the envelope as received
- All Implemented Interfaces:
EmgMessage
public record UnknownNotification(EmgHeader header, String bodyJson, String rawJson)
extends Record
implements EmgMessage
A well-formed EMG envelope this SDK version cannot type: an unrecognised
Task.Resource,
a missing Body, or a body that does not fit the model for its resource. The header is
still parsed and the body is preserved verbatim, so new notification types are never lost.-
Constructor Summary
ConstructorsConstructorDescriptionUnknownNotification(EmgHeader header, String bodyJson, String rawJson) Creates an instance of aUnknownNotificationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbodyJson()Returns the value of thebodyJsonrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.header()Returns the value of theheaderrecord component.rawJson()Returns the value of therawJsonrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface EmgMessage
id
-
Constructor Details
-
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). -
header
Returns the value of theheaderrecord component.- Specified by:
headerin interfaceEmgMessage- Returns:
- the value of the
headerrecord component
-
bodyJson
-
rawJson
Returns the value of therawJsonrecord component.- Specified by:
rawJsonin interfaceEmgMessage- Returns:
- the value of the
rawJsonrecord component
-