Class AlarmHistoryItem
- All Implemented Interfaces:
Serializable
,Cloneable
The AlarmHistoryItem
data type contains descriptive information
about the history of a specific alarm. If you call
DescribeAlarmHistory, Amazon CloudWatch returns this data type as part
of the DescribeAlarmHistoryResult data type.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The descriptive name for the alarm.Machine-readable data about the alarm in JSON format.The type of alarm history item.A human-readable summary of the alarm history.The time stamp for the alarm history item.int
hashCode()
void
setAlarmName
(String alarmName) The descriptive name for the alarm.void
setHistoryData
(String historyData) Machine-readable data about the alarm in JSON format.void
setHistoryItemType
(HistoryItemType historyItemType) The type of alarm history item.void
setHistoryItemType
(String historyItemType) The type of alarm history item.void
setHistorySummary
(String historySummary) A human-readable summary of the alarm history.void
setTimestamp
(Date timestamp) The time stamp for the alarm history item.toString()
Returns a string representation of this object; useful for testing and debugging.withAlarmName
(String alarmName) The descriptive name for the alarm.withHistoryData
(String historyData) Machine-readable data about the alarm in JSON format.withHistoryItemType
(HistoryItemType historyItemType) The type of alarm history item.withHistoryItemType
(String historyItemType) The type of alarm history item.withHistorySummary
(String historySummary) A human-readable summary of the alarm history.withTimestamp
(Date timestamp) The time stamp for the alarm history item.
-
Constructor Details
-
AlarmHistoryItem
public AlarmHistoryItem()
-
-
Method Details
-
setAlarmName
The descriptive name for the alarm.
- Parameters:
alarmName
- The descriptive name for the alarm.
-
getAlarmName
The descriptive name for the alarm.
- Returns:
- The descriptive name for the alarm.
-
withAlarmName
The descriptive name for the alarm.
- Parameters:
alarmName
- The descriptive name for the alarm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTimestamp
The time stamp for the alarm history item.
- Parameters:
timestamp
- The time stamp for the alarm history item.
-
getTimestamp
The time stamp for the alarm history item.
- Returns:
- The time stamp for the alarm history item.
-
withTimestamp
The time stamp for the alarm history item.
- Parameters:
timestamp
- The time stamp for the alarm history item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHistoryItemType
The type of alarm history item.
- Parameters:
historyItemType
- The type of alarm history item.- See Also:
-
getHistoryItemType
The type of alarm history item.
- Returns:
- The type of alarm history item.
- See Also:
-
withHistoryItemType
The type of alarm history item.
- Parameters:
historyItemType
- The type of alarm history item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setHistoryItemType
The type of alarm history item.
- Parameters:
historyItemType
- The type of alarm history item.- See Also:
-
withHistoryItemType
The type of alarm history item.
- Parameters:
historyItemType
- The type of alarm history item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setHistorySummary
A human-readable summary of the alarm history.
- Parameters:
historySummary
- A human-readable summary of the alarm history.
-
getHistorySummary
A human-readable summary of the alarm history.
- Returns:
- A human-readable summary of the alarm history.
-
withHistorySummary
A human-readable summary of the alarm history.
- Parameters:
historySummary
- A human-readable summary of the alarm history.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHistoryData
Machine-readable data about the alarm in JSON format.
- Parameters:
historyData
- Machine-readable data about the alarm in JSON format.
-
getHistoryData
Machine-readable data about the alarm in JSON format.
- Returns:
- Machine-readable data about the alarm in JSON format.
-
withHistoryData
Machine-readable data about the alarm in JSON format.
- Parameters:
historyData
- Machine-readable data about the alarm in JSON format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-