@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:04.185Z") @Stability(value=Experimental) public enum AlarmState extends Enum<AlarmState>
Example:
Alarm alarm1;
Alarm alarm2;
Alarm alarm3;
Alarm alarm4;
IAlarmRule alarmRule = AlarmRule.anyOf(AlarmRule.allOf(AlarmRule.anyOf(alarm1, AlarmRule.fromAlarm(alarm2, AlarmState.OK), alarm3), AlarmRule.not(AlarmRule.fromAlarm(alarm4, AlarmState.INSUFFICIENT_DATA))), AlarmRule.fromBoolean(false));
CompositeAlarm.Builder.create(this, "MyAwesomeCompositeAlarm")
.alarmRule(alarmRule)
.build();
| Enum Constant and Description |
|---|
ALARM
(experimental) State indicates resource is in ALARM.
|
INSUFFICIENT_DATA
(experimental) State indicates there is not enough data to determine is resource is in ALARM.
|
OK
(experimental) State indicates resource is not in ALARM.
|
| Modifier and Type | Method and Description |
|---|---|
static AlarmState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AlarmState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Experimental) public static final AlarmState ALARM
@Stability(value=Experimental) public static final AlarmState OK
@Stability(value=Experimental) public static final AlarmState INSUFFICIENT_DATA
public static AlarmState[] values()
for (AlarmState c : AlarmState.values()) System.out.println(c);
public static AlarmState 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 nullCopyright © 2022. All rights reserved.