com.amazonaws.services.cloudwatch.model
Class AlarmHistoryItem

java.lang.Object
  extended by com.amazonaws.services.cloudwatch.model.AlarmHistoryItem

public class AlarmHistoryItem
extends Object

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 Summary
AlarmHistoryItem()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlarmHistoryItem

public AlarmHistoryItem()
Method Detail

getAlarmName

public String getAlarmName()
The descriptive name for the alarm.

Constraints:
Length: 1 - 255

Returns:
The descriptive name for the alarm.

setAlarmName

public void setAlarmName(String alarmName)
The descriptive name for the alarm.

Constraints:
Length: 1 - 255

Parameters:
alarmName - The descriptive name for the alarm.

withAlarmName

public AlarmHistoryItem withAlarmName(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

Parameters:
alarmName - The descriptive name for the alarm.
Returns:
A reference to this updated object so that method calls can be chained together.

getTimestamp

public Date getTimestamp()
The time stamp for the alarm history item.

Returns:
The time stamp for the alarm history item.

setTimestamp

public void setTimestamp(Date timestamp)
The time stamp for the alarm history item.

Parameters:
timestamp - The time stamp for the alarm history item.

withTimestamp

public AlarmHistoryItem withTimestamp(Date timestamp)
The time stamp for the alarm history item.

Returns a reference to this object so that method calls can be chained together.

Parameters:
timestamp - The time stamp for the alarm history item.
Returns:
A reference to this updated object so that method calls can be chained together.

getHistoryItemType

public String getHistoryItemType()
The type of alarm history item.

Constraints:
Allowed Values: ConfigurationUpdate, StateUpdate, Action

Returns:
The type of alarm history item.
See Also:
HistoryItemType

setHistoryItemType

public void setHistoryItemType(String historyItemType)
The type of alarm history item.

Constraints:
Allowed Values: ConfigurationUpdate, StateUpdate, Action

Parameters:
historyItemType - The type of alarm history item.
See Also:
HistoryItemType

withHistoryItemType

public AlarmHistoryItem withHistoryItemType(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

Parameters:
historyItemType - The type of alarm history item.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
HistoryItemType

setHistoryItemType

public void setHistoryItemType(HistoryItemType historyItemType)
The type of alarm history item.

Constraints:
Allowed Values: ConfigurationUpdate, StateUpdate, Action

Parameters:
historyItemType - The type of alarm history item.
See Also:
HistoryItemType

withHistoryItemType

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

Parameters:
historyItemType - The type of alarm history item.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
HistoryItemType

getHistorySummary

public String getHistorySummary()
A human-readable summary of the alarm history.

Constraints:
Length: 1 - 255

Returns:
A human-readable summary of the alarm history.

setHistorySummary

public void setHistorySummary(String historySummary)
A human-readable summary of the alarm history.

Constraints:
Length: 1 - 255

Parameters:
historySummary - A human-readable summary of the alarm history.

withHistorySummary

public AlarmHistoryItem withHistorySummary(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

Parameters:
historySummary - A human-readable summary of the alarm history.
Returns:
A reference to this updated object so that method calls can be chained together.

getHistoryData

public String getHistoryData()
Machine-readable data about the alarm in JSON format.

Constraints:
Length: 1 - 4095

Returns:
Machine-readable data about the alarm in JSON format.

setHistoryData

public void setHistoryData(String historyData)
Machine-readable data about the alarm in JSON format.

Constraints:
Length: 1 - 4095

Parameters:
historyData - Machine-readable data about the alarm in JSON format.

withHistoryData

public AlarmHistoryItem withHistoryData(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

Parameters:
historyData - Machine-readable data about the alarm in JSON format.
Returns:
A reference to this updated 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:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.