Record Class OrderNotification.Body

java.lang.Object
java.lang.Record
com.eqixiac.equinix.messaging.OrderNotification.Body
Record Components:
requestorId - customer reference number given when the order was placed
servicerId - the Equinix order number
activityId - id of the order line item or sub-task
state - order state
description - status description or technician message
customerContact - primary customer contact email
location - IBX where the order is fulfilled
serviceDetails - order-type-specific details (free-form; see serviceDetails())
attachments - attachments, never null
Enclosing class:
OrderNotification

public static record OrderNotification.Body(String requestorId, String servicerId, String activityId, OrderNotification.State state, String description, String customerContact, String location, com.fasterxml.jackson.databind.JsonNode serviceDetails, List<OrderNotification.Attachment> attachments) extends Record
Order notification body (spec OrderNotificationBody).
  • Constructor Details

  • Method Details

    • serviceDetails

      public com.fasterxml.jackson.databind.JsonNode serviceDetails()
      Order-type-specific details. Their contents vary by order type and are not specified, so they are exposed as a JSON tree; a defensive copy is returned.
      Returns:
      a copy of the details, or null if absent
    • 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
    • activityId

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

      public OrderNotification.State 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
    • customerContact

      public String customerContact()
      Returns the value of the customerContact record component.
      Returns:
      the value of the customerContact record component
    • location

      public String location()
      Returns the value of the location record component.
      Returns:
      the value of the location record component
    • attachments

      public List<OrderNotification.Attachment> attachments()
      Returns the value of the attachments record component.
      Returns:
      the value of the attachments record component