Record Class FabricNotification.Body
java.lang.Object
java.lang.Record
com.eqixiac.equinix.messaging.FabricNotification.Body
- Record Components:
timestamp- event time (present in the documented sample, not in the spec)type- notification typeuuid- Equinix id for the eventdescription- summary of the eventdata- the affected port or connectionstate- operational status as a ticket-styleStateattribute, if sentrequestorId- customer reference, if sentservicerId- id of the port/connection, if sent
- Enclosing class:
FabricNotification
public static record FabricNotification.Body(Instant timestamp, FabricNotification.Type type, String uuid, String description, FabricNotification.Data data, String state, String requestorId, String servicerId)
extends Record
Fabric notification body. The spec also lists capitalised ticket-style attributes
(
State, RequestorId, ServicerId); they are read when present.-
Constructor Summary
ConstructorsConstructorDescriptionBody(Instant timestamp, FabricNotification.Type type, String uuid, String description, FabricNotification.Data data, String state, String requestorId, String servicerId) Creates an instance of aBodyrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therequestorIdrecord component.Returns the value of theservicerIdrecord component.state()Returns the value of thestaterecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.uuid()Returns the value of theuuidrecord component.
-
Constructor Details
-
Body
public Body(Instant timestamp, FabricNotification.Type type, String uuid, String description, FabricNotification.Data data, String state, String requestorId, String servicerId) Creates an instance of aBodyrecord class.- Parameters:
timestamp- the value for thetimestamprecord componenttype- the value for thetyperecord componentuuid- the value for theuuidrecord componentdescription- the value for thedescriptionrecord componentdata- the value for thedatarecord componentstate- the value for thestaterecord componentrequestorId- the value for therequestorIdrecord componentservicerId- the value for theservicerIdrecord 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). -
timestamp
-
type
-
uuid
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
data
-
state
-
requestorId
Returns the value of therequestorIdrecord component.- Returns:
- the value of the
requestorIdrecord component
-
servicerId
Returns the value of theservicerIdrecord component.- Returns:
- the value of the
servicerIdrecord component
-