Enum Class TicketCategory
- All Implemented Interfaces:
Serializable, Comparable<TicketCategory>, Constable
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).-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA data-center advisory (DataCenter.Advisory).An incident.Planned or unplanned maintenance.Any other resource, e.g. the v2DataCenter.Network.Portticket form.A data-center security incident (DataCenter.SecurityIncident). -
Method Summary
Modifier and TypeMethodDescriptionstatic TicketCategoryfromResource(String resource) Derives the category from aTask.Resourcevalue.static TicketCategoryReturns the enum constant of this class with the specified name.static TicketCategory[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MAINTENANCE
Planned or unplanned maintenance. -
INCIDENT
An incident. -
SECURITY_INCIDENT
A data-center security incident (DataCenter.SecurityIncident). -
ADVISORY
A data-center advisory (DataCenter.Advisory). -
OTHER
Any other resource, e.g. the v2DataCenter.Network.Portticket form.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
fromResource
Derives the category from aTask.Resourcevalue.- Parameters:
resource- the resource, may benull- Returns:
- the category, never
null
-