@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CloudWatchMetricsDetail extends Object implements Serializable, Cloneable, StructuredPojo
Information about an Amazon CloudWatch metric.
Constructor and Description |
---|
CloudWatchMetricsDetail() |
Modifier and Type | Method and Description |
---|---|
CloudWatchMetricsDetail |
clone() |
boolean |
equals(Object obj) |
List<CloudWatchMetricsDimension> |
getDimensions()
An array of CloudWatch dimensions associated with
|
CloudWatchMetricsDataSummary |
getMetricDataSummary()
This object returns anomaly metric data.
|
String |
getMetricName()
The name of the CloudWatch metric.
|
String |
getNamespace()
The namespace of the CloudWatch metric.
|
Integer |
getPeriod()
The length of time associated with the CloudWatch metric in number of seconds.
|
String |
getStat()
The type of statistic associated with the CloudWatch metric.
|
String |
getUnit()
The unit of measure used for the CloudWatch metric.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDimensions(Collection<CloudWatchMetricsDimension> dimensions)
An array of CloudWatch dimensions associated with
|
void |
setMetricDataSummary(CloudWatchMetricsDataSummary metricDataSummary)
This object returns anomaly metric data.
|
void |
setMetricName(String metricName)
The name of the CloudWatch metric.
|
void |
setNamespace(String namespace)
The namespace of the CloudWatch metric.
|
void |
setPeriod(Integer period)
The length of time associated with the CloudWatch metric in number of seconds.
|
void |
setStat(String stat)
The type of statistic associated with the CloudWatch metric.
|
void |
setUnit(String unit)
The unit of measure used for the CloudWatch metric.
|
String |
toString()
Returns a string representation of this object.
|
CloudWatchMetricsDetail |
withDimensions(CloudWatchMetricsDimension... dimensions)
An array of CloudWatch dimensions associated with
|
CloudWatchMetricsDetail |
withDimensions(Collection<CloudWatchMetricsDimension> dimensions)
An array of CloudWatch dimensions associated with
|
CloudWatchMetricsDetail |
withMetricDataSummary(CloudWatchMetricsDataSummary metricDataSummary)
This object returns anomaly metric data.
|
CloudWatchMetricsDetail |
withMetricName(String metricName)
The name of the CloudWatch metric.
|
CloudWatchMetricsDetail |
withNamespace(String namespace)
The namespace of the CloudWatch metric.
|
CloudWatchMetricsDetail |
withPeriod(Integer period)
The length of time associated with the CloudWatch metric in number of seconds.
|
CloudWatchMetricsDetail |
withStat(CloudWatchMetricsStat stat)
The type of statistic associated with the CloudWatch metric.
|
CloudWatchMetricsDetail |
withStat(String stat)
The type of statistic associated with the CloudWatch metric.
|
CloudWatchMetricsDetail |
withUnit(String unit)
The unit of measure used for the CloudWatch metric.
|
public void setMetricName(String metricName)
The name of the CloudWatch metric.
metricName
- The name of the CloudWatch metric.public String getMetricName()
The name of the CloudWatch metric.
public CloudWatchMetricsDetail withMetricName(String metricName)
The name of the CloudWatch metric.
metricName
- The name of the CloudWatch metric.public void setNamespace(String namespace)
The namespace of the CloudWatch metric. A namespace is a container for CloudWatch metrics.
namespace
- The namespace of the CloudWatch metric. A namespace is a container for CloudWatch metrics.public String getNamespace()
The namespace of the CloudWatch metric. A namespace is a container for CloudWatch metrics.
public CloudWatchMetricsDetail withNamespace(String namespace)
The namespace of the CloudWatch metric. A namespace is a container for CloudWatch metrics.
namespace
- The namespace of the CloudWatch metric. A namespace is a container for CloudWatch metrics.public List<CloudWatchMetricsDimension> getDimensions()
An array of CloudWatch dimensions associated with
public void setDimensions(Collection<CloudWatchMetricsDimension> dimensions)
An array of CloudWatch dimensions associated with
dimensions
- An array of CloudWatch dimensions associated withpublic CloudWatchMetricsDetail withDimensions(CloudWatchMetricsDimension... dimensions)
An array of CloudWatch dimensions associated with
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
- An array of CloudWatch dimensions associated withpublic CloudWatchMetricsDetail withDimensions(Collection<CloudWatchMetricsDimension> dimensions)
An array of CloudWatch dimensions associated with
dimensions
- An array of CloudWatch dimensions associated withpublic void setStat(String stat)
The type of statistic associated with the CloudWatch metric. For more information, see Statistics in the Amazon CloudWatch User Guide.
stat
- The type of statistic associated with the CloudWatch metric. For more information, see Statistics in the Amazon CloudWatch User Guide.CloudWatchMetricsStat
public String getStat()
The type of statistic associated with the CloudWatch metric. For more information, see Statistics in the Amazon CloudWatch User Guide.
CloudWatchMetricsStat
public CloudWatchMetricsDetail withStat(String stat)
The type of statistic associated with the CloudWatch metric. For more information, see Statistics in the Amazon CloudWatch User Guide.
stat
- The type of statistic associated with the CloudWatch metric. For more information, see Statistics in the Amazon CloudWatch User Guide.CloudWatchMetricsStat
public CloudWatchMetricsDetail withStat(CloudWatchMetricsStat stat)
The type of statistic associated with the CloudWatch metric. For more information, see Statistics in the Amazon CloudWatch User Guide.
stat
- The type of statistic associated with the CloudWatch metric. For more information, see Statistics in the Amazon CloudWatch User Guide.CloudWatchMetricsStat
public void setUnit(String unit)
The unit of measure used for the CloudWatch metric. For example, Bytes
, Seconds
,
Count
, and Percent
.
unit
- The unit of measure used for the CloudWatch metric. For example, Bytes
, Seconds
,
Count
, and Percent
.public String getUnit()
The unit of measure used for the CloudWatch metric. For example, Bytes
, Seconds
,
Count
, and Percent
.
Bytes
, Seconds
, Count
, and Percent
.public CloudWatchMetricsDetail withUnit(String unit)
The unit of measure used for the CloudWatch metric. For example, Bytes
, Seconds
,
Count
, and Percent
.
unit
- The unit of measure used for the CloudWatch metric. For example, Bytes
, Seconds
,
Count
, and Percent
.public void setPeriod(Integer period)
The length of time associated with the CloudWatch metric in number of seconds.
period
- The length of time associated with the CloudWatch metric in number of seconds.public Integer getPeriod()
The length of time associated with the CloudWatch metric in number of seconds.
public CloudWatchMetricsDetail withPeriod(Integer period)
The length of time associated with the CloudWatch metric in number of seconds.
period
- The length of time associated with the CloudWatch metric in number of seconds.public void setMetricDataSummary(CloudWatchMetricsDataSummary metricDataSummary)
This object returns anomaly metric data.
metricDataSummary
- This object returns anomaly metric data.public CloudWatchMetricsDataSummary getMetricDataSummary()
This object returns anomaly metric data.
public CloudWatchMetricsDetail withMetricDataSummary(CloudWatchMetricsDataSummary metricDataSummary)
This object returns anomaly metric data.
metricDataSummary
- This object returns anomaly metric data.public String toString()
toString
in class Object
Object.toString()
public CloudWatchMetricsDetail clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.