public static enum Violation.RuleType extends Enum<Violation.RuleType> implements BmcEnum
The rule type. Either WARN or ERROR.
Enum Constant and Description |
---|
Error |
UnknownEnumValue
This value is used if a service returns a value for this enum that is not recognized by
this version of the SDK.
|
Warn |
Modifier and Type | Method and Description |
---|---|
static Violation.RuleType |
create(String key) |
String |
getValue() |
static Violation.RuleType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Violation.RuleType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Violation.RuleType Warn
public static final Violation.RuleType Error
public static final Violation.RuleType UnknownEnumValue
public static Violation.RuleType[] values()
for (Violation.RuleType c : Violation.RuleType.values()) System.out.println(c);
public static Violation.RuleType 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 static Violation.RuleType create(String key)
Copyright © 2016–2023. All rights reserved.