Class DescribeAlarmHistoryResult
java.lang.Object
com.amazonaws.services.cloudwatch.model.DescribeAlarmHistoryResult
- All Implemented Interfaces:
Serializable
,Cloneable
The output for the DescribeAlarmHistory action.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
A list of alarm histories in JSON format.A string that marks the start of the next batch of returned results.int
hashCode()
void
setAlarmHistoryItems
(Collection<AlarmHistoryItem> alarmHistoryItems) A list of alarm histories in JSON format.void
setNextToken
(String nextToken) A string that marks the start of the next batch of returned results.toString()
Returns a string representation of this object; useful for testing and debugging.withAlarmHistoryItems
(AlarmHistoryItem... alarmHistoryItems) A list of alarm histories in JSON format.withAlarmHistoryItems
(Collection<AlarmHistoryItem> alarmHistoryItems) A list of alarm histories in JSON format.withNextToken
(String nextToken) A string that marks the start of the next batch of returned results.
-
Constructor Details
-
DescribeAlarmHistoryResult
public DescribeAlarmHistoryResult()
-
-
Method Details
-
getAlarmHistoryItems
A list of alarm histories in JSON format.
- Returns:
- A list of alarm histories in JSON format.
-
setAlarmHistoryItems
A list of alarm histories in JSON format.
- Parameters:
alarmHistoryItems
- A list of alarm histories in JSON format.
-
withAlarmHistoryItems
A list of alarm histories in JSON format.
NOTE: This method appends the values to the existing list (if any). Use
setAlarmHistoryItems(java.util.Collection)
orwithAlarmHistoryItems(java.util.Collection)
if you want to override the existing values.- Parameters:
alarmHistoryItems
- A list of alarm histories in JSON format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAlarmHistoryItems
public DescribeAlarmHistoryResult withAlarmHistoryItems(Collection<AlarmHistoryItem> alarmHistoryItems) A list of alarm histories in JSON format.
- Parameters:
alarmHistoryItems
- A list of alarm histories in JSON format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
A string that marks the start of the next batch of returned results.
- Parameters:
nextToken
- A string that marks the start of the next batch of returned results.
-
getNextToken
A string that marks the start of the next batch of returned results.
- Returns:
- A string that marks the start of the next batch of returned results.
-
withNextToken
A string that marks the start of the next batch of returned results.
- Parameters:
nextToken
- A string that marks the start of the next batch of returned results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-