public class DescribeAlarmsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
The output for DescribeAlarms.
Constructor and Description |
---|
DescribeAlarmsResult() |
Modifier and Type | Method and Description |
---|---|
DescribeAlarmsResult |
clone() |
boolean |
equals(Object obj) |
List<MetricAlarm> |
getMetricAlarms()
A list of information for the specified alarms.
|
String |
getNextToken()
A string that marks the start of the next batch of returned results.
|
int |
hashCode() |
void |
setMetricAlarms(Collection<MetricAlarm> metricAlarms)
A list of information for the specified alarms.
|
void |
setNextToken(String nextToken)
A string that marks the start of the next batch of returned results.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
DescribeAlarmsResult |
withMetricAlarms(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(String nextToken)
A string that marks the start of the next batch of returned results.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<MetricAlarm> getMetricAlarms()
A list of information for the specified alarms.
public void setMetricAlarms(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(Collection<MetricAlarm> metricAlarms)
A list of information for the specified alarms.
metricAlarms
- A list of information for the specified alarms.public void setNextToken(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 String getNextToken()
A string that marks the start of the next batch of returned results.
public DescribeAlarmsResult withNextToken(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 String toString()
toString
in class Object
Object.toString()
public DescribeAlarmsResult clone()
Copyright © 2016. All rights reserved.