Record Class NetworkNotification
java.lang.Object
java.lang.Record
com.eqixiac.equinix.messaging.NetworkNotification
- Record Components:
header- common headerbody- the ticket detailsrawJson- the envelope as received
- All Implemented Interfaces:
EmgMessage
public record NetworkNotification(EmgHeader header, TicketBody body, String rawJson)
extends Record
implements EmgMessage
Network maintenance or incident notification:
Task.Resource Network.Maintenance
or Network.Incident (schema 1.0), or a ticket-shaped DataCenter.Network.Port /
DataCenter.Network.VirtualConnection notification (the spec maps those 2.0 resources to
NetworkNotificationV2Body; when their body is instead Fabric-shaped, the parser produces a
FabricNotification).-
Constructor Summary
ConstructorsConstructorDescriptionNetworkNotification(EmgHeader header, TicketBody body, String rawJson) Creates an instance of aNetworkNotificationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord component.category()The event kind, derived fromTask.Resource.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
-
NetworkNotification
-
-
Method Details
-
category
The event kind, derived fromTask.Resource.- Returns:
- the category, never
null
-
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
-
body
-
rawJson
Returns the value of therawJsonrecord component.- Specified by:
rawJsonin interfaceEmgMessage- Returns:
- the value of the
rawJsonrecord component
-