/** * 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 IoTSiteWise { namespace Model { /** *

Contains the (pre-calculated) aggregate values for an asset * property.

See Also:

AWS * API Reference

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

The average (mean) value of the time series over a time interval window.

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

The average (mean) value of the time series over a time interval window.

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

The average (mean) value of the time series over a time interval window.

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

The average (mean) value of the time series over a time interval window.

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

The count of data points in the time series over a time interval window.

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

The count of data points in the time series over a time interval window.

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

The count of data points in the time series over a time interval window.

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

The count of data points in the time series over a time interval window.

*/ inline Aggregates& WithCount(double value) { SetCount(value); return *this;} /** *

The maximum value of the time series over a time interval window.

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

The maximum value of the time series over a time interval window.

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

The maximum value of the time series over a time interval window.

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

The maximum value of the time series over a time interval window.

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

The minimum value of the time series over a time interval window.

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

The minimum value of the time series over a time interval window.

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

The minimum value of the time series over a time interval window.

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

The minimum value of the time series over a time interval window.

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

The sum of the time series over a time interval window.

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

The sum of the time series over a time interval window.

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

The sum of the time series over a time interval window.

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

The sum of the time series over a time interval window.

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

The standard deviation of the time series over a time interval window.

*/ inline double GetStandardDeviation() const{ return m_standardDeviation; } /** *

The standard deviation of the time series over a time interval window.

*/ inline bool StandardDeviationHasBeenSet() const { return m_standardDeviationHasBeenSet; } /** *

The standard deviation of the time series over a time interval window.

*/ inline void SetStandardDeviation(double value) { m_standardDeviationHasBeenSet = true; m_standardDeviation = value; } /** *

The standard deviation of the time series over a time interval window.

*/ inline Aggregates& WithStandardDeviation(double value) { SetStandardDeviation(value); return *this;} private: double m_average; bool m_averageHasBeenSet = false; double m_count; bool m_countHasBeenSet = false; double m_maximum; bool m_maximumHasBeenSet = false; double m_minimum; bool m_minimumHasBeenSet = false; double m_sum; bool m_sumHasBeenSet = false; double m_standardDeviation; bool m_standardDeviationHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws