AWS SDK for C++

AWS SDK for C++ Version 1.11.613

Loading...
Searching...
No Matches
GetOtaTaskResult.h
1
6#pragma once
7#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot-managed-integrations/model/OtaProtocol.h>
10#include <aws/iot-managed-integrations/model/OtaType.h>
11#include <aws/iot-managed-integrations/model/OtaMechanism.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/iot-managed-integrations/model/TaskProcessingDetails.h>
15#include <aws/iot-managed-integrations/model/OtaTaskSchedulingConfig.h>
16#include <aws/iot-managed-integrations/model/OtaTaskExecutionRetryConfig.h>
17#include <aws/iot-managed-integrations/model/OtaStatus.h>
18#include <aws/core/utils/memory/stl/AWSMap.h>
19#include <utility>
20
21namespace Aws
22{
23template<typename RESULT_TYPE>
24class AmazonWebServiceResult;
25
26namespace Utils
27{
28namespace Json
29{
30 class JsonValue;
31} // namespace Json
32} // namespace Utils
33namespace IoTManagedIntegrations
34{
35namespace Model
36{
38 {
39 public:
40 AWS_IOTMANAGEDINTEGRATIONS_API GetOtaTaskResult() = default;
43
44
46
49 inline const Aws::String& GetTaskId() const { return m_taskId; }
50 template<typename TaskIdT = Aws::String>
51 void SetTaskId(TaskIdT&& value) { m_taskIdHasBeenSet = true; m_taskId = std::forward<TaskIdT>(value); }
52 template<typename TaskIdT = Aws::String>
53 GetOtaTaskResult& WithTaskId(TaskIdT&& value) { SetTaskId(std::forward<TaskIdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetTaskArn() const { return m_taskArn; }
61 template<typename TaskArnT = Aws::String>
62 void SetTaskArn(TaskArnT&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::forward<TaskArnT>(value); }
63 template<typename TaskArnT = Aws::String>
64 GetOtaTaskResult& WithTaskArn(TaskArnT&& value) { SetTaskArn(std::forward<TaskArnT>(value)); return *this;}
66
68
71 inline const Aws::String& GetDescription() const { return m_description; }
72 template<typename DescriptionT = Aws::String>
73 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
74 template<typename DescriptionT = Aws::String>
75 GetOtaTaskResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
77
79
83 inline const Aws::String& GetS3Url() const { return m_s3Url; }
84 template<typename S3UrlT = Aws::String>
85 void SetS3Url(S3UrlT&& value) { m_s3UrlHasBeenSet = true; m_s3Url = std::forward<S3UrlT>(value); }
86 template<typename S3UrlT = Aws::String>
87 GetOtaTaskResult& WithS3Url(S3UrlT&& value) { SetS3Url(std::forward<S3UrlT>(value)); return *this;}
89
91
95 inline OtaProtocol GetProtocol() const { return m_protocol; }
96 inline void SetProtocol(OtaProtocol value) { m_protocolHasBeenSet = true; m_protocol = value; }
97 inline GetOtaTaskResult& WithProtocol(OtaProtocol value) { SetProtocol(value); return *this;}
99
101
104 inline OtaType GetOtaType() const { return m_otaType; }
105 inline void SetOtaType(OtaType value) { m_otaTypeHasBeenSet = true; m_otaType = value; }
106 inline GetOtaTaskResult& WithOtaType(OtaType value) { SetOtaType(value); return *this;}
108
110
113 inline const Aws::String& GetOtaTargetQueryString() const { return m_otaTargetQueryString; }
114 template<typename OtaTargetQueryStringT = Aws::String>
115 void SetOtaTargetQueryString(OtaTargetQueryStringT&& value) { m_otaTargetQueryStringHasBeenSet = true; m_otaTargetQueryString = std::forward<OtaTargetQueryStringT>(value); }
116 template<typename OtaTargetQueryStringT = Aws::String>
117 GetOtaTaskResult& WithOtaTargetQueryString(OtaTargetQueryStringT&& value) { SetOtaTargetQueryString(std::forward<OtaTargetQueryStringT>(value)); return *this;}
119
121
124 inline OtaMechanism GetOtaMechanism() const { return m_otaMechanism; }
125 inline void SetOtaMechanism(OtaMechanism value) { m_otaMechanismHasBeenSet = true; m_otaMechanism = value; }
126 inline GetOtaTaskResult& WithOtaMechanism(OtaMechanism value) { SetOtaMechanism(value); return *this;}
128
130
133 inline const Aws::Vector<Aws::String>& GetTarget() const { return m_target; }
134 template<typename TargetT = Aws::Vector<Aws::String>>
135 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
136 template<typename TargetT = Aws::Vector<Aws::String>>
137 GetOtaTaskResult& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
138 template<typename TargetT = Aws::String>
139 GetOtaTaskResult& AddTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target.emplace_back(std::forward<TargetT>(value)); return *this; }
141
143
146 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
147 template<typename CreatedAtT = Aws::Utils::DateTime>
148 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
149 template<typename CreatedAtT = Aws::Utils::DateTime>
150 GetOtaTaskResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
152
154
158 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
159 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
160 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
161 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
162 GetOtaTaskResult& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
164
166
169 inline const Aws::String& GetTaskConfigurationId() const { return m_taskConfigurationId; }
170 template<typename TaskConfigurationIdT = Aws::String>
171 void SetTaskConfigurationId(TaskConfigurationIdT&& value) { m_taskConfigurationIdHasBeenSet = true; m_taskConfigurationId = std::forward<TaskConfigurationIdT>(value); }
172 template<typename TaskConfigurationIdT = Aws::String>
173 GetOtaTaskResult& WithTaskConfigurationId(TaskConfigurationIdT&& value) { SetTaskConfigurationId(std::forward<TaskConfigurationIdT>(value)); return *this;}
175
177
180 inline const TaskProcessingDetails& GetTaskProcessingDetails() const { return m_taskProcessingDetails; }
181 template<typename TaskProcessingDetailsT = TaskProcessingDetails>
182 void SetTaskProcessingDetails(TaskProcessingDetailsT&& value) { m_taskProcessingDetailsHasBeenSet = true; m_taskProcessingDetails = std::forward<TaskProcessingDetailsT>(value); }
183 template<typename TaskProcessingDetailsT = TaskProcessingDetails>
184 GetOtaTaskResult& WithTaskProcessingDetails(TaskProcessingDetailsT&& value) { SetTaskProcessingDetails(std::forward<TaskProcessingDetailsT>(value)); return *this;}
186
188
189 inline const OtaTaskSchedulingConfig& GetOtaSchedulingConfig() const { return m_otaSchedulingConfig; }
190 template<typename OtaSchedulingConfigT = OtaTaskSchedulingConfig>
191 void SetOtaSchedulingConfig(OtaSchedulingConfigT&& value) { m_otaSchedulingConfigHasBeenSet = true; m_otaSchedulingConfig = std::forward<OtaSchedulingConfigT>(value); }
192 template<typename OtaSchedulingConfigT = OtaTaskSchedulingConfig>
193 GetOtaTaskResult& WithOtaSchedulingConfig(OtaSchedulingConfigT&& value) { SetOtaSchedulingConfig(std::forward<OtaSchedulingConfigT>(value)); return *this;}
195
197
198 inline const OtaTaskExecutionRetryConfig& GetOtaTaskExecutionRetryConfig() const { return m_otaTaskExecutionRetryConfig; }
199 template<typename OtaTaskExecutionRetryConfigT = OtaTaskExecutionRetryConfig>
200 void SetOtaTaskExecutionRetryConfig(OtaTaskExecutionRetryConfigT&& value) { m_otaTaskExecutionRetryConfigHasBeenSet = true; m_otaTaskExecutionRetryConfig = std::forward<OtaTaskExecutionRetryConfigT>(value); }
201 template<typename OtaTaskExecutionRetryConfigT = OtaTaskExecutionRetryConfig>
202 GetOtaTaskResult& WithOtaTaskExecutionRetryConfig(OtaTaskExecutionRetryConfigT&& value) { SetOtaTaskExecutionRetryConfig(std::forward<OtaTaskExecutionRetryConfigT>(value)); return *this;}
204
206
209 inline OtaStatus GetStatus() const { return m_status; }
210 inline void SetStatus(OtaStatus value) { m_statusHasBeenSet = true; m_status = value; }
211 inline GetOtaTaskResult& WithStatus(OtaStatus value) { SetStatus(value); return *this;}
213
215
219 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
220 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
221 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
222 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
223 GetOtaTaskResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
224 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
225 GetOtaTaskResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
226 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
227 }
229
231
232 inline const Aws::String& GetRequestId() const { return m_requestId; }
233 template<typename RequestIdT = Aws::String>
234 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
235 template<typename RequestIdT = Aws::String>
236 GetOtaTaskResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
238 private:
239
240 Aws::String m_taskId;
241 bool m_taskIdHasBeenSet = false;
242
243 Aws::String m_taskArn;
244 bool m_taskArnHasBeenSet = false;
245
246 Aws::String m_description;
247 bool m_descriptionHasBeenSet = false;
248
249 Aws::String m_s3Url;
250 bool m_s3UrlHasBeenSet = false;
251
253 bool m_protocolHasBeenSet = false;
254
255 OtaType m_otaType{OtaType::NOT_SET};
256 bool m_otaTypeHasBeenSet = false;
257
258 Aws::String m_otaTargetQueryString;
259 bool m_otaTargetQueryStringHasBeenSet = false;
260
261 OtaMechanism m_otaMechanism{OtaMechanism::NOT_SET};
262 bool m_otaMechanismHasBeenSet = false;
263
265 bool m_targetHasBeenSet = false;
266
267 Aws::Utils::DateTime m_createdAt{};
268 bool m_createdAtHasBeenSet = false;
269
270 Aws::Utils::DateTime m_lastUpdatedAt{};
271 bool m_lastUpdatedAtHasBeenSet = false;
272
273 Aws::String m_taskConfigurationId;
274 bool m_taskConfigurationIdHasBeenSet = false;
275
276 TaskProcessingDetails m_taskProcessingDetails;
277 bool m_taskProcessingDetailsHasBeenSet = false;
278
279 OtaTaskSchedulingConfig m_otaSchedulingConfig;
280 bool m_otaSchedulingConfigHasBeenSet = false;
281
282 OtaTaskExecutionRetryConfig m_otaTaskExecutionRetryConfig;
283 bool m_otaTaskExecutionRetryConfigHasBeenSet = false;
284
286 bool m_statusHasBeenSet = false;
287
289 bool m_tagsHasBeenSet = false;
290
291 Aws::String m_requestId;
292 bool m_requestIdHasBeenSet = false;
293 };
294
295} // namespace Model
296} // namespace IoTManagedIntegrations
297} // namespace Aws
void SetOtaTargetQueryString(OtaTargetQueryStringT &&value)
void SetOtaTaskExecutionRetryConfig(OtaTaskExecutionRetryConfigT &&value)
const OtaTaskExecutionRetryConfig & GetOtaTaskExecutionRetryConfig() const
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Utils::DateTime & GetLastUpdatedAt() const
GetOtaTaskResult & WithTaskArn(TaskArnT &&value)
void SetTaskProcessingDetails(TaskProcessingDetailsT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API GetOtaTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const OtaTaskSchedulingConfig & GetOtaSchedulingConfig() const
GetOtaTaskResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetOtaTaskResult & WithTaskConfigurationId(TaskConfigurationIdT &&value)
GetOtaTaskResult & WithOtaMechanism(OtaMechanism value)
GetOtaTaskResult & WithTaskId(TaskIdT &&value)
GetOtaTaskResult & WithTaskProcessingDetails(TaskProcessingDetailsT &&value)
GetOtaTaskResult & WithOtaTargetQueryString(OtaTargetQueryStringT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_IOTMANAGEDINTEGRATIONS_API GetOtaTaskResult()=default
void SetTaskConfigurationId(TaskConfigurationIdT &&value)
GetOtaTaskResult & WithRequestId(RequestIdT &&value)
const TaskProcessingDetails & GetTaskProcessingDetails() const
AWS_IOTMANAGEDINTEGRATIONS_API GetOtaTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetOtaTaskResult & WithOtaSchedulingConfig(OtaSchedulingConfigT &&value)
GetOtaTaskResult & WithProtocol(OtaProtocol value)
GetOtaTaskResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
GetOtaTaskResult & WithDescription(DescriptionT &&value)
GetOtaTaskResult & WithOtaTaskExecutionRetryConfig(OtaTaskExecutionRetryConfigT &&value)
const Aws::Vector< Aws::String > & GetTarget() const
void SetOtaSchedulingConfig(OtaSchedulingConfigT &&value)
GetOtaTaskResult & WithCreatedAt(CreatedAtT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue