AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DescribeDeviceResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sagemaker/SageMaker_EXPORTS.h>
12#include <aws/sagemaker/model/EdgeModel.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace SageMaker {
26namespace Model {
28 public:
29 AWS_SAGEMAKER_API DescribeDeviceResult() = default;
32
34
37 inline const Aws::String& GetDeviceArn() const { return m_deviceArn; }
38 template <typename DeviceArnT = Aws::String>
39 void SetDeviceArn(DeviceArnT&& value) {
40 m_deviceArnHasBeenSet = true;
41 m_deviceArn = std::forward<DeviceArnT>(value);
42 }
43 template <typename DeviceArnT = Aws::String>
44 DescribeDeviceResult& WithDeviceArn(DeviceArnT&& value) {
45 SetDeviceArn(std::forward<DeviceArnT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetDeviceName() const { return m_deviceName; }
55 template <typename DeviceNameT = Aws::String>
56 void SetDeviceName(DeviceNameT&& value) {
57 m_deviceNameHasBeenSet = true;
58 m_deviceName = std::forward<DeviceNameT>(value);
59 }
60 template <typename DeviceNameT = Aws::String>
61 DescribeDeviceResult& WithDeviceName(DeviceNameT&& value) {
62 SetDeviceName(std::forward<DeviceNameT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetDescription() const { return m_description; }
72 template <typename DescriptionT = Aws::String>
73 void SetDescription(DescriptionT&& value) {
74 m_descriptionHasBeenSet = true;
75 m_description = std::forward<DescriptionT>(value);
76 }
77 template <typename DescriptionT = Aws::String>
78 DescribeDeviceResult& WithDescription(DescriptionT&& value) {
79 SetDescription(std::forward<DescriptionT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetDeviceFleetName() const { return m_deviceFleetName; }
89 template <typename DeviceFleetNameT = Aws::String>
90 void SetDeviceFleetName(DeviceFleetNameT&& value) {
91 m_deviceFleetNameHasBeenSet = true;
92 m_deviceFleetName = std::forward<DeviceFleetNameT>(value);
93 }
94 template <typename DeviceFleetNameT = Aws::String>
95 DescribeDeviceResult& WithDeviceFleetName(DeviceFleetNameT&& value) {
96 SetDeviceFleetName(std::forward<DeviceFleetNameT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::String& GetIotThingName() const { return m_iotThingName; }
107 template <typename IotThingNameT = Aws::String>
108 void SetIotThingName(IotThingNameT&& value) {
109 m_iotThingNameHasBeenSet = true;
110 m_iotThingName = std::forward<IotThingNameT>(value);
111 }
112 template <typename IotThingNameT = Aws::String>
113 DescribeDeviceResult& WithIotThingName(IotThingNameT&& value) {
114 SetIotThingName(std::forward<IotThingNameT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::Utils::DateTime& GetRegistrationTime() const { return m_registrationTime; }
124 template <typename RegistrationTimeT = Aws::Utils::DateTime>
125 void SetRegistrationTime(RegistrationTimeT&& value) {
126 m_registrationTimeHasBeenSet = true;
127 m_registrationTime = std::forward<RegistrationTimeT>(value);
128 }
129 template <typename RegistrationTimeT = Aws::Utils::DateTime>
130 DescribeDeviceResult& WithRegistrationTime(RegistrationTimeT&& value) {
131 SetRegistrationTime(std::forward<RegistrationTimeT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::Utils::DateTime& GetLatestHeartbeat() const { return m_latestHeartbeat; }
141 template <typename LatestHeartbeatT = Aws::Utils::DateTime>
142 void SetLatestHeartbeat(LatestHeartbeatT&& value) {
143 m_latestHeartbeatHasBeenSet = true;
144 m_latestHeartbeat = std::forward<LatestHeartbeatT>(value);
145 }
146 template <typename LatestHeartbeatT = Aws::Utils::DateTime>
147 DescribeDeviceResult& WithLatestHeartbeat(LatestHeartbeatT&& value) {
148 SetLatestHeartbeat(std::forward<LatestHeartbeatT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::Vector<EdgeModel>& GetModels() const { return m_models; }
158 template <typename ModelsT = Aws::Vector<EdgeModel>>
159 void SetModels(ModelsT&& value) {
160 m_modelsHasBeenSet = true;
161 m_models = std::forward<ModelsT>(value);
162 }
163 template <typename ModelsT = Aws::Vector<EdgeModel>>
165 SetModels(std::forward<ModelsT>(value));
166 return *this;
167 }
168 template <typename ModelsT = EdgeModel>
169 DescribeDeviceResult& AddModels(ModelsT&& value) {
170 m_modelsHasBeenSet = true;
171 m_models.emplace_back(std::forward<ModelsT>(value));
172 return *this;
173 }
175
177
180 inline int GetMaxModels() const { return m_maxModels; }
181 inline void SetMaxModels(int value) {
182 m_maxModelsHasBeenSet = true;
183 m_maxModels = value;
184 }
186 SetMaxModels(value);
187 return *this;
188 }
190
192
196 inline const Aws::String& GetNextToken() const { return m_nextToken; }
197 template <typename NextTokenT = Aws::String>
198 void SetNextToken(NextTokenT&& value) {
199 m_nextTokenHasBeenSet = true;
200 m_nextToken = std::forward<NextTokenT>(value);
201 }
202 template <typename NextTokenT = Aws::String>
203 DescribeDeviceResult& WithNextToken(NextTokenT&& value) {
204 SetNextToken(std::forward<NextTokenT>(value));
205 return *this;
206 }
208
210
213 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
214 template <typename AgentVersionT = Aws::String>
215 void SetAgentVersion(AgentVersionT&& value) {
216 m_agentVersionHasBeenSet = true;
217 m_agentVersion = std::forward<AgentVersionT>(value);
218 }
219 template <typename AgentVersionT = Aws::String>
220 DescribeDeviceResult& WithAgentVersion(AgentVersionT&& value) {
221 SetAgentVersion(std::forward<AgentVersionT>(value));
222 return *this;
223 }
225
227
228 inline const Aws::String& GetRequestId() const { return m_requestId; }
229 template <typename RequestIdT = Aws::String>
230 void SetRequestId(RequestIdT&& value) {
231 m_requestIdHasBeenSet = true;
232 m_requestId = std::forward<RequestIdT>(value);
233 }
234 template <typename RequestIdT = Aws::String>
235 DescribeDeviceResult& WithRequestId(RequestIdT&& value) {
236 SetRequestId(std::forward<RequestIdT>(value));
237 return *this;
238 }
240 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
241
242 private:
243 Aws::String m_deviceArn;
244
245 Aws::String m_deviceName;
246
247 Aws::String m_description;
248
249 Aws::String m_deviceFleetName;
250
251 Aws::String m_iotThingName;
252
253 Aws::Utils::DateTime m_registrationTime{};
254
255 Aws::Utils::DateTime m_latestHeartbeat{};
256
257 Aws::Vector<EdgeModel> m_models;
258
259 int m_maxModels{0};
260
261 Aws::String m_nextToken;
262
263 Aws::String m_agentVersion;
264
265 Aws::String m_requestId;
266 Aws::Http::HttpResponseCode m_HttpResponseCode;
267 bool m_deviceArnHasBeenSet = false;
268 bool m_deviceNameHasBeenSet = false;
269 bool m_descriptionHasBeenSet = false;
270 bool m_deviceFleetNameHasBeenSet = false;
271 bool m_iotThingNameHasBeenSet = false;
272 bool m_registrationTimeHasBeenSet = false;
273 bool m_latestHeartbeatHasBeenSet = false;
274 bool m_modelsHasBeenSet = false;
275 bool m_maxModelsHasBeenSet = false;
276 bool m_nextTokenHasBeenSet = false;
277 bool m_agentVersionHasBeenSet = false;
278 bool m_requestIdHasBeenSet = false;
279};
280
281} // namespace Model
282} // namespace SageMaker
283} // namespace Aws
void SetLatestHeartbeat(LatestHeartbeatT &&value)
DescribeDeviceResult & WithDeviceArn(DeviceArnT &&value)
DescribeDeviceResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetRegistrationTime() const
DescribeDeviceResult & WithRegistrationTime(RegistrationTimeT &&value)
AWS_SAGEMAKER_API DescribeDeviceResult()=default
DescribeDeviceResult & WithModels(ModelsT &&value)
const Aws::Vector< EdgeModel > & GetModels() const
AWS_SAGEMAKER_API DescribeDeviceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetLatestHeartbeat() const
DescribeDeviceResult & WithNextToken(NextTokenT &&value)
DescribeDeviceResult & WithAgentVersion(AgentVersionT &&value)
DescribeDeviceResult & WithIotThingName(IotThingNameT &&value)
DescribeDeviceResult & WithLatestHeartbeat(LatestHeartbeatT &&value)
DescribeDeviceResult & WithMaxModels(int value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeDeviceResult & WithDeviceName(DeviceNameT &&value)
void SetRegistrationTime(RegistrationTimeT &&value)
DescribeDeviceResult & AddModels(ModelsT &&value)
DescribeDeviceResult & WithDeviceFleetName(DeviceFleetNameT &&value)
AWS_SAGEMAKER_API DescribeDeviceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetDeviceFleetName(DeviceFleetNameT &&value)
DescribeDeviceResult & WithDescription(DescriptionT &&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