@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricInfo extends Object implements Serializable, Cloneable, StructuredPojo
Information about the CloudWatch metric that reflects quota usage.
Constructor and Description |
---|
MetricInfo() |
Modifier and Type | Method and Description |
---|---|
MetricInfo |
addMetricDimensionsEntry(String key,
String value)
Add a single MetricDimensions entry
|
MetricInfo |
clearMetricDimensionsEntries()
Removes all the entries added into MetricDimensions.
|
MetricInfo |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getMetricDimensions()
The metric dimension.
|
String |
getMetricName()
The name of the metric.
|
String |
getMetricNamespace()
The namespace of the metric.
|
String |
getMetricStatisticRecommendation()
The metric statistic that we recommend you use when determining quota usage.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMetricDimensions(Map<String,String> metricDimensions)
The metric dimension.
|
void |
setMetricName(String metricName)
The name of the metric.
|
void |
setMetricNamespace(String metricNamespace)
The namespace of the metric.
|
void |
setMetricStatisticRecommendation(String metricStatisticRecommendation)
The metric statistic that we recommend you use when determining quota usage.
|
String |
toString()
Returns a string representation of this object.
|
MetricInfo |
withMetricDimensions(Map<String,String> metricDimensions)
The metric dimension.
|
MetricInfo |
withMetricName(String metricName)
The name of the metric.
|
MetricInfo |
withMetricNamespace(String metricNamespace)
The namespace of the metric.
|
MetricInfo |
withMetricStatisticRecommendation(String metricStatisticRecommendation)
The metric statistic that we recommend you use when determining quota usage.
|
public void setMetricNamespace(String metricNamespace)
The namespace of the metric.
metricNamespace
- The namespace of the metric.public String getMetricNamespace()
The namespace of the metric.
public MetricInfo withMetricNamespace(String metricNamespace)
The namespace of the metric.
metricNamespace
- 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 MetricInfo withMetricName(String metricName)
The name of the metric.
metricName
- The name of the metric.public Map<String,String> getMetricDimensions()
The metric dimension. This is a name/value pair that is part of the identity of a metric.
public void setMetricDimensions(Map<String,String> metricDimensions)
The metric dimension. This is a name/value pair that is part of the identity of a metric.
metricDimensions
- The metric dimension. This is a name/value pair that is part of the identity of a metric.public MetricInfo withMetricDimensions(Map<String,String> metricDimensions)
The metric dimension. This is a name/value pair that is part of the identity of a metric.
metricDimensions
- The metric dimension. This is a name/value pair that is part of the identity of a metric.public MetricInfo addMetricDimensionsEntry(String key, String value)
public MetricInfo clearMetricDimensionsEntries()
public void setMetricStatisticRecommendation(String metricStatisticRecommendation)
The metric statistic that we recommend you use when determining quota usage.
metricStatisticRecommendation
- The metric statistic that we recommend you use when determining quota usage.public String getMetricStatisticRecommendation()
The metric statistic that we recommend you use when determining quota usage.
public MetricInfo withMetricStatisticRecommendation(String metricStatisticRecommendation)
The metric statistic that we recommend you use when determining quota usage.
metricStatisticRecommendation
- The metric statistic that we recommend you use when determining quota usage.public String toString()
toString
in class Object
Object.toString()
public MetricInfo clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.