7#include <aws/core/utils/DateTime.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/pi/PI_EXPORTS.h>
31 AWS_PI_API
DataPoint(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_PI_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
42 template <
typename TimestampT = Aws::Utils::DateTime>
44 m_timestampHasBeenSet =
true;
45 m_timestamp = std::forward<TimestampT>(value);
47 template <
typename TimestampT = Aws::Utils::DateTime>
58 inline double GetValue()
const {
return m_value; }
61 m_valueHasBeenSet =
true;
73 bool m_timestampHasBeenSet =
false;
74 bool m_valueHasBeenSet =
false;
AWS_PI_API DataPoint()=default
AWS_PI_API DataPoint(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetTimestamp(TimestampT &&value)
void SetValue(double value)
bool ValueHasBeenSet() const
AWS_PI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::Utils::DateTime & GetTimestamp() const
bool TimestampHasBeenSet() const
DataPoint & WithValue(double value)
AWS_PI_API DataPoint & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
DataPoint & WithTimestamp(TimestampT &&value)