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

A map of key-value pairs for all supported statistics. For issues with * missing or unexpected values for this API, consult * Fleet indexing troubleshooting guide.

See Also:

AWS API * Reference

*/ class Statistics { public: AWS_IOT_API Statistics(); AWS_IOT_API Statistics(Aws::Utils::Json::JsonView jsonValue); AWS_IOT_API Statistics& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The count of things that match the query string criteria and contain a valid * aggregation field value.

*/ inline int GetCount() const{ return m_count; } /** *

The count of things that match the query string criteria and contain a valid * aggregation field value.

*/ inline bool CountHasBeenSet() const { return m_countHasBeenSet; } /** *

The count of things that match the query string criteria and contain a valid * aggregation field value.

*/ inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; } /** *

The count of things that match the query string criteria and contain a valid * aggregation field value.

*/ inline Statistics& WithCount(int value) { SetCount(value); return *this;} /** *

The average of the aggregated field values.

*/ inline double GetAverage() const{ return m_average; } /** *

The average of the aggregated field values.

*/ inline bool AverageHasBeenSet() const { return m_averageHasBeenSet; } /** *

The average of the aggregated field values.

*/ inline void SetAverage(double value) { m_averageHasBeenSet = true; m_average = value; } /** *

The average of the aggregated field values.

*/ inline Statistics& WithAverage(double value) { SetAverage(value); return *this;} /** *

The sum of the aggregated field values.

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

The sum of the aggregated field values.

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

The sum of the aggregated field values.

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

The sum of the aggregated field values.

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

The minimum aggregated field value.

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

The minimum aggregated field value.

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

The minimum aggregated field value.

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

The minimum aggregated field value.

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

The maximum aggregated field value.

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

The maximum aggregated field value.

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

The maximum aggregated field value.

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

The maximum aggregated field value.

*/ inline Statistics& WithMaximum(double value) { SetMaximum(value); return *this;} /** *

The sum of the squares of the aggregated field values.

*/ inline double GetSumOfSquares() const{ return m_sumOfSquares; } /** *

The sum of the squares of the aggregated field values.

*/ inline bool SumOfSquaresHasBeenSet() const { return m_sumOfSquaresHasBeenSet; } /** *

The sum of the squares of the aggregated field values.

*/ inline void SetSumOfSquares(double value) { m_sumOfSquaresHasBeenSet = true; m_sumOfSquares = value; } /** *

The sum of the squares of the aggregated field values.

*/ inline Statistics& WithSumOfSquares(double value) { SetSumOfSquares(value); return *this;} /** *

The variance of the aggregated field values.

*/ inline double GetVariance() const{ return m_variance; } /** *

The variance of the aggregated field values.

*/ inline bool VarianceHasBeenSet() const { return m_varianceHasBeenSet; } /** *

The variance of the aggregated field values.

*/ inline void SetVariance(double value) { m_varianceHasBeenSet = true; m_variance = value; } /** *

The variance of the aggregated field values.

*/ inline Statistics& WithVariance(double value) { SetVariance(value); return *this;} /** *

The standard deviation of the aggregated field values.

*/ inline double GetStdDeviation() const{ return m_stdDeviation; } /** *

The standard deviation of the aggregated field values.

*/ inline bool StdDeviationHasBeenSet() const { return m_stdDeviationHasBeenSet; } /** *

The standard deviation of the aggregated field values.

*/ inline void SetStdDeviation(double value) { m_stdDeviationHasBeenSet = true; m_stdDeviation = value; } /** *

The standard deviation of the aggregated field values.

*/ inline Statistics& WithStdDeviation(double value) { SetStdDeviation(value); return *this;} private: int m_count; bool m_countHasBeenSet = false; double m_average; bool m_averageHasBeenSet = false; double m_sum; bool m_sumHasBeenSet = false; double m_minimum; bool m_minimumHasBeenSet = false; double m_maximum; bool m_maximumHasBeenSet = false; double m_sumOfSquares; bool m_sumOfSquaresHasBeenSet = false; double m_variance; bool m_varianceHasBeenSet = false; double m_stdDeviation; bool m_stdDeviationHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws