Class DescribeAlarmsForMetricRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The list of dimensions associated with the metric.The name of the metric.The namespace of the metric.The period in seconds over which the statistic is applied.The statistic for the metric.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
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
The unit for the metric.toString()
Returns a string representation of this object; useful for testing and debugging.withDimensions
(Dimension... dimensions) The list of dimensions associated with the metric.withDimensions
(Collection<Dimension> dimensions) The list of dimensions associated with the metric.withMetricName
(String metricName) The name of the metric.withNamespace
(String namespace) The namespace of the metric.withPeriod
(Integer period) The period in seconds over which the statistic is applied.withStatistic
(Statistic statistic) The statistic for the metric.withStatistic
(String statistic) The statistic for the metric.withUnit
(StandardUnit unit) The unit for the metric.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
-
Constructor Details
-
DescribeAlarmsForMetricRequest
public DescribeAlarmsForMetricRequest()
-
-
Method Details
-
setMetricName
The name of the metric.
- Parameters:
metricName
- The name of the metric.
-
getMetricName
The name of the metric.
- Returns:
- The name of the metric.
-
withMetricName
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
The namespace of the metric.
- Parameters:
namespace
- The namespace of the metric.
-
getNamespace
The namespace of the metric.
- Returns:
- The namespace of the metric.
-
withNamespace
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
The statistic for the metric.
- Parameters:
statistic
- The statistic for the metric.- See Also:
-
getStatistic
The statistic for the metric.
- Returns:
- The statistic for the metric.
- See Also:
-
withStatistic
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:
-
setStatistic
The statistic for the metric.
- Parameters:
statistic
- The statistic for the metric.- See Also:
-
withStatistic
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:
-
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
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
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
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
The period in seconds over which the statistic is applied.
- Parameters:
period
- The period in seconds over which the statistic is applied.
-
getPeriod
The period in seconds over which the statistic is applied.
- Returns:
- The period in seconds over which the statistic is applied.
-
withPeriod
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
The unit for the metric.
- Parameters:
unit
- The unit for the metric.- See Also:
-
getUnit
The unit for the metric.
- Returns:
- The unit for the metric.
- See Also:
-
withUnit
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:
-
setUnit
The unit for the metric.
- Parameters:
unit
- The unit for the metric.- See Also:
-
withUnit
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:
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
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:
-