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 String getAlarmName()
Constraints:
Length: 1 - 255
public void setAlarmName(String alarmName)
Constraints:
Length: 1 - 255
alarmName
- The descriptive name for the alarm.public AlarmHistoryItem withAlarmName(String alarmName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
alarmName
- The descriptive name for the alarm.public Date getTimestamp()
public void setTimestamp(Date timestamp)
timestamp
- The time stamp for the alarm history item.public AlarmHistoryItem withTimestamp(Date timestamp)
Returns a reference to this object so that method calls can be chained together.
timestamp
- The time stamp for the alarm history item.public String getHistoryItemType()
Constraints:
Allowed Values: ConfigurationUpdate, StateUpdate, Action
HistoryItemType
public void setHistoryItemType(String historyItemType)
Constraints:
Allowed Values: ConfigurationUpdate, StateUpdate, Action
historyItemType
- The type of alarm history item.HistoryItemType
public AlarmHistoryItem withHistoryItemType(String historyItemType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ConfigurationUpdate, StateUpdate, Action
historyItemType
- The type of alarm history item.HistoryItemType
public void setHistoryItemType(HistoryItemType historyItemType)
Constraints:
Allowed Values: ConfigurationUpdate, StateUpdate, Action
historyItemType
- The type of alarm history item.HistoryItemType
public AlarmHistoryItem withHistoryItemType(HistoryItemType historyItemType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ConfigurationUpdate, StateUpdate, Action
historyItemType
- The type of alarm history item.HistoryItemType
public String getHistorySummary()
Constraints:
Length: 1 - 255
public void setHistorySummary(String historySummary)
Constraints:
Length: 1 - 255
historySummary
- A human-readable summary of the alarm history.public AlarmHistoryItem withHistorySummary(String historySummary)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
historySummary
- A human-readable summary of the alarm history.public String getHistoryData()
Constraints:
Length: 1 - 4095
public void setHistoryData(String historyData)
Constraints:
Length: 1 - 4095
historyData
- Machine-readable data about the alarm in JSON format.public AlarmHistoryItem withHistoryData(String historyData)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 4095
historyData
- Machine-readable data about the alarm in JSON format.public String toString()
toString
in class Object
Object.toString()
public AlarmHistoryItem clone()
Copyright © 2015. All rights reserved.