Class CompositeAlarm
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CompositeAlarm.Builder,CompositeAlarm>
The details about a composite alarm.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleanIndicates whether actions should be executed during any changes to the alarm state.final ActionsSuppressedByWhen the value isALARM, it means that the actions are suppressed because the suppressor alarm is inALARMWhen the value isWaitPeriod, it means that the actions are suppressed because the composite alarm is waiting for the suppressor alarm to go into into theALARMstate.final StringWhen the value isALARM, it means that the actions are suppressed because the suppressor alarm is inALARMWhen the value isWaitPeriod, it means that the actions are suppressed because the composite alarm is waiting for the suppressor alarm to go into into theALARMstate.final StringCaptures the reason for action suppression.final StringActions will be suppressed if the suppressor alarm is in theALARMstate.final IntegerThe maximum time in seconds that the composite alarm waits after suppressor alarm goes out of theALARMstate.final IntegerThe maximum time in seconds that the composite alarm waits for the suppressor alarm to go into theALARMstate.The actions to execute when this alarm transitions to the ALARM state from any other state.final StringalarmArn()The Amazon Resource Name (ARN) of the alarm.final InstantThe time stamp of the last update to the alarm configuration.final StringThe description of the alarm.final StringThe name of the alarm.final StringThe rule that this alarm uses to evaluate its alarm state.static CompositeAlarm.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the AlarmActions property.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the InsufficientDataActions property.final booleanFor responses, this returns true if the service returned a value for the OKActions property.The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state.The actions to execute when this alarm transitions to the OK state from any other state.static Class<? extends CompositeAlarm.Builder> final StringAn explanation for the alarm state, in text format.final StringAn explanation for the alarm state, in JSON format.final InstantThe timestamp of the last change to the alarm'sStateValue.final InstantTracks the timestamp of any state update, even ifStateValuedoesn't change.final StateValueThe state value for the alarm.final StringThe state value for the alarm.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
actionsEnabled
Indicates whether actions should be executed during any changes to the alarm state.
- Returns:
- Indicates whether actions should be executed during any changes to the alarm state.
-
hasAlarmActions
public final boolean hasAlarmActions()For responses, this returns true if the service returned a value for the AlarmActions property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
alarmActions
The actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasAlarmActions()method.- Returns:
- The actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).
-
alarmArn
The Amazon Resource Name (ARN) of the alarm.
- Returns:
- The Amazon Resource Name (ARN) of the alarm.
-
alarmConfigurationUpdatedTimestamp
The time stamp of the last update to the alarm configuration.
- Returns:
- The time stamp of the last update to the alarm configuration.
-
alarmDescription
The description of the alarm.
- Returns:
- The description of the alarm.
-
alarmName
-
alarmRule
The rule that this alarm uses to evaluate its alarm state.
- Returns:
- The rule that this alarm uses to evaluate its alarm state.
-
hasInsufficientDataActions
public final boolean hasInsufficientDataActions()For responses, this returns true if the service returned a value for the InsufficientDataActions property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
insufficientDataActions
The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasInsufficientDataActions()method.- Returns:
- The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).
-
hasOkActions
public final boolean hasOkActions()For responses, this returns true if the service returned a value for the OKActions property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
okActions
The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasOkActions()method.- Returns:
- The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).
-
stateReason
An explanation for the alarm state, in text format.
- Returns:
- An explanation for the alarm state, in text format.
-
stateReasonData
An explanation for the alarm state, in JSON format.
- Returns:
- An explanation for the alarm state, in JSON format.
-
stateUpdatedTimestamp
Tracks the timestamp of any state update, even if
StateValuedoesn't change.- Returns:
- Tracks the timestamp of any state update, even if
StateValuedoesn't change.
-
stateValue
The state value for the alarm.
If the service returns an enum value that is not available in the current SDK version,
stateValuewill returnStateValue.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateValueAsString().- Returns:
- The state value for the alarm.
- See Also:
-
stateValueAsString
The state value for the alarm.
If the service returns an enum value that is not available in the current SDK version,
stateValuewill returnStateValue.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateValueAsString().- Returns:
- The state value for the alarm.
- See Also:
-
stateTransitionedTimestamp
The timestamp of the last change to the alarm's
StateValue.- Returns:
- The timestamp of the last change to the alarm's
StateValue.
-
actionsSuppressedBy
When the value is
ALARM, it means that the actions are suppressed because the suppressor alarm is inALARMWhen the value isWaitPeriod, it means that the actions are suppressed because the composite alarm is waiting for the suppressor alarm to go into into theALARMstate. The maximum waiting time is as specified inActionsSuppressorWaitPeriod. After this time, the composite alarm performs its actions. When the value isExtensionPeriod, it means that the actions are suppressed because the composite alarm is waiting after the suppressor alarm went out of theALARMstate. The maximum waiting time is as specified inActionsSuppressorExtensionPeriod. After this time, the composite alarm performs its actions.If the service returns an enum value that is not available in the current SDK version,
actionsSuppressedBywill returnActionsSuppressedBy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionsSuppressedByAsString().- Returns:
- When the value is
ALARM, it means that the actions are suppressed because the suppressor alarm is inALARMWhen the value isWaitPeriod, it means that the actions are suppressed because the composite alarm is waiting for the suppressor alarm to go into into theALARMstate. The maximum waiting time is as specified inActionsSuppressorWaitPeriod. After this time, the composite alarm performs its actions. When the value isExtensionPeriod, it means that the actions are suppressed because the composite alarm is waiting after the suppressor alarm went out of theALARMstate. The maximum waiting time is as specified inActionsSuppressorExtensionPeriod. After this time, the composite alarm performs its actions. - See Also:
-
actionsSuppressedByAsString
When the value is
ALARM, it means that the actions are suppressed because the suppressor alarm is inALARMWhen the value isWaitPeriod, it means that the actions are suppressed because the composite alarm is waiting for the suppressor alarm to go into into theALARMstate. The maximum waiting time is as specified inActionsSuppressorWaitPeriod. After this time, the composite alarm performs its actions. When the value isExtensionPeriod, it means that the actions are suppressed because the composite alarm is waiting after the suppressor alarm went out of theALARMstate. The maximum waiting time is as specified inActionsSuppressorExtensionPeriod. After this time, the composite alarm performs its actions.If the service returns an enum value that is not available in the current SDK version,
actionsSuppressedBywill returnActionsSuppressedBy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionsSuppressedByAsString().- Returns:
- When the value is
ALARM, it means that the actions are suppressed because the suppressor alarm is inALARMWhen the value isWaitPeriod, it means that the actions are suppressed because the composite alarm is waiting for the suppressor alarm to go into into theALARMstate. The maximum waiting time is as specified inActionsSuppressorWaitPeriod. After this time, the composite alarm performs its actions. When the value isExtensionPeriod, it means that the actions are suppressed because the composite alarm is waiting after the suppressor alarm went out of theALARMstate. The maximum waiting time is as specified inActionsSuppressorExtensionPeriod. After this time, the composite alarm performs its actions. - See Also:
-
actionsSuppressedReason
Captures the reason for action suppression.
- Returns:
- Captures the reason for action suppression.
-
actionsSuppressor
Actions will be suppressed if the suppressor alarm is in the
ALARMstate.ActionsSuppressorcan be an AlarmName or an Amazon Resource Name (ARN) from an existing alarm.- Returns:
- Actions will be suppressed if the suppressor alarm is in the
ALARMstate.ActionsSuppressorcan be an AlarmName or an Amazon Resource Name (ARN) from an existing alarm.
-
actionsSuppressorWaitPeriod
The maximum time in seconds that the composite alarm waits for the suppressor alarm to go into the
ALARMstate. After this time, the composite alarm performs its actions.WaitPeriodis required only whenActionsSuppressoris specified.- Returns:
- The maximum time in seconds that the composite alarm waits for the suppressor alarm to go into the
ALARMstate. After this time, the composite alarm performs its actions.WaitPeriodis required only whenActionsSuppressoris specified.
-
actionsSuppressorExtensionPeriod
The maximum time in seconds that the composite alarm waits after suppressor alarm goes out of the
ALARMstate. After this time, the composite alarm performs its actions.ExtensionPeriodis required only whenActionsSuppressoris specified.- Returns:
- The maximum time in seconds that the composite alarm waits after suppressor alarm goes out of the
ALARMstate. After this time, the composite alarm performs its actions.ExtensionPeriodis required only whenActionsSuppressoris specified.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<CompositeAlarm.Builder,CompositeAlarm> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-