Record Class TicketBody
java.lang.Object
java.lang.Record
com.eqixiac.equinix.messaging.TicketBody
- Record Components:
requestorId- customer reference number (if any)servicerId- the Equinix ticket id for the maintenance/incidentstate- ticket statedescription- summary from the Equinix techniciansequence- incrementing number across related notifications, starting at 0 (the spec says integer; the documented samples send a string such as"2", which is accepted)startDateTime- start of the maintenanceendDateTime- end of the maintenance; for incidents and advisories only populated once the state isTicketState.COMPLETEDaccountNumber- the customer account the activity relates toimpact- whether the activity is service-impactingprodId- link to more information on the activity (wireProdID)organizer- maintenance organizerassets- affected customer assets, nevernull
public record TicketBody(String requestorId, String servicerId, TicketState state, String description, Integer sequence, Instant startDateTime, Instant endDateTime, String accountNumber, ServiceImpact impact, String prodId, String organizer, List<TicketBody.Asset> assets)
extends Record
Body of an IBX (data center) or network maintenance/incident notification. One shape serves the
spec's
IBXNotificationV1Body, IBXNotificationV2Body,
NetworkNotificationV1Body and NetworkNotificationV2Body, which differ only in that
the network schemas omit Assets (the Notification Types guide documents Assets for
network notifications too, so it is read when present).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordAn affected customer asset. -
Constructor Summary
ConstructorsConstructorDescriptionTicketBody(String requestorId, String servicerId, TicketState state, String description, Integer sequence, Instant startDateTime, Instant endDateTime, String accountNumber, ServiceImpact impact, String prodId, String organizer, List<TicketBody.Asset> assets) Normalisesassetsto an unmodifiable list withoutnullelements. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccountNumberrecord component.assets()Returns the value of theassetsrecord component.Returns the value of thedescriptionrecord component.Returns the value of theendDateTimerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.impact()Returns the value of theimpactrecord component.booleanWhether Equinix flagged the activity asServiceImpact.SERVICE_IMPACTING.Returns the value of theorganizerrecord component.prodId()Returns the value of theprodIdrecord component.Returns the value of therequestorIdrecord component.sequence()Returns the value of thesequencerecord component.Returns the value of theservicerIdrecord component.Returns the value of thestartDateTimerecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TicketBody
public TicketBody(String requestorId, String servicerId, TicketState state, String description, Integer sequence, Instant startDateTime, Instant endDateTime, String accountNumber, ServiceImpact impact, String prodId, String organizer, List<TicketBody.Asset> assets) Normalisesassetsto an unmodifiable list withoutnullelements.
-
-
Method Details
-
isServiceImpacting
public boolean isServiceImpacting()Whether Equinix flagged the activity asServiceImpact.SERVICE_IMPACTING. Absent or unrecognised impact values returnfalse; inspectimpact()to tell them apart.- Returns:
trueonly for an explicit service-impacting flag
-
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). -
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
-
state
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
sequence
-
startDateTime
Returns the value of thestartDateTimerecord component.- Returns:
- the value of the
startDateTimerecord component
-
endDateTime
Returns the value of theendDateTimerecord component.- Returns:
- the value of the
endDateTimerecord component
-
accountNumber
Returns the value of theaccountNumberrecord component.- Returns:
- the value of the
accountNumberrecord component
-
impact
-
prodId
-
organizer
-
assets
-