public class DescribeAlarmsForMetricRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<Dimension> |
dimensions
The list of dimensions associated with the metric.
|
private java.lang.String |
metricName
The name of the metric.
|
private java.lang.String |
namespace
The namespace of the metric.
|
private java.lang.Integer |
period
The period in seconds over which the statistic is applied.
|
private java.lang.String |
statistic
The statistic for the metric.
|
private java.lang.String |
unit
The unit for the metric.
|
NOOP
Constructor and Description |
---|
DescribeAlarmsForMetricRequest() |
Modifier and Type | Method and Description |
---|---|
DescribeAlarmsForMetricRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<Dimension> |
getDimensions()
The list of dimensions associated with the metric.
|
java.lang.String |
getMetricName()
The name of the metric.
|
java.lang.String |
getNamespace()
The namespace of the metric.
|
java.lang.Integer |
getPeriod()
The period in seconds over which the statistic is applied.
|
java.lang.String |
getStatistic()
The statistic for the metric.
|
java.lang.String |
getUnit()
The unit for the metric.
|
int |
hashCode() |
void |
setDimensions(java.util.Collection<Dimension> dimensions)
The list of dimensions associated with the metric.
|
void |
setMetricName(java.lang.String metricName)
The name of the metric.
|
void |
setNamespace(java.lang.String namespace)
The namespace of the metric.
|
void |
setPeriod(java.lang.Integer period)
The period in seconds over which the statistic is applied.
|
void |
setStatistic(Statistic statistic)
The statistic for the metric.
|
void |
setStatistic(java.lang.String statistic)
The statistic for the metric.
|
void |
setUnit(StandardUnit unit)
The unit for the metric.
|
void |
setUnit(java.lang.String unit)
The unit for the metric.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeAlarmsForMetricRequest |
withDimensions(java.util.Collection<Dimension> dimensions)
The list of dimensions associated with the metric.
|
DescribeAlarmsForMetricRequest |
withDimensions(Dimension... dimensions)
The list of dimensions associated with the metric.
|
DescribeAlarmsForMetricRequest |
withMetricName(java.lang.String metricName)
The name of the metric.
|
DescribeAlarmsForMetricRequest |
withNamespace(java.lang.String namespace)
The namespace of the metric.
|
DescribeAlarmsForMetricRequest |
withPeriod(java.lang.Integer period)
The period in seconds over which the statistic is applied.
|
DescribeAlarmsForMetricRequest |
withStatistic(Statistic statistic)
The statistic for the metric.
|
DescribeAlarmsForMetricRequest |
withStatistic(java.lang.String statistic)
The statistic for the metric.
|
DescribeAlarmsForMetricRequest |
withUnit(StandardUnit unit)
The unit for the metric.
|
DescribeAlarmsForMetricRequest |
withUnit(java.lang.String unit)
The unit for the metric.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String metricName
The name of the metric.
private java.lang.String namespace
The namespace of the metric.
private java.lang.String statistic
The statistic for the metric.
private SdkInternalList<Dimension> dimensions
The list of dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the DescribeAlarmsForMetric to succeed.
private java.lang.Integer period
The period in seconds over which the statistic is applied.
private java.lang.String unit
The unit for the metric.
public void setMetricName(java.lang.String metricName)
The name of the metric.
metricName
- The name of the metric.public java.lang.String getMetricName()
The name of the metric.
public DescribeAlarmsForMetricRequest withMetricName(java.lang.String metricName)
The name of the metric.
metricName
- The name of the metric.public void setNamespace(java.lang.String namespace)
The namespace of the metric.
namespace
- The namespace of the metric.public java.lang.String getNamespace()
The namespace of the metric.
public DescribeAlarmsForMetricRequest withNamespace(java.lang.String namespace)
The namespace of the metric.
namespace
- The namespace of the metric.public void setStatistic(java.lang.String statistic)
The statistic for the metric.
statistic
- The statistic for the metric.Statistic
public java.lang.String getStatistic()
The statistic for the metric.
Statistic
public DescribeAlarmsForMetricRequest withStatistic(java.lang.String statistic)
The statistic for the metric.
statistic
- The statistic for the metric.Statistic
public void setStatistic(Statistic statistic)
The statistic for the metric.
statistic
- The statistic for the metric.Statistic
public DescribeAlarmsForMetricRequest withStatistic(Statistic statistic)
The statistic for the metric.
statistic
- The statistic for the metric.Statistic
public java.util.List<Dimension> getDimensions()
The list of dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the DescribeAlarmsForMetric to succeed.
public void setDimensions(java.util.Collection<Dimension> dimensions)
The list of dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the DescribeAlarmsForMetric to succeed.
dimensions
- The list of dimensions associated with the metric. If the metric
has any associated dimensions, you must specify them in order for
the DescribeAlarmsForMetric to succeed.public DescribeAlarmsForMetricRequest withDimensions(Dimension... dimensions)
The list of dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the DescribeAlarmsForMetric to succeed.
NOTE: This method appends the values to the existing list (if
any). Use setDimensions(java.util.Collection)
or
withDimensions(java.util.Collection)
if you want to override the
existing values.
dimensions
- The list of dimensions associated with the metric. If the metric
has any associated dimensions, you must specify them in order for
the DescribeAlarmsForMetric to succeed.public DescribeAlarmsForMetricRequest withDimensions(java.util.Collection<Dimension> dimensions)
The list of dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the DescribeAlarmsForMetric to succeed.
dimensions
- The list of dimensions associated with the metric. If the metric
has any associated dimensions, you must specify them in order for
the DescribeAlarmsForMetric to succeed.public void setPeriod(java.lang.Integer period)
The period in seconds over which the statistic is applied.
period
- The period in seconds over which the statistic is applied.public java.lang.Integer getPeriod()
The period in seconds over which the statistic is applied.
public DescribeAlarmsForMetricRequest withPeriod(java.lang.Integer period)
The period in seconds over which the statistic is applied.
period
- The period in seconds over which the statistic is applied.public void setUnit(java.lang.String unit)
The unit for the metric.
unit
- The unit for the metric.StandardUnit
public java.lang.String getUnit()
The unit for the metric.
StandardUnit
public DescribeAlarmsForMetricRequest withUnit(java.lang.String unit)
The unit for the metric.
unit
- The unit for the metric.StandardUnit
public void setUnit(StandardUnit unit)
The unit for the metric.
unit
- The unit for the metric.StandardUnit
public DescribeAlarmsForMetricRequest withUnit(StandardUnit unit)
The unit for the metric.
unit
- The unit for the metric.StandardUnit
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 DescribeAlarmsForMetricRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()