AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
CoreDevice.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
10#include <aws/greengrassv2/model/CoreDeviceStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GreengrassV2 {
22namespace Model {
23
31 public:
32 AWS_GREENGRASSV2_API CoreDevice() = default;
33 AWS_GREENGRASSV2_API CoreDevice(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GREENGRASSV2_API CoreDevice& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetCoreDeviceThingName() const { return m_coreDeviceThingName; }
42 inline bool CoreDeviceThingNameHasBeenSet() const { return m_coreDeviceThingNameHasBeenSet; }
43 template <typename CoreDeviceThingNameT = Aws::String>
44 void SetCoreDeviceThingName(CoreDeviceThingNameT&& value) {
45 m_coreDeviceThingNameHasBeenSet = true;
46 m_coreDeviceThingName = std::forward<CoreDeviceThingNameT>(value);
47 }
48 template <typename CoreDeviceThingNameT = Aws::String>
49 CoreDevice& WithCoreDeviceThingName(CoreDeviceThingNameT&& value) {
50 SetCoreDeviceThingName(std::forward<CoreDeviceThingNameT>(value));
51 return *this;
52 }
54
56
63 inline CoreDeviceStatus GetStatus() const { return m_status; }
64 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
65 inline void SetStatus(CoreDeviceStatus value) {
66 m_statusHasBeenSet = true;
67 m_status = value;
68 }
70 SetStatus(value);
71 return *this;
72 }
74
76
80 inline const Aws::Utils::DateTime& GetLastStatusUpdateTimestamp() const { return m_lastStatusUpdateTimestamp; }
81 inline bool LastStatusUpdateTimestampHasBeenSet() const { return m_lastStatusUpdateTimestampHasBeenSet; }
82 template <typename LastStatusUpdateTimestampT = Aws::Utils::DateTime>
83 void SetLastStatusUpdateTimestamp(LastStatusUpdateTimestampT&& value) {
84 m_lastStatusUpdateTimestampHasBeenSet = true;
85 m_lastStatusUpdateTimestamp = std::forward<LastStatusUpdateTimestampT>(value);
86 }
87 template <typename LastStatusUpdateTimestampT = Aws::Utils::DateTime>
88 CoreDevice& WithLastStatusUpdateTimestamp(LastStatusUpdateTimestampT&& value) {
89 SetLastStatusUpdateTimestamp(std::forward<LastStatusUpdateTimestampT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetPlatform() const { return m_platform; }
99 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
100 template <typename PlatformT = Aws::String>
101 void SetPlatform(PlatformT&& value) {
102 m_platformHasBeenSet = true;
103 m_platform = std::forward<PlatformT>(value);
104 }
105 template <typename PlatformT = Aws::String>
106 CoreDevice& WithPlatform(PlatformT&& value) {
107 SetPlatform(std::forward<PlatformT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetArchitecture() const { return m_architecture; }
117 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
118 template <typename ArchitectureT = Aws::String>
119 void SetArchitecture(ArchitectureT&& value) {
120 m_architectureHasBeenSet = true;
121 m_architecture = std::forward<ArchitectureT>(value);
122 }
123 template <typename ArchitectureT = Aws::String>
124 CoreDevice& WithArchitecture(ArchitectureT&& value) {
125 SetArchitecture(std::forward<ArchitectureT>(value));
126 return *this;
127 }
129
131
136 inline const Aws::String& GetRuntime() const { return m_runtime; }
137 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
138 template <typename RuntimeT = Aws::String>
139 void SetRuntime(RuntimeT&& value) {
140 m_runtimeHasBeenSet = true;
141 m_runtime = std::forward<RuntimeT>(value);
142 }
143 template <typename RuntimeT = Aws::String>
144 CoreDevice& WithRuntime(RuntimeT&& value) {
145 SetRuntime(std::forward<RuntimeT>(value));
146 return *this;
147 }
149 private:
150 Aws::String m_coreDeviceThingName;
151
153
154 Aws::Utils::DateTime m_lastStatusUpdateTimestamp{};
155
156 Aws::String m_platform;
157
158 Aws::String m_architecture;
159
160 Aws::String m_runtime;
161 bool m_coreDeviceThingNameHasBeenSet = false;
162 bool m_statusHasBeenSet = false;
163 bool m_lastStatusUpdateTimestampHasBeenSet = false;
164 bool m_platformHasBeenSet = false;
165 bool m_architectureHasBeenSet = false;
166 bool m_runtimeHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace GreengrassV2
171} // namespace Aws
AWS_GREENGRASSV2_API CoreDevice(Aws::Utils::Json::JsonView jsonValue)
CoreDevice & WithLastStatusUpdateTimestamp(LastStatusUpdateTimestampT &&value)
Definition CoreDevice.h:88
bool LastStatusUpdateTimestampHasBeenSet() const
Definition CoreDevice.h:81
CoreDevice & WithStatus(CoreDeviceStatus value)
Definition CoreDevice.h:69
void SetCoreDeviceThingName(CoreDeviceThingNameT &&value)
Definition CoreDevice.h:44
const Aws::String & GetCoreDeviceThingName() const
Definition CoreDevice.h:41
void SetStatus(CoreDeviceStatus value)
Definition CoreDevice.h:65
void SetLastStatusUpdateTimestamp(LastStatusUpdateTimestampT &&value)
Definition CoreDevice.h:83
AWS_GREENGRASSV2_API CoreDevice & operator=(Aws::Utils::Json::JsonView jsonValue)
CoreDevice & WithPlatform(PlatformT &&value)
Definition CoreDevice.h:106
CoreDevice & WithArchitecture(ArchitectureT &&value)
Definition CoreDevice.h:124
CoreDevice & WithCoreDeviceThingName(CoreDeviceThingNameT &&value)
Definition CoreDevice.h:49
const Aws::String & GetArchitecture() const
Definition CoreDevice.h:116
void SetArchitecture(ArchitectureT &&value)
Definition CoreDevice.h:119
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastStatusUpdateTimestamp() const
Definition CoreDevice.h:80
void SetPlatform(PlatformT &&value)
Definition CoreDevice.h:101
void SetRuntime(RuntimeT &&value)
Definition CoreDevice.h:139
AWS_GREENGRASSV2_API CoreDevice()=default
const Aws::String & GetRuntime() const
Definition CoreDevice.h:136
CoreDevice & WithRuntime(RuntimeT &&value)
Definition CoreDevice.h:144
CoreDeviceStatus GetStatus() const
Definition CoreDevice.h:63
const Aws::String & GetPlatform() const
Definition CoreDevice.h:98
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue