Class DescribeAlarmHistoryResult
- java.lang.Object
-
- com.amazonaws.services.cloudwatch.model.DescribeAlarmHistoryResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class DescribeAlarmHistoryResult extends Object implements Serializable, Cloneable
The output for the DescribeAlarmHistory action.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeAlarmHistoryResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeAlarmHistoryResultclone()booleanequals(Object obj)List<AlarmHistoryItem>getAlarmHistoryItems()A list of alarm histories in JSON format.StringgetNextToken()A string that marks the start of the next batch of returned results.inthashCode()voidsetAlarmHistoryItems(Collection<AlarmHistoryItem> alarmHistoryItems)A list of alarm histories in JSON format.voidsetNextToken(String nextToken)A string that marks the start of the next batch of returned results.StringtoString()Returns a string representation of this object; useful for testing and debugging.DescribeAlarmHistoryResultwithAlarmHistoryItems(AlarmHistoryItem... alarmHistoryItems)A list of alarm histories in JSON format.DescribeAlarmHistoryResultwithAlarmHistoryItems(Collection<AlarmHistoryItem> alarmHistoryItems)A list of alarm histories in JSON format.DescribeAlarmHistoryResultwithNextToken(String nextToken)A string that marks the start of the next batch of returned results.
-
-
-
Method Detail
-
getAlarmHistoryItems
public List<AlarmHistoryItem> getAlarmHistoryItems()
A list of alarm histories in JSON format.
- Returns:
- A list of alarm histories in JSON format.
-
setAlarmHistoryItems
public void setAlarmHistoryItems(Collection<AlarmHistoryItem> alarmHistoryItems)
A list of alarm histories in JSON format.
- Parameters:
alarmHistoryItems- A list of alarm histories in JSON format.
-
withAlarmHistoryItems
public DescribeAlarmHistoryResult withAlarmHistoryItems(AlarmHistoryItem... alarmHistoryItems)
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
public void setNextToken(String nextToken)
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
public String 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
public DescribeAlarmHistoryResult withNextToken(String nextToken)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeAlarmHistoryResult clone()
-
-