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

Information about a collection scheme that uses a time period to decide how * often to collect data.

See Also:

AWS * API Reference

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

The time period (in milliseconds) to decide how often to collect data. For * example, if the time period is 60000, the Edge Agent software * collects data once every minute.

*/ inline long long GetPeriodMs() const{ return m_periodMs; } /** *

The time period (in milliseconds) to decide how often to collect data. For * example, if the time period is 60000, the Edge Agent software * collects data once every minute.

*/ inline bool PeriodMsHasBeenSet() const { return m_periodMsHasBeenSet; } /** *

The time period (in milliseconds) to decide how often to collect data. For * example, if the time period is 60000, the Edge Agent software * collects data once every minute.

*/ inline void SetPeriodMs(long long value) { m_periodMsHasBeenSet = true; m_periodMs = value; } /** *

The time period (in milliseconds) to decide how often to collect data. For * example, if the time period is 60000, the Edge Agent software * collects data once every minute.

*/ inline TimeBasedCollectionScheme& WithPeriodMs(long long value) { SetPeriodMs(value); return *this;} private: long long m_periodMs; bool m_periodMsHasBeenSet = false; }; } // namespace Model } // namespace IoTFleetWise } // namespace Aws