AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Timer.h
1
6#pragma once
7#include <aws/iotevents-data/IoTEventsData_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTEventsData
23{
24namespace Model
25{
26
32 class Timer
33 {
34 public:
35 AWS_IOTEVENTSDATA_API Timer() = default;
36 AWS_IOTEVENTSDATA_API Timer(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IOTEVENTSDATA_API Timer& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTEVENTSDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 Timer& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
57 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
58 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
59 template<typename TimestampT = Aws::Utils::DateTime>
60 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
61 template<typename TimestampT = Aws::Utils::DateTime>
62 Timer& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
64 private:
65
66 Aws::String m_name;
67 bool m_nameHasBeenSet = false;
68
69 Aws::Utils::DateTime m_timestamp{};
70 bool m_timestampHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace IoTEventsData
75} // namespace Aws
Timer & WithTimestamp(TimestampT &&value)
Definition Timer.h:62
const Aws::Utils::DateTime & GetTimestamp() const
Definition Timer.h:57
bool TimestampHasBeenSet() const
Definition Timer.h:58
void SetName(NameT &&value)
Definition Timer.h:48
const Aws::String & GetName() const
Definition Timer.h:45
AWS_IOTEVENTSDATA_API Timer & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTEVENTSDATA_API Timer(Aws::Utils::Json::JsonView jsonValue)
Timer & WithName(NameT &&value)
Definition Timer.h:50
AWS_IOTEVENTSDATA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTEVENTSDATA_API Timer()=default
void SetTimestamp(TimestampT &&value)
Definition Timer.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue