public class AlarmHistoryItem
extends java.lang.Object
implements java.io.Serializable
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 |
---|---|
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.
|
public java.lang.String getAlarmName()
The descriptive name for the alarm.
Constraints:
Length: 1 - 255
The descriptive name for the alarm.
public void setAlarmName(java.lang.String alarmName)
The descriptive name for the alarm.
Constraints:
Length: 1 - 255
alarmName
- The descriptive name for the alarm.
public AlarmHistoryItem withAlarmName(java.lang.String alarmName)
The descriptive name for the alarm.
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 java.util.Date getTimestamp()
The time stamp for the alarm history item.
The time stamp for the alarm history item.
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 AlarmHistoryItem withTimestamp(java.util.Date timestamp)
The time stamp for the alarm history item.
Returns a reference to this object so that method calls can be chained together.
timestamp
- The time stamp for the alarm history item.
public java.lang.String getHistoryItemType()
The type of alarm history item.
Constraints:
Allowed Values: ConfigurationUpdate, StateUpdate, Action
The type of alarm history item.
HistoryItemType
public void setHistoryItemType(java.lang.String historyItemType)
The type of alarm history item.
Constraints:
Allowed Values: ConfigurationUpdate, StateUpdate, Action
historyItemType
- The type of alarm history item.
HistoryItemType
public AlarmHistoryItem withHistoryItemType(java.lang.String historyItemType)
The type of alarm history item.
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)
The type of alarm history item.
Constraints:
Allowed Values: ConfigurationUpdate, StateUpdate, Action
historyItemType
- The type of alarm history item.
HistoryItemType
public AlarmHistoryItem withHistoryItemType(HistoryItemType historyItemType)
The type of alarm history item.
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 java.lang.String getHistorySummary()
A human-readable summary of the alarm history.
Constraints:
Length: 1 - 255
A human-readable summary of the alarm history.
public void setHistorySummary(java.lang.String historySummary)
A human-readable summary of the alarm history.
Constraints:
Length: 1 - 255
historySummary
- A human-readable summary of the alarm history.
public AlarmHistoryItem withHistorySummary(java.lang.String historySummary)
A human-readable summary of the alarm history.
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 java.lang.String getHistoryData()
Machine-readable data about the alarm in JSON format.
Constraints:
Length: 1 - 4095
Machine-readable data about the alarm in JSON format.
public void setHistoryData(java.lang.String historyData)
Machine-readable data about the alarm in JSON format.
Constraints:
Length: 1 - 4095
historyData
- 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.
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.