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

Used to limit data to that which has arrived since the last execution of the * action.

See Also:

AWS * API Reference

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

The number of seconds of estimated in-flight lag time of message data. When * you create dataset contents using message data from a specified timeframe, some * message data might still be in flight when processing begins, and so do not * arrive in time to be processed. Use this field to make allowances for the in * flight time of your message data, so that data not processed from a previous * timeframe is included with the next timeframe. Otherwise, missed message data * would be excluded from processing during the next timeframe too, because its * timestamp places it within the previous timeframe.

*/ inline int GetOffsetSeconds() const{ return m_offsetSeconds; } /** *

The number of seconds of estimated in-flight lag time of message data. When * you create dataset contents using message data from a specified timeframe, some * message data might still be in flight when processing begins, and so do not * arrive in time to be processed. Use this field to make allowances for the in * flight time of your message data, so that data not processed from a previous * timeframe is included with the next timeframe. Otherwise, missed message data * would be excluded from processing during the next timeframe too, because its * timestamp places it within the previous timeframe.

*/ inline bool OffsetSecondsHasBeenSet() const { return m_offsetSecondsHasBeenSet; } /** *

The number of seconds of estimated in-flight lag time of message data. When * you create dataset contents using message data from a specified timeframe, some * message data might still be in flight when processing begins, and so do not * arrive in time to be processed. Use this field to make allowances for the in * flight time of your message data, so that data not processed from a previous * timeframe is included with the next timeframe. Otherwise, missed message data * would be excluded from processing during the next timeframe too, because its * timestamp places it within the previous timeframe.

*/ inline void SetOffsetSeconds(int value) { m_offsetSecondsHasBeenSet = true; m_offsetSeconds = value; } /** *

The number of seconds of estimated in-flight lag time of message data. When * you create dataset contents using message data from a specified timeframe, some * message data might still be in flight when processing begins, and so do not * arrive in time to be processed. Use this field to make allowances for the in * flight time of your message data, so that data not processed from a previous * timeframe is included with the next timeframe. Otherwise, missed message data * would be excluded from processing during the next timeframe too, because its * timestamp places it within the previous timeframe.

*/ inline DeltaTime& WithOffsetSeconds(int value) { SetOffsetSeconds(value); return *this;} /** *

An expression by which the time of the message data might be determined. This * can be the name of a timestamp field or a SQL expression that is used to derive * the time the message data was generated.

*/ inline const Aws::String& GetTimeExpression() const{ return m_timeExpression; } /** *

An expression by which the time of the message data might be determined. This * can be the name of a timestamp field or a SQL expression that is used to derive * the time the message data was generated.

*/ inline bool TimeExpressionHasBeenSet() const { return m_timeExpressionHasBeenSet; } /** *

An expression by which the time of the message data might be determined. This * can be the name of a timestamp field or a SQL expression that is used to derive * the time the message data was generated.

*/ inline void SetTimeExpression(const Aws::String& value) { m_timeExpressionHasBeenSet = true; m_timeExpression = value; } /** *

An expression by which the time of the message data might be determined. This * can be the name of a timestamp field or a SQL expression that is used to derive * the time the message data was generated.

*/ inline void SetTimeExpression(Aws::String&& value) { m_timeExpressionHasBeenSet = true; m_timeExpression = std::move(value); } /** *

An expression by which the time of the message data might be determined. This * can be the name of a timestamp field or a SQL expression that is used to derive * the time the message data was generated.

*/ inline void SetTimeExpression(const char* value) { m_timeExpressionHasBeenSet = true; m_timeExpression.assign(value); } /** *

An expression by which the time of the message data might be determined. This * can be the name of a timestamp field or a SQL expression that is used to derive * the time the message data was generated.

*/ inline DeltaTime& WithTimeExpression(const Aws::String& value) { SetTimeExpression(value); return *this;} /** *

An expression by which the time of the message data might be determined. This * can be the name of a timestamp field or a SQL expression that is used to derive * the time the message data was generated.

*/ inline DeltaTime& WithTimeExpression(Aws::String&& value) { SetTimeExpression(std::move(value)); return *this;} /** *

An expression by which the time of the message data might be determined. This * can be the name of a timestamp field or a SQL expression that is used to derive * the time the message data was generated.

*/ inline DeltaTime& WithTimeExpression(const char* value) { SetTimeExpression(value); return *this;} private: int m_offsetSeconds; bool m_offsetSecondsHasBeenSet = false; Aws::String m_timeExpression; bool m_timeExpressionHasBeenSet = false; }; } // namespace Model } // namespace IoTAnalytics } // namespace Aws