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

Contains information about a timestamp.

See Also:

AWS * API Reference

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

The value of the timestamp, in the Unix epoch format.

*/ inline long long GetTimeInMillis() const{ return m_timeInMillis; } /** *

The value of the timestamp, in the Unix epoch format.

*/ inline bool TimeInMillisHasBeenSet() const { return m_timeInMillisHasBeenSet; } /** *

The value of the timestamp, in the Unix epoch format.

*/ inline void SetTimeInMillis(long long value) { m_timeInMillisHasBeenSet = true; m_timeInMillis = value; } /** *

The value of the timestamp, in the Unix epoch format.

*/ inline TimestampValue& WithTimeInMillis(long long value) { SetTimeInMillis(value); return *this;} private: long long m_timeInMillis; bool m_timeInMillisHasBeenSet = false; }; } // namespace Model } // namespace IoTEventsData } // namespace Aws