Enum Class TicketCategory

java.lang.Object
java.lang.Enum<TicketCategory>
com.eqixiac.equinix.messaging.TicketCategory
All Implemented Interfaces:
Serializable, Comparable<TicketCategory>, Constable

public enum TicketCategory extends Enum<TicketCategory>
The kind of event an IBX or network ticket notification describes, derived from the suffix of Task.Resource (for example DataCenter.Maintenance or Network.Incident).
  • Enum Constant Details

    • MAINTENANCE

      public static final TicketCategory MAINTENANCE
      Planned or unplanned maintenance.
    • INCIDENT

      public static final TicketCategory INCIDENT
      An incident.
    • SECURITY_INCIDENT

      public static final TicketCategory SECURITY_INCIDENT
      A data-center security incident (DataCenter.SecurityIncident).
    • ADVISORY

      public static final TicketCategory ADVISORY
      A data-center advisory (DataCenter.Advisory).
    • OTHER

      public static final TicketCategory OTHER
      Any other resource, e.g. the v2 DataCenter.Network.Port ticket form.
  • Method Details

    • values

      public static TicketCategory[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TicketCategory valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromResource

      public static TicketCategory fromResource(String resource)
      Derives the category from a Task.Resource value.
      Parameters:
      resource - the resource, may be null
      Returns:
      the category, never null