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

Contains an asset measurement property. For more information, see Measurements * in the IoT SiteWise User Guide.

See Also:

AWS * API Reference

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

The processing configuration for the given measurement property. You can * configure measurements to be kept at the edge or forwarded to the Amazon Web * Services Cloud. By default, measurements are forwarded to the cloud.

*/ inline const MeasurementProcessingConfig& GetProcessingConfig() const{ return m_processingConfig; } /** *

The processing configuration for the given measurement property. You can * configure measurements to be kept at the edge or forwarded to the Amazon Web * Services Cloud. By default, measurements are forwarded to the cloud.

*/ inline bool ProcessingConfigHasBeenSet() const { return m_processingConfigHasBeenSet; } /** *

The processing configuration for the given measurement property. You can * configure measurements to be kept at the edge or forwarded to the Amazon Web * Services Cloud. By default, measurements are forwarded to the cloud.

*/ inline void SetProcessingConfig(const MeasurementProcessingConfig& value) { m_processingConfigHasBeenSet = true; m_processingConfig = value; } /** *

The processing configuration for the given measurement property. You can * configure measurements to be kept at the edge or forwarded to the Amazon Web * Services Cloud. By default, measurements are forwarded to the cloud.

*/ inline void SetProcessingConfig(MeasurementProcessingConfig&& value) { m_processingConfigHasBeenSet = true; m_processingConfig = std::move(value); } /** *

The processing configuration for the given measurement property. You can * configure measurements to be kept at the edge or forwarded to the Amazon Web * Services Cloud. By default, measurements are forwarded to the cloud.

*/ inline Measurement& WithProcessingConfig(const MeasurementProcessingConfig& value) { SetProcessingConfig(value); return *this;} /** *

The processing configuration for the given measurement property. You can * configure measurements to be kept at the edge or forwarded to the Amazon Web * Services Cloud. By default, measurements are forwarded to the cloud.

*/ inline Measurement& WithProcessingConfig(MeasurementProcessingConfig&& value) { SetProcessingConfig(std::move(value)); return *this;} private: MeasurementProcessingConfig m_processingConfig; bool m_processingConfigHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws