Class DescribeAlarmsForMetricRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.cloudwatch.model.DescribeAlarmsForMetricRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class DescribeAlarmsForMetricRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description DescribeAlarmsForMetricRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeAlarmsForMetricRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
List<Dimension>
getDimensions()
The list of dimensions associated with the metric.String
getMetricName()
The name of the metric.String
getNamespace()
The namespace of the metric.Integer
getPeriod()
The period in seconds over which the statistic is applied.String
getStatistic()
The statistic for the metric.String
getUnit()
The unit for the metric.int
hashCode()
void
setDimensions(Collection<Dimension> dimensions)
The list of dimensions associated with the metric.void
setMetricName(String metricName)
The name of the metric.void
setNamespace(String namespace)
The namespace of the metric.void
setPeriod(Integer period)
The period in seconds over which the statistic is applied.void
setStatistic(Statistic statistic)
The statistic for the metric.void
setStatistic(String statistic)
The statistic for the metric.void
setUnit(StandardUnit unit)
The unit for the metric.void
setUnit(String unit)
The unit for the metric.String
toString()
Returns a string representation of this object; useful for testing and debugging.DescribeAlarmsForMetricRequest
withDimensions(Dimension... dimensions)
The list of dimensions associated with the metric.DescribeAlarmsForMetricRequest
withDimensions(Collection<Dimension> dimensions)
The list of dimensions associated with the metric.DescribeAlarmsForMetricRequest
withMetricName(String metricName)
The name of the metric.DescribeAlarmsForMetricRequest
withNamespace(String namespace)
The namespace of the metric.DescribeAlarmsForMetricRequest
withPeriod(Integer period)
The period in seconds over which the statistic is applied.DescribeAlarmsForMetricRequest
withStatistic(Statistic statistic)
The statistic for the metric.DescribeAlarmsForMetricRequest
withStatistic(String statistic)
The statistic for the metric.DescribeAlarmsForMetricRequest
withUnit(StandardUnit unit)
The unit for the metric.DescribeAlarmsForMetricRequest
withUnit(String unit)
The unit for the metric.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
-
-
-
Method Detail
-
setMetricName
public void setMetricName(String metricName)
The name of the metric.
- Parameters:
metricName
- The name of the metric.
-
getMetricName
public String getMetricName()
The name of the metric.
- Returns:
- The name of the metric.
-
withMetricName
public DescribeAlarmsForMetricRequest withMetricName(String metricName)
The name of the metric.
- Parameters:
metricName
- The name of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNamespace
public void setNamespace(String namespace)
The namespace of the metric.
- Parameters:
namespace
- The namespace of the metric.
-
getNamespace
public String getNamespace()
The namespace of the metric.
- Returns:
- The namespace of the metric.
-
withNamespace
public DescribeAlarmsForMetricRequest withNamespace(String namespace)
The namespace of the metric.
- Parameters:
namespace
- The namespace of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatistic
public void setStatistic(String statistic)
The statistic for the metric.
- Parameters:
statistic
- The statistic for the metric.- See Also:
Statistic
-
getStatistic
public String getStatistic()
The statistic for the metric.
- Returns:
- The statistic for the metric.
- See Also:
Statistic
-
withStatistic
public DescribeAlarmsForMetricRequest withStatistic(String statistic)
The statistic for the metric.
- Parameters:
statistic
- The statistic for the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Statistic
-
setStatistic
public void setStatistic(Statistic statistic)
The statistic for the metric.
- Parameters:
statistic
- The statistic for the metric.- See Also:
Statistic
-
withStatistic
public DescribeAlarmsForMetricRequest withStatistic(Statistic statistic)
The statistic for the metric.
- Parameters:
statistic
- The statistic for the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Statistic
-
getDimensions
public 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.
- Returns:
- 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.
-
setDimensions
public void setDimensions(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.
- Parameters:
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.
-
withDimensions
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)
orwithDimensions(java.util.Collection)
if you want to override the existing values.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withDimensions
public DescribeAlarmsForMetricRequest withDimensions(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPeriod
public void setPeriod(Integer period)
The period in seconds over which the statistic is applied.
- Parameters:
period
- The period in seconds over which the statistic is applied.
-
getPeriod
public Integer getPeriod()
The period in seconds over which the statistic is applied.
- Returns:
- The period in seconds over which the statistic is applied.
-
withPeriod
public DescribeAlarmsForMetricRequest withPeriod(Integer period)
The period in seconds over which the statistic is applied.
- Parameters:
period
- The period in seconds over which the statistic is applied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUnit
public void setUnit(String unit)
The unit for the metric.
- Parameters:
unit
- The unit for the metric.- See Also:
StandardUnit
-
getUnit
public String getUnit()
The unit for the metric.
- Returns:
- The unit for the metric.
- See Also:
StandardUnit
-
withUnit
public DescribeAlarmsForMetricRequest withUnit(String unit)
The unit for the metric.
- Parameters:
unit
- The unit for the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StandardUnit
-
setUnit
public void setUnit(StandardUnit unit)
The unit for the metric.
- Parameters:
unit
- The unit for the metric.- See Also:
StandardUnit
-
withUnit
public DescribeAlarmsForMetricRequest withUnit(StandardUnit unit)
The unit for the metric.
- Parameters:
unit
- The unit for the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StandardUnit
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeAlarmsForMetricRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-