public class DescribeAlarmHistoryResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The output for the DescribeAlarmHistory action.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<AlarmHistoryItem> |
alarmHistoryItems
A list of alarm histories in JSON format.
|
private java.lang.String |
nextToken
A string that marks the start of the next batch of returned results.
|
Constructor and Description |
---|
DescribeAlarmHistoryResult() |
Modifier and Type | Method and Description |
---|---|
DescribeAlarmHistoryResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<AlarmHistoryItem> |
getAlarmHistoryItems()
A list of alarm histories in JSON format.
|
java.lang.String |
getNextToken()
A string that marks the start of the next batch of returned results.
|
int |
hashCode() |
void |
setAlarmHistoryItems(java.util.Collection<AlarmHistoryItem> alarmHistoryItems)
A list of alarm histories in JSON format.
|
void |
setNextToken(java.lang.String nextToken)
A string that marks the start of the next batch of returned results.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeAlarmHistoryResult |
withAlarmHistoryItems(AlarmHistoryItem... alarmHistoryItems)
A list of alarm histories in JSON format.
|
DescribeAlarmHistoryResult |
withAlarmHistoryItems(java.util.Collection<AlarmHistoryItem> alarmHistoryItems)
A list of alarm histories in JSON format.
|
DescribeAlarmHistoryResult |
withNextToken(java.lang.String nextToken)
A string that marks the start of the next batch of returned results.
|
private SdkInternalList<AlarmHistoryItem> alarmHistoryItems
A list of alarm histories in JSON format.
private java.lang.String nextToken
A string that marks the start of the next batch of returned results.
public java.util.List<AlarmHistoryItem> getAlarmHistoryItems()
A list of alarm histories in JSON format.
public void setAlarmHistoryItems(java.util.Collection<AlarmHistoryItem> alarmHistoryItems)
A list of alarm histories in JSON format.
alarmHistoryItems
- A list of alarm histories in JSON format.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)
or
withAlarmHistoryItems(java.util.Collection)
if you want to
override the existing values.
alarmHistoryItems
- A list of alarm histories in JSON format.public DescribeAlarmHistoryResult withAlarmHistoryItems(java.util.Collection<AlarmHistoryItem> alarmHistoryItems)
A list of alarm histories in JSON format.
alarmHistoryItems
- A list of alarm histories in JSON format.public void setNextToken(java.lang.String nextToken)
A string that marks the start of the next batch of returned results.
nextToken
- A string that marks the start of the next batch of returned
results.public java.lang.String getNextToken()
A string that marks the start of the next batch of returned results.
public DescribeAlarmHistoryResult withNextToken(java.lang.String nextToken)
A string that marks the start of the next batch of returned results.
nextToken
- A string that marks the start of the next batch of returned
results.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DescribeAlarmHistoryResult clone()
clone
in class java.lang.Object