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