AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CoreDevice.h
1
6#pragma once
7#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/greengrassv2/model/CoreDeviceStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GreengrassV2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GREENGRASSV2_API CoreDevice() = default;
38 AWS_GREENGRASSV2_API CoreDevice(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GREENGRASSV2_API CoreDevice& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetCoreDeviceThingName() const { return m_coreDeviceThingName; }
48 inline bool CoreDeviceThingNameHasBeenSet() const { return m_coreDeviceThingNameHasBeenSet; }
49 template<typename CoreDeviceThingNameT = Aws::String>
50 void SetCoreDeviceThingName(CoreDeviceThingNameT&& value) { m_coreDeviceThingNameHasBeenSet = true; m_coreDeviceThingName = std::forward<CoreDeviceThingNameT>(value); }
51 template<typename CoreDeviceThingNameT = Aws::String>
52 CoreDevice& WithCoreDeviceThingName(CoreDeviceThingNameT&& value) { SetCoreDeviceThingName(std::forward<CoreDeviceThingNameT>(value)); return *this;}
54
56
63 inline CoreDeviceStatus GetStatus() const { return m_status; }
64 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
65 inline void SetStatus(CoreDeviceStatus value) { m_statusHasBeenSet = true; m_status = value; }
66 inline CoreDevice& WithStatus(CoreDeviceStatus value) { SetStatus(value); return *this;}
68
70
74 inline const Aws::Utils::DateTime& GetLastStatusUpdateTimestamp() const { return m_lastStatusUpdateTimestamp; }
75 inline bool LastStatusUpdateTimestampHasBeenSet() const { return m_lastStatusUpdateTimestampHasBeenSet; }
76 template<typename LastStatusUpdateTimestampT = Aws::Utils::DateTime>
77 void SetLastStatusUpdateTimestamp(LastStatusUpdateTimestampT&& value) { m_lastStatusUpdateTimestampHasBeenSet = true; m_lastStatusUpdateTimestamp = std::forward<LastStatusUpdateTimestampT>(value); }
78 template<typename LastStatusUpdateTimestampT = Aws::Utils::DateTime>
79 CoreDevice& WithLastStatusUpdateTimestamp(LastStatusUpdateTimestampT&& value) { SetLastStatusUpdateTimestamp(std::forward<LastStatusUpdateTimestampT>(value)); return *this;}
81
83
86 inline const Aws::String& GetPlatform() const { return m_platform; }
87 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
88 template<typename PlatformT = Aws::String>
89 void SetPlatform(PlatformT&& value) { m_platformHasBeenSet = true; m_platform = std::forward<PlatformT>(value); }
90 template<typename PlatformT = Aws::String>
91 CoreDevice& WithPlatform(PlatformT&& value) { SetPlatform(std::forward<PlatformT>(value)); return *this;}
93
95
98 inline const Aws::String& GetArchitecture() const { return m_architecture; }
99 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
100 template<typename ArchitectureT = Aws::String>
101 void SetArchitecture(ArchitectureT&& value) { m_architectureHasBeenSet = true; m_architecture = std::forward<ArchitectureT>(value); }
102 template<typename ArchitectureT = Aws::String>
103 CoreDevice& WithArchitecture(ArchitectureT&& value) { SetArchitecture(std::forward<ArchitectureT>(value)); return *this;}
105
107
112 inline const Aws::String& GetRuntime() const { return m_runtime; }
113 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
114 template<typename RuntimeT = Aws::String>
115 void SetRuntime(RuntimeT&& value) { m_runtimeHasBeenSet = true; m_runtime = std::forward<RuntimeT>(value); }
116 template<typename RuntimeT = Aws::String>
117 CoreDevice& WithRuntime(RuntimeT&& value) { SetRuntime(std::forward<RuntimeT>(value)); return *this;}
119 private:
120
121 Aws::String m_coreDeviceThingName;
122 bool m_coreDeviceThingNameHasBeenSet = false;
123
125 bool m_statusHasBeenSet = false;
126
127 Aws::Utils::DateTime m_lastStatusUpdateTimestamp{};
128 bool m_lastStatusUpdateTimestampHasBeenSet = false;
129
130 Aws::String m_platform;
131 bool m_platformHasBeenSet = false;
132
133 Aws::String m_architecture;
134 bool m_architectureHasBeenSet = false;
135
136 Aws::String m_runtime;
137 bool m_runtimeHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace GreengrassV2
142} // namespace Aws
AWS_GREENGRASSV2_API CoreDevice(Aws::Utils::Json::JsonView jsonValue)
CoreDevice & WithLastStatusUpdateTimestamp(LastStatusUpdateTimestampT &&value)
Definition CoreDevice.h:79
bool LastStatusUpdateTimestampHasBeenSet() const
Definition CoreDevice.h:75
CoreDevice & WithStatus(CoreDeviceStatus value)
Definition CoreDevice.h:66
void SetCoreDeviceThingName(CoreDeviceThingNameT &&value)
Definition CoreDevice.h:50
const Aws::String & GetCoreDeviceThingName() const
Definition CoreDevice.h:47
void SetStatus(CoreDeviceStatus value)
Definition CoreDevice.h:65
void SetLastStatusUpdateTimestamp(LastStatusUpdateTimestampT &&value)
Definition CoreDevice.h:77
AWS_GREENGRASSV2_API CoreDevice & operator=(Aws::Utils::Json::JsonView jsonValue)
CoreDevice & WithPlatform(PlatformT &&value)
Definition CoreDevice.h:91
CoreDevice & WithArchitecture(ArchitectureT &&value)
Definition CoreDevice.h:103
CoreDevice & WithCoreDeviceThingName(CoreDeviceThingNameT &&value)
Definition CoreDevice.h:52
const Aws::String & GetArchitecture() const
Definition CoreDevice.h:98
void SetArchitecture(ArchitectureT &&value)
Definition CoreDevice.h:101
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastStatusUpdateTimestamp() const
Definition CoreDevice.h:74
void SetPlatform(PlatformT &&value)
Definition CoreDevice.h:89
void SetRuntime(RuntimeT &&value)
Definition CoreDevice.h:115
AWS_GREENGRASSV2_API CoreDevice()=default
const Aws::String & GetRuntime() const
Definition CoreDevice.h:112
CoreDevice & WithRuntime(RuntimeT &&value)
Definition CoreDevice.h:117
CoreDeviceStatus GetStatus() const
Definition CoreDevice.h:63
const Aws::String & GetPlatform() const
Definition CoreDevice.h:86
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue