@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()
The metrics.
public void setMetrics(Collection<MetricCollectionType> metrics)
The metrics.
metrics
- The metrics.public DescribeMetricCollectionTypesResult withMetrics(MetricCollectionType... metrics)
The 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
- The metrics.public DescribeMetricCollectionTypesResult withMetrics(Collection<MetricCollectionType> metrics)
The metrics.
metrics
- The 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()