AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DeviceSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/EdgeModelSummary.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker {
23namespace Model {
24
31 public:
32 AWS_SAGEMAKER_API DeviceSummary() = default;
33 AWS_SAGEMAKER_API DeviceSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SAGEMAKER_API DeviceSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetDeviceName() const { return m_deviceName; }
42 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
43 template <typename DeviceNameT = Aws::String>
44 void SetDeviceName(DeviceNameT&& value) {
45 m_deviceNameHasBeenSet = true;
46 m_deviceName = std::forward<DeviceNameT>(value);
47 }
48 template <typename DeviceNameT = Aws::String>
49 DeviceSummary& WithDeviceName(DeviceNameT&& value) {
50 SetDeviceName(std::forward<DeviceNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDeviceArn() const { return m_deviceArn; }
60 inline bool DeviceArnHasBeenSet() const { return m_deviceArnHasBeenSet; }
61 template <typename DeviceArnT = Aws::String>
62 void SetDeviceArn(DeviceArnT&& value) {
63 m_deviceArnHasBeenSet = true;
64 m_deviceArn = std::forward<DeviceArnT>(value);
65 }
66 template <typename DeviceArnT = Aws::String>
67 DeviceSummary& WithDeviceArn(DeviceArnT&& value) {
68 SetDeviceArn(std::forward<DeviceArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
85 DeviceSummary& WithDescription(DescriptionT&& value) {
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetDeviceFleetName() const { return m_deviceFleetName; }
96 inline bool DeviceFleetNameHasBeenSet() const { return m_deviceFleetNameHasBeenSet; }
97 template <typename DeviceFleetNameT = Aws::String>
98 void SetDeviceFleetName(DeviceFleetNameT&& value) {
99 m_deviceFleetNameHasBeenSet = true;
100 m_deviceFleetName = std::forward<DeviceFleetNameT>(value);
101 }
102 template <typename DeviceFleetNameT = Aws::String>
103 DeviceSummary& WithDeviceFleetName(DeviceFleetNameT&& value) {
104 SetDeviceFleetName(std::forward<DeviceFleetNameT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetIotThingName() const { return m_iotThingName; }
115 inline bool IotThingNameHasBeenSet() const { return m_iotThingNameHasBeenSet; }
116 template <typename IotThingNameT = Aws::String>
117 void SetIotThingName(IotThingNameT&& value) {
118 m_iotThingNameHasBeenSet = true;
119 m_iotThingName = std::forward<IotThingNameT>(value);
120 }
121 template <typename IotThingNameT = Aws::String>
122 DeviceSummary& WithIotThingName(IotThingNameT&& value) {
123 SetIotThingName(std::forward<IotThingNameT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Utils::DateTime& GetRegistrationTime() const { return m_registrationTime; }
133 inline bool RegistrationTimeHasBeenSet() const { return m_registrationTimeHasBeenSet; }
134 template <typename RegistrationTimeT = Aws::Utils::DateTime>
135 void SetRegistrationTime(RegistrationTimeT&& value) {
136 m_registrationTimeHasBeenSet = true;
137 m_registrationTime = std::forward<RegistrationTimeT>(value);
138 }
139 template <typename RegistrationTimeT = Aws::Utils::DateTime>
140 DeviceSummary& WithRegistrationTime(RegistrationTimeT&& value) {
141 SetRegistrationTime(std::forward<RegistrationTimeT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::Utils::DateTime& GetLatestHeartbeat() const { return m_latestHeartbeat; }
151 inline bool LatestHeartbeatHasBeenSet() const { return m_latestHeartbeatHasBeenSet; }
152 template <typename LatestHeartbeatT = Aws::Utils::DateTime>
153 void SetLatestHeartbeat(LatestHeartbeatT&& value) {
154 m_latestHeartbeatHasBeenSet = true;
155 m_latestHeartbeat = std::forward<LatestHeartbeatT>(value);
156 }
157 template <typename LatestHeartbeatT = Aws::Utils::DateTime>
158 DeviceSummary& WithLatestHeartbeat(LatestHeartbeatT&& value) {
159 SetLatestHeartbeat(std::forward<LatestHeartbeatT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::Vector<EdgeModelSummary>& GetModels() const { return m_models; }
169 inline bool ModelsHasBeenSet() const { return m_modelsHasBeenSet; }
170 template <typename ModelsT = Aws::Vector<EdgeModelSummary>>
171 void SetModels(ModelsT&& value) {
172 m_modelsHasBeenSet = true;
173 m_models = std::forward<ModelsT>(value);
174 }
175 template <typename ModelsT = Aws::Vector<EdgeModelSummary>>
176 DeviceSummary& WithModels(ModelsT&& value) {
177 SetModels(std::forward<ModelsT>(value));
178 return *this;
179 }
180 template <typename ModelsT = EdgeModelSummary>
181 DeviceSummary& AddModels(ModelsT&& value) {
182 m_modelsHasBeenSet = true;
183 m_models.emplace_back(std::forward<ModelsT>(value));
184 return *this;
185 }
187
189
192 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
193 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
194 template <typename AgentVersionT = Aws::String>
195 void SetAgentVersion(AgentVersionT&& value) {
196 m_agentVersionHasBeenSet = true;
197 m_agentVersion = std::forward<AgentVersionT>(value);
198 }
199 template <typename AgentVersionT = Aws::String>
200 DeviceSummary& WithAgentVersion(AgentVersionT&& value) {
201 SetAgentVersion(std::forward<AgentVersionT>(value));
202 return *this;
203 }
205 private:
206 Aws::String m_deviceName;
207
208 Aws::String m_deviceArn;
209
210 Aws::String m_description;
211
212 Aws::String m_deviceFleetName;
213
214 Aws::String m_iotThingName;
215
216 Aws::Utils::DateTime m_registrationTime{};
217
218 Aws::Utils::DateTime m_latestHeartbeat{};
219
221
222 Aws::String m_agentVersion;
223 bool m_deviceNameHasBeenSet = false;
224 bool m_deviceArnHasBeenSet = false;
225 bool m_descriptionHasBeenSet = false;
226 bool m_deviceFleetNameHasBeenSet = false;
227 bool m_iotThingNameHasBeenSet = false;
228 bool m_registrationTimeHasBeenSet = false;
229 bool m_latestHeartbeatHasBeenSet = false;
230 bool m_modelsHasBeenSet = false;
231 bool m_agentVersionHasBeenSet = false;
232};
233
234} // namespace Model
235} // namespace SageMaker
236} // namespace Aws
DeviceSummary & WithRegistrationTime(RegistrationTimeT &&value)
const Aws::String & GetDeviceName() const
const Aws::Utils::DateTime & GetLatestHeartbeat() const
void SetDeviceArn(DeviceArnT &&value)
const Aws::String & GetIotThingName() const
const Aws::String & GetAgentVersion() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDeviceFleetName() const
const Aws::String & GetDeviceArn() const
DeviceSummary & WithAgentVersion(AgentVersionT &&value)
void SetIotThingName(IotThingNameT &&value)
const Aws::Utils::DateTime & GetRegistrationTime() const
void SetRegistrationTime(RegistrationTimeT &&value)
const Aws::Vector< EdgeModelSummary > & GetModels() const
void SetDescription(DescriptionT &&value)
DeviceSummary & WithDescription(DescriptionT &&value)
DeviceSummary & WithDeviceName(DeviceNameT &&value)
const Aws::String & GetDescription() const
DeviceSummary & AddModels(ModelsT &&value)
void SetLatestHeartbeat(LatestHeartbeatT &&value)
AWS_SAGEMAKER_API DeviceSummary(Aws::Utils::Json::JsonView jsonValue)
void SetAgentVersion(AgentVersionT &&value)
DeviceSummary & WithLatestHeartbeat(LatestHeartbeatT &&value)
void SetDeviceFleetName(DeviceFleetNameT &&value)
DeviceSummary & WithDeviceFleetName(DeviceFleetNameT &&value)
AWS_SAGEMAKER_API DeviceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDeviceName(DeviceNameT &&value)
AWS_SAGEMAKER_API DeviceSummary()=default
DeviceSummary & WithModels(ModelsT &&value)
DeviceSummary & WithIotThingName(IotThingNameT &&value)
DeviceSummary & WithDeviceArn(DeviceArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue