@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeMetricCollectionTypesResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DescribeMetricCollectionTypesResult() |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<MetricCollectionType> getMetrics()
One or more metrics.
public void setMetrics(Collection<MetricCollectionType> metrics)
One or more metrics.
metrics
- One or more metrics.public DescribeMetricCollectionTypesResult withMetrics(MetricCollectionType... metrics)
One or more metrics.
NOTE: This method appends the values to the existing list (if any). Use
setMetrics(java.util.Collection)
or withMetrics(java.util.Collection)
if you want to override
the existing values.
metrics
- One or more metrics.public DescribeMetricCollectionTypesResult withMetrics(Collection<MetricCollectionType> metrics)
One or more metrics.
metrics
- One or more metrics.public List<MetricGranularityType> getGranularities()
The granularities for the metrics.
public void setGranularities(Collection<MetricGranularityType> granularities)
The granularities for the metrics.
granularities
- The granularities for the metrics.public DescribeMetricCollectionTypesResult withGranularities(MetricGranularityType... granularities)
The granularities for the metrics.
NOTE: This method appends the values to the existing list (if any). Use
setGranularities(java.util.Collection)
or withGranularities(java.util.Collection)
if you want
to override the existing values.
granularities
- The granularities for the metrics.public DescribeMetricCollectionTypesResult withGranularities(Collection<MetricGranularityType> granularities)
The granularities for the metrics.
granularities
- The granularities for the metrics.public String toString()
toString
in class Object
Object.toString()
public DescribeMetricCollectionTypesResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.