public class AlarmHistoryItem
extends java.lang.Object
implements java.io.Serializable, java.lang.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.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
alarmName
The descriptive name for the alarm.
|
private java.lang.String |
historyData
Machine-readable data about the alarm in JSON format.
|
private java.lang.String |
historyItemType
The type of alarm history item.
|
private java.lang.String |
historySummary
A human-readable summary of the alarm history.
|
private java.util.Date |
timestamp
The time stamp for the alarm history item.
|
Constructor and Description |
---|
AlarmHistoryItem() |
Modifier and Type | Method and Description |
---|---|
AlarmHistoryItem |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAlarmName()
The descriptive name for the alarm.
|
java.lang.String |
getHistoryData()
Machine-readable data about the alarm in JSON format.
|
java.lang.String |
getHistoryItemType()
The type of alarm history item.
|
java.lang.String |
getHistorySummary()
A human-readable summary of the alarm history.
|
java.util.Date |
getTimestamp()
The time stamp for the alarm history item.
|
int |
hashCode() |
void |
setAlarmName(java.lang.String alarmName)
The descriptive name for the alarm.
|
void |
setHistoryData(java.lang.String historyData)
Machine-readable data about the alarm in JSON format.
|
void |
setHistoryItemType(HistoryItemType historyItemType)
The type of alarm history item.
|
void |
setHistoryItemType(java.lang.String historyItemType)
The type of alarm history item.
|
void |
setHistorySummary(java.lang.String historySummary)
A human-readable summary of the alarm history.
|
void |
setTimestamp(java.util.Date timestamp)
The time stamp for the alarm history item.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AlarmHistoryItem |
withAlarmName(java.lang.String alarmName)
The descriptive name for the alarm.
|
AlarmHistoryItem |
withHistoryData(java.lang.String historyData)
Machine-readable data about the alarm in JSON format.
|
AlarmHistoryItem |
withHistoryItemType(HistoryItemType historyItemType)
The type of alarm history item.
|
AlarmHistoryItem |
withHistoryItemType(java.lang.String historyItemType)
The type of alarm history item.
|
AlarmHistoryItem |
withHistorySummary(java.lang.String historySummary)
A human-readable summary of the alarm history.
|
AlarmHistoryItem |
withTimestamp(java.util.Date timestamp)
The time stamp for the alarm history item.
|
private java.lang.String alarmName
The descriptive name for the alarm.
private java.util.Date timestamp
The time stamp for the alarm history item.
private java.lang.String historyItemType
The type of alarm history item.
private java.lang.String historySummary
A human-readable summary of the alarm history.
private java.lang.String historyData
Machine-readable data about the alarm in JSON format.
public void setAlarmName(java.lang.String alarmName)
The descriptive name for the alarm.
alarmName
- The descriptive name for the alarm.public java.lang.String getAlarmName()
The descriptive name for the alarm.
public AlarmHistoryItem withAlarmName(java.lang.String alarmName)
The descriptive name for the alarm.
alarmName
- The descriptive name for the alarm.public void setTimestamp(java.util.Date timestamp)
The time stamp for the alarm history item.
timestamp
- The time stamp for the alarm history item.public java.util.Date getTimestamp()
The time stamp for the alarm history item.
public AlarmHistoryItem withTimestamp(java.util.Date timestamp)
The time stamp for the alarm history item.
timestamp
- The time stamp for the alarm history item.public void setHistoryItemType(java.lang.String historyItemType)
The type of alarm history item.
historyItemType
- The type of alarm history item.HistoryItemType
public java.lang.String getHistoryItemType()
The type of alarm history item.
HistoryItemType
public AlarmHistoryItem withHistoryItemType(java.lang.String historyItemType)
The type of alarm history item.
historyItemType
- The type of alarm history item.HistoryItemType
public void setHistoryItemType(HistoryItemType historyItemType)
The type of alarm history item.
historyItemType
- The type of alarm history item.HistoryItemType
public AlarmHistoryItem withHistoryItemType(HistoryItemType historyItemType)
The type of alarm history item.
historyItemType
- The type of alarm history item.HistoryItemType
public void setHistorySummary(java.lang.String historySummary)
A human-readable summary of the alarm history.
historySummary
- A human-readable summary of the alarm history.public java.lang.String getHistorySummary()
A human-readable summary of the alarm history.
public AlarmHistoryItem withHistorySummary(java.lang.String historySummary)
A human-readable summary of the alarm history.
historySummary
- A human-readable summary of the alarm history.public void setHistoryData(java.lang.String historyData)
Machine-readable data about the alarm in JSON format.
historyData
- Machine-readable data about the alarm in JSON format.public java.lang.String getHistoryData()
Machine-readable data about the alarm in JSON format.
public AlarmHistoryItem withHistoryData(java.lang.String historyData)
Machine-readable data about the alarm in JSON format.
historyData
- Machine-readable data about the alarm in JSON format.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AlarmHistoryItem clone()
clone
in class java.lang.Object