/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace CloudWatch { namespace Model { /** *

Represents a set of statistics that describes a specific metric. *

See Also:

AWS * API Reference

*/ class StatisticSet { public: AWS_CLOUDWATCH_API StatisticSet(); AWS_CLOUDWATCH_API StatisticSet(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDWATCH_API StatisticSet& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The number of samples used for the statistic set.

*/ inline double GetSampleCount() const{ return m_sampleCount; } /** *

The number of samples used for the statistic set.

*/ inline bool SampleCountHasBeenSet() const { return m_sampleCountHasBeenSet; } /** *

The number of samples used for the statistic set.

*/ inline void SetSampleCount(double value) { m_sampleCountHasBeenSet = true; m_sampleCount = value; } /** *

The number of samples used for the statistic set.

*/ inline StatisticSet& WithSampleCount(double value) { SetSampleCount(value); return *this;} /** *

The sum of values for the sample set.

*/ inline double GetSum() const{ return m_sum; } /** *

The sum of values for the sample set.

*/ inline bool SumHasBeenSet() const { return m_sumHasBeenSet; } /** *

The sum of values for the sample set.

*/ inline void SetSum(double value) { m_sumHasBeenSet = true; m_sum = value; } /** *

The sum of values for the sample set.

*/ inline StatisticSet& WithSum(double value) { SetSum(value); return *this;} /** *

The minimum value of the sample set.

*/ inline double GetMinimum() const{ return m_minimum; } /** *

The minimum value of the sample set.

*/ inline bool MinimumHasBeenSet() const { return m_minimumHasBeenSet; } /** *

The minimum value of the sample set.

*/ inline void SetMinimum(double value) { m_minimumHasBeenSet = true; m_minimum = value; } /** *

The minimum value of the sample set.

*/ inline StatisticSet& WithMinimum(double value) { SetMinimum(value); return *this;} /** *

The maximum value of the sample set.

*/ inline double GetMaximum() const{ return m_maximum; } /** *

The maximum value of the sample set.

*/ inline bool MaximumHasBeenSet() const { return m_maximumHasBeenSet; } /** *

The maximum value of the sample set.

*/ inline void SetMaximum(double value) { m_maximumHasBeenSet = true; m_maximum = value; } /** *

The maximum value of the sample set.

*/ inline StatisticSet& WithMaximum(double value) { SetMaximum(value); return *this;} private: double m_sampleCount; bool m_sampleCountHasBeenSet = false; double m_sum; bool m_sumHasBeenSet = false; double m_minimum; bool m_minimumHasBeenSet = false; double m_maximum; bool m_maximumHasBeenSet = false; }; } // namespace Model } // namespace CloudWatch } // namespace Aws