Record Class FabricNotification
java.lang.Object
java.lang.Record
com.eqixiac.equinix.messaging.FabricNotification
- Record Components:
header- common headerbody- the status-change detailsrawJson- the envelope as received
- All Implemented Interfaces:
EmgMessage
public record FabricNotification(EmgHeader header, FabricNotification.Body body, String rawJson)
extends Record
implements EmgMessage
Equinix Fabric port or virtual-connection operational-status notification (port/VC up or down),
delivered with
Task.Resource DataCenter.Network.Port or
DataCenter.Network.VirtualConnection. Shape: the spec's FabricNotificationBody and
the Fabric sample in the Notification Types guide.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumFabric asset type.static final recordFabric notification body.static final recordVirtual connections on a port.static final recordThe affected port or virtual connection.static final recordEmbedded related resources.static final recordOperational-status details.static enumOperational status of the port or connection.static enumFabric notification type. -
Constructor Summary
ConstructorsConstructorDescriptionFabricNotification(EmgHeader header, FabricNotification.Body body, String rawJson) Creates an instance of aFabricNotificationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord 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.booleanisDown()Whether the affected port or connection is reportedFabricNotification.OperationalStatus.DOWN.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
-
isDown
public boolean isDown()Whether the affected port or connection is reportedFabricNotification.OperationalStatus.DOWN.- Returns:
trueonly for an explicit DOWN status
-
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
-