public class GetMetricStatisticsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
GetMetricStatisticsRequest() |
Modifier and Type | Method and Description |
---|---|
GetMetricStatisticsRequest |
clone() |
boolean |
equals(Object obj) |
List<Dimension> |
getDimensions()
A list of dimensions describing qualities of the metric.
|
Date |
getEndTime()
The time stamp to use for determining the last datapoint to return.
|
String |
getMetricName()
The name of the metric.
|
String |
getNamespace()
The namespace of the metric.
|
Integer |
getPeriod()
The granularity, in seconds, of the returned datapoints.
|
Date |
getStartTime()
The time stamp to use for determining the first datapoint to return.
|
List<String> |
getStatistics()
The metric statistics to return.
|
String |
getUnit()
The unit for the metric.
|
int |
hashCode() |
void |
setDimensions(Collection<Dimension> dimensions)
A list of dimensions describing qualities of the metric.
|
void |
setEndTime(Date endTime)
The time stamp to use for determining the last datapoint to return.
|
void |
setMetricName(String metricName)
The name of the metric.
|
void |
setNamespace(String namespace)
The namespace of the metric.
|
void |
setPeriod(Integer period)
The granularity, in seconds, of the returned datapoints.
|
void |
setStartTime(Date startTime)
The time stamp to use for determining the first datapoint to return.
|
void |
setStatistics(Collection<String> statistics)
The metric statistics to return.
|
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.
|
GetMetricStatisticsRequest |
withDimensions(Collection<Dimension> dimensions)
A list of dimensions describing qualities of the metric.
|
GetMetricStatisticsRequest |
withDimensions(Dimension... dimensions)
A list of dimensions describing qualities of the metric.
|
GetMetricStatisticsRequest |
withEndTime(Date endTime)
The time stamp to use for determining the last datapoint to return.
|
GetMetricStatisticsRequest |
withMetricName(String metricName)
The name of the metric.
|
GetMetricStatisticsRequest |
withNamespace(String namespace)
The namespace of the metric.
|
GetMetricStatisticsRequest |
withPeriod(Integer period)
The granularity, in seconds, of the returned datapoints.
|
GetMetricStatisticsRequest |
withStartTime(Date startTime)
The time stamp to use for determining the first datapoint to return.
|
GetMetricStatisticsRequest |
withStatistics(Collection<String> statistics)
The metric statistics to return.
|
GetMetricStatisticsRequest |
withStatistics(Statistic... statistics)
The metric statistics to return.
|
GetMetricStatisticsRequest |
withStatistics(String... statistics)
The metric statistics to return.
|
GetMetricStatisticsRequest |
withUnit(StandardUnit unit)
The unit for the metric.
|
GetMetricStatisticsRequest |
withUnit(String unit)
The unit for the metric.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
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 GetMetricStatisticsRequest withNamespace(String namespace)
The namespace of the metric.
namespace
- The namespace of the metric.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 GetMetricStatisticsRequest withMetricName(String metricName)
The name of the metric.
metricName
- The name of the metric.public List<Dimension> getDimensions()
A list of dimensions describing qualities of the metric.
public void setDimensions(Collection<Dimension> dimensions)
A list of dimensions describing qualities of the metric.
dimensions
- A list of dimensions describing qualities of the metric.public GetMetricStatisticsRequest withDimensions(Dimension... dimensions)
A list of dimensions describing qualities of the metric.
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
- A list of dimensions describing qualities of the metric.public GetMetricStatisticsRequest withDimensions(Collection<Dimension> dimensions)
A list of dimensions describing qualities of the metric.
dimensions
- A list of dimensions describing qualities of the metric.public void setStartTime(Date startTime)
The time stamp to use for determining the first datapoint to return. The value specified is inclusive; results include datapoints with the time stamp specified.
startTime
- The time stamp to use for determining the first datapoint to
return. The value specified is inclusive; results include
datapoints with the time stamp specified. public Date getStartTime()
The time stamp to use for determining the first datapoint to return. The value specified is inclusive; results include datapoints with the time stamp specified.
public GetMetricStatisticsRequest withStartTime(Date startTime)
The time stamp to use for determining the first datapoint to return. The value specified is inclusive; results include datapoints with the time stamp specified.
startTime
- The time stamp to use for determining the first datapoint to
return. The value specified is inclusive; results include
datapoints with the time stamp specified. public void setEndTime(Date endTime)
The time stamp to use for determining the last datapoint to return. The value specified is exclusive; results will include datapoints up to the time stamp specified.
endTime
- The time stamp to use for determining the last datapoint to
return. The value specified is exclusive; results will include
datapoints up to the time stamp specified.public Date getEndTime()
The time stamp to use for determining the last datapoint to return. The value specified is exclusive; results will include datapoints up to the time stamp specified.
public GetMetricStatisticsRequest withEndTime(Date endTime)
The time stamp to use for determining the last datapoint to return. The value specified is exclusive; results will include datapoints up to the time stamp specified.
endTime
- The time stamp to use for determining the last datapoint to
return. The value specified is exclusive; results will include
datapoints up to the time stamp specified.public void setPeriod(Integer period)
The granularity, in seconds, of the returned datapoints.
Period
must be at least 60 seconds and must be a multiple of
60. The default value is 60.
period
- The granularity, in seconds, of the returned datapoints.
Period
must be at least 60 seconds and must be a
multiple of 60. The default value is 60.public Integer getPeriod()
The granularity, in seconds, of the returned datapoints.
Period
must be at least 60 seconds and must be a multiple of
60. The default value is 60.
Period
must be at least 60 seconds and must be a
multiple of 60. The default value is 60.public GetMetricStatisticsRequest withPeriod(Integer period)
The granularity, in seconds, of the returned datapoints.
Period
must be at least 60 seconds and must be a multiple of
60. The default value is 60.
period
- The granularity, in seconds, of the returned datapoints.
Period
must be at least 60 seconds and must be a
multiple of 60. The default value is 60.public List<String> getStatistics()
The metric statistics to return.
Statistic
public void setStatistics(Collection<String> statistics)
The metric statistics to return.
statistics
- The metric statistics to return.Statistic
public GetMetricStatisticsRequest withStatistics(String... statistics)
The metric statistics to return.
NOTE: This method appends the values to the existing list (if
any). Use setStatistics(java.util.Collection)
or
withStatistics(java.util.Collection)
if you want to override the
existing values.
statistics
- The metric statistics to return.Statistic
public GetMetricStatisticsRequest withStatistics(Collection<String> statistics)
The metric statistics to return.
statistics
- The metric statistics to return.Statistic
public GetMetricStatisticsRequest withStatistics(Statistic... statistics)
The metric statistics to return.
statistics
- The metric statistics to return.Statistic
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 GetMetricStatisticsRequest 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 GetMetricStatisticsRequest 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 GetMetricStatisticsRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2016. All rights reserved.