public static enum AlertEntity.AlertSeverity extends Enum<AlertEntity.AlertSeverity>
Enum Constant and Description |
---|
CRITICAL
critical.
|
INFO
informational.
|
WARN
warning.
|
Modifier and Type | Method and Description |
---|---|
static AlertEntity.AlertSeverity |
fromSeverity(Severity alertSeverity)
Locates the Severity enumeration constant matching a given Severity
enumeration.
|
Severity |
toSeverity()
returns the Severity enumeration matching this Severity enum.
|
static AlertEntity.AlertSeverity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AlertEntity.AlertSeverity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AlertEntity.AlertSeverity INFO
public static final AlertEntity.AlertSeverity WARN
public static final AlertEntity.AlertSeverity CRITICAL
public static AlertEntity.AlertSeverity[] values()
for (AlertEntity.AlertSeverity c : AlertEntity.AlertSeverity.values()) System.out.println(c);
public static AlertEntity.AlertSeverity valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Severity toSeverity()
public static AlertEntity.AlertSeverity fromSeverity(Severity alertSeverity)
alertSeverity
- the Severity to matchCopyright © 2016. All Rights Reserved.