public class DescribeAlarmsResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The output for the DescribeAlarms action.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<MetricAlarm> |
metricAlarms
A list of information for the specified alarms.
|
private java.lang.String |
nextToken
A string that marks the start of the next batch of returned results.
|
Constructor and Description |
---|
DescribeAlarmsResult() |
Modifier and Type | Method and Description |
---|---|
DescribeAlarmsResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<MetricAlarm> |
getMetricAlarms()
A list of information for the specified alarms.
|
java.lang.String |
getNextToken()
A string that marks the start of the next batch of returned results.
|
int |
hashCode() |
void |
setMetricAlarms(java.util.Collection<MetricAlarm> metricAlarms)
A list of information for the specified alarms.
|
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.
|
DescribeAlarmsResult |
withMetricAlarms(java.util.Collection<MetricAlarm> metricAlarms)
A list of information for the specified alarms.
|
DescribeAlarmsResult |
withMetricAlarms(MetricAlarm... metricAlarms)
A list of information for the specified alarms.
|
DescribeAlarmsResult |
withNextToken(java.lang.String nextToken)
A string that marks the start of the next batch of returned results.
|
private SdkInternalList<MetricAlarm> metricAlarms
A list of information for the specified alarms.
private java.lang.String nextToken
A string that marks the start of the next batch of returned results.
public java.util.List<MetricAlarm> getMetricAlarms()
A list of information for the specified alarms.
public void setMetricAlarms(java.util.Collection<MetricAlarm> metricAlarms)
A list of information for the specified alarms.
metricAlarms
- A list of information for the specified alarms.public DescribeAlarmsResult withMetricAlarms(MetricAlarm... metricAlarms)
A list of information for the specified alarms.
NOTE: This method appends the values to the existing list (if
any). Use setMetricAlarms(java.util.Collection)
or
withMetricAlarms(java.util.Collection)
if you want to override
the existing values.
metricAlarms
- A list of information for the specified alarms.public DescribeAlarmsResult withMetricAlarms(java.util.Collection<MetricAlarm> metricAlarms)
A list of information for the specified alarms.
metricAlarms
- A list of information for the specified alarms.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 DescribeAlarmsResult 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 DescribeAlarmsResult clone()
clone
in class java.lang.Object