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/incident
state - ticket state
description - summary from the Equinix technician
sequence - 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 maintenance
endDateTime - end of the maintenance; for incidents and advisories only populated once the state is TicketState.COMPLETED
accountNumber - the customer account the activity relates to
impact - whether the activity is service-impacting
prodId - link to more information on the activity (wire ProdID)
organizer - maintenance organizer
assets - affected customer assets, never null

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).
  • Constructor Details

  • Method Details

    • isServiceImpacting

      public boolean isServiceImpacting()
      Whether Equinix flagged the activity as ServiceImpact.SERVICE_IMPACTING. Absent or unrecognised impact values return false; inspect impact() to tell them apart.
      Returns:
      true only for an explicit service-impacting flag
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • requestorId

      public String requestorId()
      Returns the value of the requestorId record component.
      Returns:
      the value of the requestorId record component
    • servicerId

      public String servicerId()
      Returns the value of the servicerId record component.
      Returns:
      the value of the servicerId record component
    • state

      public TicketState state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • sequence

      public Integer sequence()
      Returns the value of the sequence record component.
      Returns:
      the value of the sequence record component
    • startDateTime

      public Instant startDateTime()
      Returns the value of the startDateTime record component.
      Returns:
      the value of the startDateTime record component
    • endDateTime

      public Instant endDateTime()
      Returns the value of the endDateTime record component.
      Returns:
      the value of the endDateTime record component
    • accountNumber

      public String accountNumber()
      Returns the value of the accountNumber record component.
      Returns:
      the value of the accountNumber record component
    • impact

      public ServiceImpact impact()
      Returns the value of the impact record component.
      Returns:
      the value of the impact record component
    • prodId

      public String prodId()
      Returns the value of the prodId record component.
      Returns:
      the value of the prodId record component
    • organizer

      public String organizer()
      Returns the value of the organizer record component.
      Returns:
      the value of the organizer record component
    • assets

      public List<TicketBody.Asset> assets()
      Returns the value of the assets record component.
      Returns:
      the value of the assets record component