Class AlarmHistoryItem
- java.lang.Object
-
- com.amazonaws.services.cloudwatch.model.AlarmHistoryItem
-
- All Implemented Interfaces:
Serializable,Cloneable
public class AlarmHistoryItem extends Object implements Serializable, Cloneable
The
AlarmHistoryItemdata 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AlarmHistoryItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlarmHistoryItemclone()booleanequals(Object obj)StringgetAlarmName()The descriptive name for the alarm.StringgetHistoryData()Machine-readable data about the alarm in JSON format.StringgetHistoryItemType()The type of alarm history item.StringgetHistorySummary()A human-readable summary of the alarm history.DategetTimestamp()The time stamp for the alarm history item.inthashCode()voidsetAlarmName(String alarmName)The descriptive name for the alarm.voidsetHistoryData(String historyData)Machine-readable data about the alarm in JSON format.voidsetHistoryItemType(HistoryItemType historyItemType)The type of alarm history item.voidsetHistoryItemType(String historyItemType)The type of alarm history item.voidsetHistorySummary(String historySummary)A human-readable summary of the alarm history.voidsetTimestamp(Date timestamp)The time stamp for the alarm history item.StringtoString()Returns a string representation of this object; useful for testing and debugging.AlarmHistoryItemwithAlarmName(String alarmName)The descriptive name for the alarm.AlarmHistoryItemwithHistoryData(String historyData)Machine-readable data about the alarm in JSON format.AlarmHistoryItemwithHistoryItemType(HistoryItemType historyItemType)The type of alarm history item.AlarmHistoryItemwithHistoryItemType(String historyItemType)The type of alarm history item.AlarmHistoryItemwithHistorySummary(String historySummary)A human-readable summary of the alarm history.AlarmHistoryItemwithTimestamp(Date timestamp)The time stamp for the alarm history item.
-
-
-
Method Detail
-
setAlarmName
public void setAlarmName(String alarmName)
The descriptive name for the alarm.
- Parameters:
alarmName- The descriptive name for the alarm.
-
getAlarmName
public String getAlarmName()
The descriptive name for the alarm.
- Returns:
- The descriptive name for the alarm.
-
withAlarmName
public AlarmHistoryItem withAlarmName(String alarmName)
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
public void setTimestamp(Date timestamp)
The time stamp for the alarm history item.
- Parameters:
timestamp- The time stamp for the alarm history item.
-
getTimestamp
public Date getTimestamp()
The time stamp for the alarm history item.
- Returns:
- The time stamp for the alarm history item.
-
withTimestamp
public AlarmHistoryItem withTimestamp(Date timestamp)
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
public void setHistoryItemType(String historyItemType)
The type of alarm history item.
- Parameters:
historyItemType- The type of alarm history item.- See Also:
HistoryItemType
-
getHistoryItemType
public String getHistoryItemType()
The type of alarm history item.
- Returns:
- The type of alarm history item.
- See Also:
HistoryItemType
-
withHistoryItemType
public AlarmHistoryItem withHistoryItemType(String historyItemType)
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:
HistoryItemType
-
setHistoryItemType
public void setHistoryItemType(HistoryItemType historyItemType)
The type of alarm history item.
- Parameters:
historyItemType- The type of alarm history item.- See Also:
HistoryItemType
-
withHistoryItemType
public AlarmHistoryItem withHistoryItemType(HistoryItemType historyItemType)
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:
HistoryItemType
-
setHistorySummary
public void setHistorySummary(String historySummary)
A human-readable summary of the alarm history.
- Parameters:
historySummary- A human-readable summary of the alarm history.
-
getHistorySummary
public String getHistorySummary()
A human-readable summary of the alarm history.
- Returns:
- A human-readable summary of the alarm history.
-
withHistorySummary
public AlarmHistoryItem withHistorySummary(String historySummary)
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
public void setHistoryData(String historyData)
Machine-readable data about the alarm in JSON format.
- Parameters:
historyData- Machine-readable data about the alarm in JSON format.
-
getHistoryData
public String getHistoryData()
Machine-readable data about the alarm in JSON format.
- Returns:
- Machine-readable data about the alarm in JSON format.
-
withHistoryData
public AlarmHistoryItem withHistoryData(String historyData)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AlarmHistoryItem clone()
-
-