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

Contains aggregated asset property values (for example, average, minimum, and * maximum).

See Also:

AWS * API Reference

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

The date the aggregating computations occurred, in Unix epoch time.

*/ inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } /** *

The date the aggregating computations occurred, in Unix epoch time.

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

The date the aggregating computations occurred, in Unix epoch time.

*/ inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

The date the aggregating computations occurred, in Unix epoch time.

*/ inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *

The date the aggregating computations occurred, in Unix epoch time.

*/ inline AggregatedValue& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} /** *

The date the aggregating computations occurred, in Unix epoch time.

*/ inline AggregatedValue& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} /** *

The quality of the aggregated data.

*/ inline const Quality& GetQuality() const{ return m_quality; } /** *

The quality of the aggregated data.

*/ inline bool QualityHasBeenSet() const { return m_qualityHasBeenSet; } /** *

The quality of the aggregated data.

*/ inline void SetQuality(const Quality& value) { m_qualityHasBeenSet = true; m_quality = value; } /** *

The quality of the aggregated data.

*/ inline void SetQuality(Quality&& value) { m_qualityHasBeenSet = true; m_quality = std::move(value); } /** *

The quality of the aggregated data.

*/ inline AggregatedValue& WithQuality(const Quality& value) { SetQuality(value); return *this;} /** *

The quality of the aggregated data.

*/ inline AggregatedValue& WithQuality(Quality&& value) { SetQuality(std::move(value)); return *this;} /** *

The value of the aggregates.

*/ inline const Aggregates& GetValue() const{ return m_value; } /** *

The value of the aggregates.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value of the aggregates.

*/ inline void SetValue(const Aggregates& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value of the aggregates.

*/ inline void SetValue(Aggregates&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The value of the aggregates.

*/ inline AggregatedValue& WithValue(const Aggregates& value) { SetValue(value); return *this;} /** *

The value of the aggregates.

*/ inline AggregatedValue& WithValue(Aggregates&& value) { SetValue(std::move(value)); return *this;} private: Aws::Utils::DateTime m_timestamp; bool m_timestampHasBeenSet; Quality m_quality; bool m_qualityHasBeenSet; Aggregates m_value; bool m_valueHasBeenSet; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws