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:
  • Constructor Details

    • AlarmHistoryItem

      public AlarmHistoryItem()
  • Method Details

    • 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:
    • getHistoryItemType

      public String getHistoryItemType()

      The type of alarm history item.

      Returns:
      The type of alarm history item.
      See Also:
    • 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:
    • setHistoryItemType

      public void setHistoryItemType(HistoryItemType historyItemType)

      The type of alarm history item.

      Parameters:
      historyItemType - The type of alarm history item.
      See Also:
    • 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:
    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public AlarmHistoryItem clone()
      Overrides:
      clone in class Object