@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeAlarmsForMetricRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
DescribeAlarmsForMetricRequest() |
Modifier and Type | Method and Description |
---|---|
DescribeAlarmsForMetricRequest |
clone() |
boolean |
equals(Object obj) |
List<Dimension> |
getDimensions()
The dimensions associated with the metric.
|
String |
getExtendedStatistic()
The percentile statistic for 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, other than percentiles.
|
String |
getUnit()
The unit for the metric.
|
int |
hashCode() |
void |
setDimensions(Collection<Dimension> dimensions)
The dimensions associated with the metric.
|
void |
setExtendedStatistic(String extendedStatistic)
The percentile statistic for 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, other than percentiles.
|
void |
setStatistic(String statistic)
The statistic for the metric, other than percentiles.
|
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(Collection<Dimension> dimensions)
The dimensions associated with the metric.
|
DescribeAlarmsForMetricRequest |
withDimensions(Dimension... dimensions)
The dimensions associated with the metric.
|
DescribeAlarmsForMetricRequest |
withExtendedStatistic(String extendedStatistic)
The percentile statistic for 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, other than percentiles.
|
DescribeAlarmsForMetricRequest |
withStatistic(String statistic)
The statistic for the metric, other than percentiles.
|
DescribeAlarmsForMetricRequest |
withUnit(StandardUnit unit)
The unit for the metric.
|
DescribeAlarmsForMetricRequest |
withUnit(String unit)
The unit for the metric.
|
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setMetricName(String metricName)
The name of the metric.
metricName
- The name of the metric.public String getMetricName()
The name of the metric.
public DescribeAlarmsForMetricRequest withMetricName(String metricName)
The name of the metric.
metricName
- The name of the metric.public void setNamespace(String namespace)
The namespace of the metric.
namespace
- The namespace of the metric.public String getNamespace()
The namespace of the metric.
public DescribeAlarmsForMetricRequest withNamespace(String namespace)
The namespace of the metric.
namespace
- The namespace of the metric.public void setStatistic(String statistic)
The statistic for the metric, other than percentiles. For percentile statistics, use
ExtendedStatistics
.
statistic
- The statistic for the metric, other than percentiles. For percentile statistics, use
ExtendedStatistics
.Statistic
public String getStatistic()
The statistic for the metric, other than percentiles. For percentile statistics, use
ExtendedStatistics
.
ExtendedStatistics
.Statistic
public DescribeAlarmsForMetricRequest withStatistic(String statistic)
The statistic for the metric, other than percentiles. For percentile statistics, use
ExtendedStatistics
.
statistic
- The statistic for the metric, other than percentiles. For percentile statistics, use
ExtendedStatistics
.Statistic
public void setStatistic(Statistic statistic)
The statistic for the metric, other than percentiles. For percentile statistics, use
ExtendedStatistics
.
statistic
- The statistic for the metric, other than percentiles. For percentile statistics, use
ExtendedStatistics
.Statistic
public DescribeAlarmsForMetricRequest withStatistic(Statistic statistic)
The statistic for the metric, other than percentiles. For percentile statistics, use
ExtendedStatistics
.
statistic
- The statistic for the metric, other than percentiles. For percentile statistics, use
ExtendedStatistics
.Statistic
public void setExtendedStatistic(String extendedStatistic)
The percentile statistic for the metric. Specify a value between p0.0 and p100.
extendedStatistic
- The percentile statistic for the metric. Specify a value between p0.0 and p100.public String getExtendedStatistic()
The percentile statistic for the metric. Specify a value between p0.0 and p100.
public DescribeAlarmsForMetricRequest withExtendedStatistic(String extendedStatistic)
The percentile statistic for the metric. Specify a value between p0.0 and p100.
extendedStatistic
- The percentile statistic for the metric. Specify a value between p0.0 and p100.public List<Dimension> getDimensions()
The dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the call to succeed.
public void setDimensions(Collection<Dimension> dimensions)
The dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the call to succeed.
dimensions
- The dimensions associated with the metric. If the metric has any associated dimensions, you must specify
them in order for the call to succeed.public DescribeAlarmsForMetricRequest withDimensions(Dimension... dimensions)
The dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the call 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 dimensions associated with the metric. If the metric has any associated dimensions, you must specify
them in order for the call to succeed.public DescribeAlarmsForMetricRequest withDimensions(Collection<Dimension> dimensions)
The dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the call to succeed.
dimensions
- The dimensions associated with the metric. If the metric has any associated dimensions, you must specify
them in order for the call to succeed.public void setPeriod(Integer period)
The period, in seconds, over which the statistic is applied.
period
- The period, in seconds, over which the statistic is applied.public Integer getPeriod()
The period, in seconds, over which the statistic is applied.
public DescribeAlarmsForMetricRequest withPeriod(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(String unit)
The unit for the metric.
unit
- The unit for the metric.StandardUnit
public String getUnit()
The unit for the metric.
StandardUnit
public DescribeAlarmsForMetricRequest withUnit(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 String toString()
toString
in class Object
Object.toString()
public DescribeAlarmsForMetricRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2018. All rights reserved.