public class DescribeAlarmsForMetricResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The output for the DescribeAlarmsForMetric action.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<MetricAlarm> |
metricAlarms
A list of information for each alarm with the specified metric.
|
Constructor and Description |
---|
DescribeAlarmsForMetricResult() |
Modifier and Type | Method and Description |
---|---|
DescribeAlarmsForMetricResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<MetricAlarm> |
getMetricAlarms()
A list of information for each alarm with the specified metric.
|
int |
hashCode() |
void |
setMetricAlarms(java.util.Collection<MetricAlarm> metricAlarms)
A list of information for each alarm with the specified metric.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeAlarmsForMetricResult |
withMetricAlarms(java.util.Collection<MetricAlarm> metricAlarms)
A list of information for each alarm with the specified metric.
|
DescribeAlarmsForMetricResult |
withMetricAlarms(MetricAlarm... metricAlarms)
A list of information for each alarm with the specified metric.
|
private SdkInternalList<MetricAlarm> metricAlarms
A list of information for each alarm with the specified metric.
public java.util.List<MetricAlarm> getMetricAlarms()
A list of information for each alarm with the specified metric.
public void setMetricAlarms(java.util.Collection<MetricAlarm> metricAlarms)
A list of information for each alarm with the specified metric.
metricAlarms
- A list of information for each alarm with the specified metric.public DescribeAlarmsForMetricResult withMetricAlarms(MetricAlarm... metricAlarms)
A list of information for each alarm with the specified metric.
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 each alarm with the specified metric.public DescribeAlarmsForMetricResult withMetricAlarms(java.util.Collection<MetricAlarm> metricAlarms)
A list of information for each alarm with the specified metric.
metricAlarms
- A list of information for each alarm with the specified metric.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 DescribeAlarmsForMetricResult clone()
clone
in class java.lang.Object