AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline Timer& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline Timer& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline Timer& WithName(const char* value) { SetName(value); return *this;}
54
56
59 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
60 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
61 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
62 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
63 inline Timer& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
64 inline Timer& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
66 private:
67
68 Aws::String m_name;
69 bool m_nameHasBeenSet = false;
70
71 Aws::Utils::DateTime m_timestamp;
72 bool m_timestampHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace IoTEventsData
77} // namespace Aws
Timer & WithName(const Aws::String &value)
Definition Timer.h:50
const Aws::Utils::DateTime & GetTimestamp() const
Definition Timer.h:59
bool TimestampHasBeenSet() const
Definition Timer.h:60
Timer & WithTimestamp(Aws::Utils::DateTime &&value)
Definition Timer.h:64
const Aws::String & GetName() const
Definition Timer.h:45
Timer & WithName(const char *value)
Definition Timer.h:52
void SetName(const char *value)
Definition Timer.h:49
void SetTimestamp(Aws::Utils::DateTime &&value)
Definition Timer.h:62
AWS_IOTEVENTSDATA_API Timer & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(Aws::String &&value)
Definition Timer.h:48
AWS_IOTEVENTSDATA_API Timer(Aws::Utils::Json::JsonView jsonValue)
Timer & WithName(Aws::String &&value)
Definition Timer.h:51
void SetName(const Aws::String &value)
Definition Timer.h:47
AWS_IOTEVENTSDATA_API Aws::Utils::Json::JsonValue Jsonize() const
Timer & WithTimestamp(const Aws::Utils::DateTime &value)
Definition Timer.h:63
void SetTimestamp(const Aws::Utils::DateTime &value)
Definition Timer.h:61
AWS_IOTEVENTSDATA_API Timer()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue