AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetFuotaTaskResult.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/iotwireless/IoTWireless_EXPORTS.h>
11#include <aws/iotwireless/model/FuotaTaskStatus.h>
12#include <aws/iotwireless/model/LoRaWANFuotaTaskGetInfo.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 IoTWireless {
26namespace Model {
28 public:
29 AWS_IOTWIRELESS_API GetFuotaTaskResult() = default;
32
34
35 inline const Aws::String& GetArn() const { return m_arn; }
36 template <typename ArnT = Aws::String>
37 void SetArn(ArnT&& value) {
38 m_arnHasBeenSet = true;
39 m_arn = std::forward<ArnT>(value);
40 }
41 template <typename ArnT = Aws::String>
42 GetFuotaTaskResult& WithArn(ArnT&& value) {
43 SetArn(std::forward<ArnT>(value));
44 return *this;
45 }
47
49
50 inline const Aws::String& GetId() const { return m_id; }
51 template <typename IdT = Aws::String>
52 void SetId(IdT&& value) {
53 m_idHasBeenSet = true;
54 m_id = std::forward<IdT>(value);
55 }
56 template <typename IdT = Aws::String>
57 GetFuotaTaskResult& WithId(IdT&& value) {
58 SetId(std::forward<IdT>(value));
59 return *this;
60 }
62
64
65 inline FuotaTaskStatus GetStatus() const { return m_status; }
66 inline void SetStatus(FuotaTaskStatus value) {
67 m_statusHasBeenSet = true;
68 m_status = value;
69 }
71 SetStatus(value);
72 return *this;
73 }
75
77
78 inline const Aws::String& GetName() const { return m_name; }
79 template <typename NameT = Aws::String>
80 void SetName(NameT&& value) {
81 m_nameHasBeenSet = true;
82 m_name = std::forward<NameT>(value);
83 }
84 template <typename NameT = Aws::String>
85 GetFuotaTaskResult& WithName(NameT&& value) {
86 SetName(std::forward<NameT>(value));
87 return *this;
88 }
90
92
93 inline const Aws::String& GetDescription() const { return m_description; }
94 template <typename DescriptionT = Aws::String>
95 void SetDescription(DescriptionT&& value) {
96 m_descriptionHasBeenSet = true;
97 m_description = std::forward<DescriptionT>(value);
98 }
99 template <typename DescriptionT = Aws::String>
100 GetFuotaTaskResult& WithDescription(DescriptionT&& value) {
101 SetDescription(std::forward<DescriptionT>(value));
102 return *this;
103 }
105
107
108 inline const LoRaWANFuotaTaskGetInfo& GetLoRaWAN() const { return m_loRaWAN; }
109 template <typename LoRaWANT = LoRaWANFuotaTaskGetInfo>
110 void SetLoRaWAN(LoRaWANT&& value) {
111 m_loRaWANHasBeenSet = true;
112 m_loRaWAN = std::forward<LoRaWANT>(value);
113 }
114 template <typename LoRaWANT = LoRaWANFuotaTaskGetInfo>
115 GetFuotaTaskResult& WithLoRaWAN(LoRaWANT&& value) {
116 SetLoRaWAN(std::forward<LoRaWANT>(value));
117 return *this;
118 }
120
122
123 inline const Aws::String& GetFirmwareUpdateImage() const { return m_firmwareUpdateImage; }
124 template <typename FirmwareUpdateImageT = Aws::String>
125 void SetFirmwareUpdateImage(FirmwareUpdateImageT&& value) {
126 m_firmwareUpdateImageHasBeenSet = true;
127 m_firmwareUpdateImage = std::forward<FirmwareUpdateImageT>(value);
128 }
129 template <typename FirmwareUpdateImageT = Aws::String>
130 GetFuotaTaskResult& WithFirmwareUpdateImage(FirmwareUpdateImageT&& value) {
131 SetFirmwareUpdateImage(std::forward<FirmwareUpdateImageT>(value));
132 return *this;
133 }
135
137
138 inline const Aws::String& GetFirmwareUpdateRole() const { return m_firmwareUpdateRole; }
139 template <typename FirmwareUpdateRoleT = Aws::String>
140 void SetFirmwareUpdateRole(FirmwareUpdateRoleT&& value) {
141 m_firmwareUpdateRoleHasBeenSet = true;
142 m_firmwareUpdateRole = std::forward<FirmwareUpdateRoleT>(value);
143 }
144 template <typename FirmwareUpdateRoleT = Aws::String>
145 GetFuotaTaskResult& WithFirmwareUpdateRole(FirmwareUpdateRoleT&& value) {
146 SetFirmwareUpdateRole(std::forward<FirmwareUpdateRoleT>(value));
147 return *this;
148 }
150
152
153 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
154 template <typename CreatedAtT = Aws::Utils::DateTime>
155 void SetCreatedAt(CreatedAtT&& value) {
156 m_createdAtHasBeenSet = true;
157 m_createdAt = std::forward<CreatedAtT>(value);
158 }
159 template <typename CreatedAtT = Aws::Utils::DateTime>
160 GetFuotaTaskResult& WithCreatedAt(CreatedAtT&& value) {
161 SetCreatedAt(std::forward<CreatedAtT>(value));
162 return *this;
163 }
165
167
168 inline int GetRedundancyPercent() const { return m_redundancyPercent; }
169 inline void SetRedundancyPercent(int value) {
170 m_redundancyPercentHasBeenSet = true;
171 m_redundancyPercent = value;
172 }
175 return *this;
176 }
178
180
181 inline int GetFragmentSizeBytes() const { return m_fragmentSizeBytes; }
182 inline void SetFragmentSizeBytes(int value) {
183 m_fragmentSizeBytesHasBeenSet = true;
184 m_fragmentSizeBytes = value;
185 }
188 return *this;
189 }
191
193
194 inline int GetFragmentIntervalMS() const { return m_fragmentIntervalMS; }
195 inline void SetFragmentIntervalMS(int value) {
196 m_fragmentIntervalMSHasBeenSet = true;
197 m_fragmentIntervalMS = value;
198 }
201 return *this;
202 }
204
206
207 inline const Aws::String& GetDescriptor() const { return m_descriptor; }
208 template <typename DescriptorT = Aws::String>
209 void SetDescriptor(DescriptorT&& value) {
210 m_descriptorHasBeenSet = true;
211 m_descriptor = std::forward<DescriptorT>(value);
212 }
213 template <typename DescriptorT = Aws::String>
214 GetFuotaTaskResult& WithDescriptor(DescriptorT&& value) {
215 SetDescriptor(std::forward<DescriptorT>(value));
216 return *this;
217 }
219
221
222 inline const Aws::String& GetRequestId() const { return m_requestId; }
223 template <typename RequestIdT = Aws::String>
224 void SetRequestId(RequestIdT&& value) {
225 m_requestIdHasBeenSet = true;
226 m_requestId = std::forward<RequestIdT>(value);
227 }
228 template <typename RequestIdT = Aws::String>
229 GetFuotaTaskResult& WithRequestId(RequestIdT&& value) {
230 SetRequestId(std::forward<RequestIdT>(value));
231 return *this;
232 }
234 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
235
236 private:
237 Aws::String m_arn;
238
239 Aws::String m_id;
240
242
243 Aws::String m_name;
244
245 Aws::String m_description;
246
247 LoRaWANFuotaTaskGetInfo m_loRaWAN;
248
249 Aws::String m_firmwareUpdateImage;
250
251 Aws::String m_firmwareUpdateRole;
252
253 Aws::Utils::DateTime m_createdAt{};
254
255 int m_redundancyPercent{0};
256
257 int m_fragmentSizeBytes{0};
258
259 int m_fragmentIntervalMS{0};
260
261 Aws::String m_descriptor;
262
263 Aws::String m_requestId;
264 Aws::Http::HttpResponseCode m_HttpResponseCode;
265 bool m_arnHasBeenSet = false;
266 bool m_idHasBeenSet = false;
267 bool m_statusHasBeenSet = false;
268 bool m_nameHasBeenSet = false;
269 bool m_descriptionHasBeenSet = false;
270 bool m_loRaWANHasBeenSet = false;
271 bool m_firmwareUpdateImageHasBeenSet = false;
272 bool m_firmwareUpdateRoleHasBeenSet = false;
273 bool m_createdAtHasBeenSet = false;
274 bool m_redundancyPercentHasBeenSet = false;
275 bool m_fragmentSizeBytesHasBeenSet = false;
276 bool m_fragmentIntervalMSHasBeenSet = false;
277 bool m_descriptorHasBeenSet = false;
278 bool m_requestIdHasBeenSet = false;
279};
280
281} // namespace Model
282} // namespace IoTWireless
283} // namespace Aws
void SetFirmwareUpdateRole(FirmwareUpdateRoleT &&value)
GetFuotaTaskResult & WithArn(ArnT &&value)
AWS_IOTWIRELESS_API GetFuotaTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetFuotaTaskResult & WithStatus(FuotaTaskStatus value)
GetFuotaTaskResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetFirmwareUpdateRole() const
void SetFirmwareUpdateImage(FirmwareUpdateImageT &&value)
GetFuotaTaskResult & WithId(IdT &&value)
GetFuotaTaskResult & WithDescriptor(DescriptorT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetFuotaTaskResult & WithDescription(DescriptionT &&value)
GetFuotaTaskResult & WithFirmwareUpdateRole(FirmwareUpdateRoleT &&value)
const LoRaWANFuotaTaskGetInfo & GetLoRaWAN() const
AWS_IOTWIRELESS_API GetFuotaTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetFirmwareUpdateImage() const
GetFuotaTaskResult & WithFirmwareUpdateImage(FirmwareUpdateImageT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetFuotaTaskResult & WithFragmentSizeBytes(int value)
GetFuotaTaskResult & WithLoRaWAN(LoRaWANT &&value)
GetFuotaTaskResult & WithRedundancyPercent(int value)
GetFuotaTaskResult & WithName(NameT &&value)
AWS_IOTWIRELESS_API GetFuotaTaskResult()=default
GetFuotaTaskResult & WithCreatedAt(CreatedAtT &&value)
GetFuotaTaskResult & WithFragmentIntervalMS(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue