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
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AlarmHistoryItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AlarmHistoryItem clone()
-
-