AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
OTAUpdateInfo.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iot/model/AwsJobExecutionsRolloutConfig.h>
12#include <aws/iot/model/AwsJobPresignedUrlConfig.h>
13#include <aws/iot/model/TargetSelection.h>
14#include <aws/iot/model/OTAUpdateStatus.h>
15#include <aws/iot/model/ErrorInfo.h>
16#include <aws/core/utils/memory/stl/AWSMap.h>
17#include <aws/iot/model/Protocol.h>
18#include <aws/iot/model/OTAUpdateFile.h>
19#include <utility>
20
21namespace Aws
22{
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28 class JsonView;
29} // namespace Json
30} // namespace Utils
31namespace IoT
32{
33namespace Model
34{
35
42 {
43 public:
44 AWS_IOT_API OTAUpdateInfo() = default;
48
49
51
54 inline const Aws::String& GetOtaUpdateId() const { return m_otaUpdateId; }
55 inline bool OtaUpdateIdHasBeenSet() const { return m_otaUpdateIdHasBeenSet; }
56 template<typename OtaUpdateIdT = Aws::String>
57 void SetOtaUpdateId(OtaUpdateIdT&& value) { m_otaUpdateIdHasBeenSet = true; m_otaUpdateId = std::forward<OtaUpdateIdT>(value); }
58 template<typename OtaUpdateIdT = Aws::String>
59 OTAUpdateInfo& WithOtaUpdateId(OtaUpdateIdT&& value) { SetOtaUpdateId(std::forward<OtaUpdateIdT>(value)); return *this;}
61
63
66 inline const Aws::String& GetOtaUpdateArn() const { return m_otaUpdateArn; }
67 inline bool OtaUpdateArnHasBeenSet() const { return m_otaUpdateArnHasBeenSet; }
68 template<typename OtaUpdateArnT = Aws::String>
69 void SetOtaUpdateArn(OtaUpdateArnT&& value) { m_otaUpdateArnHasBeenSet = true; m_otaUpdateArn = std::forward<OtaUpdateArnT>(value); }
70 template<typename OtaUpdateArnT = Aws::String>
71 OTAUpdateInfo& WithOtaUpdateArn(OtaUpdateArnT&& value) { SetOtaUpdateArn(std::forward<OtaUpdateArnT>(value)); return *this;}
73
75
78 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
79 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
80 template<typename CreationDateT = Aws::Utils::DateTime>
81 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
82 template<typename CreationDateT = Aws::Utils::DateTime>
83 OTAUpdateInfo& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
85
87
90 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
91 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
92 template<typename LastModifiedDateT = Aws::Utils::DateTime>
93 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
94 template<typename LastModifiedDateT = Aws::Utils::DateTime>
95 OTAUpdateInfo& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
97
99
102 inline const Aws::String& GetDescription() const { return m_description; }
103 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
104 template<typename DescriptionT = Aws::String>
105 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
106 template<typename DescriptionT = Aws::String>
107 OTAUpdateInfo& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
109
111
114 inline const Aws::Vector<Aws::String>& GetTargets() const { return m_targets; }
115 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
116 template<typename TargetsT = Aws::Vector<Aws::String>>
117 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
118 template<typename TargetsT = Aws::Vector<Aws::String>>
119 OTAUpdateInfo& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
120 template<typename TargetsT = Aws::String>
121 OTAUpdateInfo& AddTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets.emplace_back(std::forward<TargetsT>(value)); return *this; }
123
125
130 inline const Aws::Vector<Protocol>& GetProtocols() const { return m_protocols; }
131 inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; }
132 template<typename ProtocolsT = Aws::Vector<Protocol>>
133 void SetProtocols(ProtocolsT&& value) { m_protocolsHasBeenSet = true; m_protocols = std::forward<ProtocolsT>(value); }
134 template<typename ProtocolsT = Aws::Vector<Protocol>>
135 OTAUpdateInfo& WithProtocols(ProtocolsT&& value) { SetProtocols(std::forward<ProtocolsT>(value)); return *this;}
136 inline OTAUpdateInfo& AddProtocols(Protocol value) { m_protocolsHasBeenSet = true; m_protocols.push_back(value); return *this; }
138
140
143 inline const AwsJobExecutionsRolloutConfig& GetAwsJobExecutionsRolloutConfig() const { return m_awsJobExecutionsRolloutConfig; }
144 inline bool AwsJobExecutionsRolloutConfigHasBeenSet() const { return m_awsJobExecutionsRolloutConfigHasBeenSet; }
145 template<typename AwsJobExecutionsRolloutConfigT = AwsJobExecutionsRolloutConfig>
146 void SetAwsJobExecutionsRolloutConfig(AwsJobExecutionsRolloutConfigT&& value) { m_awsJobExecutionsRolloutConfigHasBeenSet = true; m_awsJobExecutionsRolloutConfig = std::forward<AwsJobExecutionsRolloutConfigT>(value); }
147 template<typename AwsJobExecutionsRolloutConfigT = AwsJobExecutionsRolloutConfig>
148 OTAUpdateInfo& WithAwsJobExecutionsRolloutConfig(AwsJobExecutionsRolloutConfigT&& value) { SetAwsJobExecutionsRolloutConfig(std::forward<AwsJobExecutionsRolloutConfigT>(value)); return *this;}
150
152
156 inline const AwsJobPresignedUrlConfig& GetAwsJobPresignedUrlConfig() const { return m_awsJobPresignedUrlConfig; }
157 inline bool AwsJobPresignedUrlConfigHasBeenSet() const { return m_awsJobPresignedUrlConfigHasBeenSet; }
158 template<typename AwsJobPresignedUrlConfigT = AwsJobPresignedUrlConfig>
159 void SetAwsJobPresignedUrlConfig(AwsJobPresignedUrlConfigT&& value) { m_awsJobPresignedUrlConfigHasBeenSet = true; m_awsJobPresignedUrlConfig = std::forward<AwsJobPresignedUrlConfigT>(value); }
160 template<typename AwsJobPresignedUrlConfigT = AwsJobPresignedUrlConfig>
161 OTAUpdateInfo& WithAwsJobPresignedUrlConfig(AwsJobPresignedUrlConfigT&& value) { SetAwsJobPresignedUrlConfig(std::forward<AwsJobPresignedUrlConfigT>(value)); return *this;}
163
165
173 inline TargetSelection GetTargetSelection() const { return m_targetSelection; }
174 inline bool TargetSelectionHasBeenSet() const { return m_targetSelectionHasBeenSet; }
175 inline void SetTargetSelection(TargetSelection value) { m_targetSelectionHasBeenSet = true; m_targetSelection = value; }
178
180
183 inline const Aws::Vector<OTAUpdateFile>& GetOtaUpdateFiles() const { return m_otaUpdateFiles; }
184 inline bool OtaUpdateFilesHasBeenSet() const { return m_otaUpdateFilesHasBeenSet; }
185 template<typename OtaUpdateFilesT = Aws::Vector<OTAUpdateFile>>
186 void SetOtaUpdateFiles(OtaUpdateFilesT&& value) { m_otaUpdateFilesHasBeenSet = true; m_otaUpdateFiles = std::forward<OtaUpdateFilesT>(value); }
187 template<typename OtaUpdateFilesT = Aws::Vector<OTAUpdateFile>>
188 OTAUpdateInfo& WithOtaUpdateFiles(OtaUpdateFilesT&& value) { SetOtaUpdateFiles(std::forward<OtaUpdateFilesT>(value)); return *this;}
189 template<typename OtaUpdateFilesT = OTAUpdateFile>
190 OTAUpdateInfo& AddOtaUpdateFiles(OtaUpdateFilesT&& value) { m_otaUpdateFilesHasBeenSet = true; m_otaUpdateFiles.emplace_back(std::forward<OtaUpdateFilesT>(value)); return *this; }
192
194
197 inline OTAUpdateStatus GetOtaUpdateStatus() const { return m_otaUpdateStatus; }
198 inline bool OtaUpdateStatusHasBeenSet() const { return m_otaUpdateStatusHasBeenSet; }
199 inline void SetOtaUpdateStatus(OTAUpdateStatus value) { m_otaUpdateStatusHasBeenSet = true; m_otaUpdateStatus = value; }
202
204
207 inline const Aws::String& GetAwsIotJobId() const { return m_awsIotJobId; }
208 inline bool AwsIotJobIdHasBeenSet() const { return m_awsIotJobIdHasBeenSet; }
209 template<typename AwsIotJobIdT = Aws::String>
210 void SetAwsIotJobId(AwsIotJobIdT&& value) { m_awsIotJobIdHasBeenSet = true; m_awsIotJobId = std::forward<AwsIotJobIdT>(value); }
211 template<typename AwsIotJobIdT = Aws::String>
212 OTAUpdateInfo& WithAwsIotJobId(AwsIotJobIdT&& value) { SetAwsIotJobId(std::forward<AwsIotJobIdT>(value)); return *this;}
214
216
219 inline const Aws::String& GetAwsIotJobArn() const { return m_awsIotJobArn; }
220 inline bool AwsIotJobArnHasBeenSet() const { return m_awsIotJobArnHasBeenSet; }
221 template<typename AwsIotJobArnT = Aws::String>
222 void SetAwsIotJobArn(AwsIotJobArnT&& value) { m_awsIotJobArnHasBeenSet = true; m_awsIotJobArn = std::forward<AwsIotJobArnT>(value); }
223 template<typename AwsIotJobArnT = Aws::String>
224 OTAUpdateInfo& WithAwsIotJobArn(AwsIotJobArnT&& value) { SetAwsIotJobArn(std::forward<AwsIotJobArnT>(value)); return *this;}
226
228
231 inline const ErrorInfo& GetErrorInfo() const { return m_errorInfo; }
232 inline bool ErrorInfoHasBeenSet() const { return m_errorInfoHasBeenSet; }
233 template<typename ErrorInfoT = ErrorInfo>
234 void SetErrorInfo(ErrorInfoT&& value) { m_errorInfoHasBeenSet = true; m_errorInfo = std::forward<ErrorInfoT>(value); }
235 template<typename ErrorInfoT = ErrorInfo>
236 OTAUpdateInfo& WithErrorInfo(ErrorInfoT&& value) { SetErrorInfo(std::forward<ErrorInfoT>(value)); return *this;}
238
240
243 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalParameters() const { return m_additionalParameters; }
244 inline bool AdditionalParametersHasBeenSet() const { return m_additionalParametersHasBeenSet; }
245 template<typename AdditionalParametersT = Aws::Map<Aws::String, Aws::String>>
246 void SetAdditionalParameters(AdditionalParametersT&& value) { m_additionalParametersHasBeenSet = true; m_additionalParameters = std::forward<AdditionalParametersT>(value); }
247 template<typename AdditionalParametersT = Aws::Map<Aws::String, Aws::String>>
248 OTAUpdateInfo& WithAdditionalParameters(AdditionalParametersT&& value) { SetAdditionalParameters(std::forward<AdditionalParametersT>(value)); return *this;}
249 template<typename AdditionalParametersKeyT = Aws::String, typename AdditionalParametersValueT = Aws::String>
250 OTAUpdateInfo& AddAdditionalParameters(AdditionalParametersKeyT&& key, AdditionalParametersValueT&& value) {
251 m_additionalParametersHasBeenSet = true; m_additionalParameters.emplace(std::forward<AdditionalParametersKeyT>(key), std::forward<AdditionalParametersValueT>(value)); return *this;
252 }
254 private:
255
256 Aws::String m_otaUpdateId;
257 bool m_otaUpdateIdHasBeenSet = false;
258
259 Aws::String m_otaUpdateArn;
260 bool m_otaUpdateArnHasBeenSet = false;
261
262 Aws::Utils::DateTime m_creationDate{};
263 bool m_creationDateHasBeenSet = false;
264
265 Aws::Utils::DateTime m_lastModifiedDate{};
266 bool m_lastModifiedDateHasBeenSet = false;
267
268 Aws::String m_description;
269 bool m_descriptionHasBeenSet = false;
270
271 Aws::Vector<Aws::String> m_targets;
272 bool m_targetsHasBeenSet = false;
273
274 Aws::Vector<Protocol> m_protocols;
275 bool m_protocolsHasBeenSet = false;
276
277 AwsJobExecutionsRolloutConfig m_awsJobExecutionsRolloutConfig;
278 bool m_awsJobExecutionsRolloutConfigHasBeenSet = false;
279
280 AwsJobPresignedUrlConfig m_awsJobPresignedUrlConfig;
281 bool m_awsJobPresignedUrlConfigHasBeenSet = false;
282
283 TargetSelection m_targetSelection{TargetSelection::NOT_SET};
284 bool m_targetSelectionHasBeenSet = false;
285
286 Aws::Vector<OTAUpdateFile> m_otaUpdateFiles;
287 bool m_otaUpdateFilesHasBeenSet = false;
288
289 OTAUpdateStatus m_otaUpdateStatus{OTAUpdateStatus::NOT_SET};
290 bool m_otaUpdateStatusHasBeenSet = false;
291
292 Aws::String m_awsIotJobId;
293 bool m_awsIotJobIdHasBeenSet = false;
294
295 Aws::String m_awsIotJobArn;
296 bool m_awsIotJobArnHasBeenSet = false;
297
298 ErrorInfo m_errorInfo;
299 bool m_errorInfoHasBeenSet = false;
300
301 Aws::Map<Aws::String, Aws::String> m_additionalParameters;
302 bool m_additionalParametersHasBeenSet = false;
303 };
304
305} // namespace Model
306} // namespace IoT
307} // namespace Aws
bool AwsJobExecutionsRolloutConfigHasBeenSet() const
bool AdditionalParametersHasBeenSet() const
OTAUpdateInfo & AddOtaUpdateFiles(OtaUpdateFilesT &&value)
void SetOtaUpdateId(OtaUpdateIdT &&value)
OTAUpdateInfo & WithOtaUpdateFiles(OtaUpdateFilesT &&value)
const Aws::Vector< Protocol > & GetProtocols() const
AWS_IOT_API OTAUpdateInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API OTAUpdateInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
OTAUpdateInfo & WithDescription(DescriptionT &&value)
OTAUpdateInfo & WithAwsIotJobArn(AwsIotJobArnT &&value)
void SetOtaUpdateStatus(OTAUpdateStatus value)
const Aws::Vector< Aws::String > & GetTargets() const
void SetTargetSelection(TargetSelection value)
void SetAwsJobExecutionsRolloutConfig(AwsJobExecutionsRolloutConfigT &&value)
OTAUpdateStatus GetOtaUpdateStatus() const
const Aws::String & GetOtaUpdateId() const
OTAUpdateInfo & AddTargets(TargetsT &&value)
const Aws::String & GetAwsIotJobId() const
const Aws::String & GetAwsIotJobArn() const
OTAUpdateInfo & WithProtocols(ProtocolsT &&value)
const ErrorInfo & GetErrorInfo() const
const Aws::String & GetOtaUpdateArn() const
OTAUpdateInfo & WithAwsJobPresignedUrlConfig(AwsJobPresignedUrlConfigT &&value)
void SetLastModifiedDate(LastModifiedDateT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
void SetCreationDate(CreationDateT &&value)
OTAUpdateInfo & WithOtaUpdateStatus(OTAUpdateStatus value)
void SetAwsIotJobArn(AwsIotJobArnT &&value)
void SetOtaUpdateFiles(OtaUpdateFilesT &&value)
const Aws::String & GetDescription() const
void SetProtocols(ProtocolsT &&value)
void SetAwsIotJobId(AwsIotJobIdT &&value)
OTAUpdateInfo & WithAwsIotJobId(AwsIotJobIdT &&value)
const Aws::Utils::DateTime & GetLastModifiedDate() const
void SetDescription(DescriptionT &&value)
void SetTargets(TargetsT &&value)
bool AwsJobPresignedUrlConfigHasBeenSet() const
OTAUpdateInfo & WithAwsJobExecutionsRolloutConfig(AwsJobExecutionsRolloutConfigT &&value)
OTAUpdateInfo & WithLastModifiedDate(LastModifiedDateT &&value)
void SetAwsJobPresignedUrlConfig(AwsJobPresignedUrlConfigT &&value)
const Aws::Vector< OTAUpdateFile > & GetOtaUpdateFiles() const
OTAUpdateInfo & WithOtaUpdateArn(OtaUpdateArnT &&value)
OTAUpdateInfo & WithAdditionalParameters(AdditionalParametersT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOtaUpdateArn(OtaUpdateArnT &&value)
void SetAdditionalParameters(AdditionalParametersT &&value)
OTAUpdateInfo & WithTargets(TargetsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAdditionalParameters() const
OTAUpdateInfo & AddProtocols(Protocol value)
AWS_IOT_API OTAUpdateInfo()=default
TargetSelection GetTargetSelection() const
OTAUpdateInfo & WithOtaUpdateId(OtaUpdateIdT &&value)
const AwsJobPresignedUrlConfig & GetAwsJobPresignedUrlConfig() const
OTAUpdateInfo & AddAdditionalParameters(AdditionalParametersKeyT &&key, AdditionalParametersValueT &&value)
void SetErrorInfo(ErrorInfoT &&value)
OTAUpdateInfo & WithTargetSelection(TargetSelection value)
OTAUpdateInfo & WithCreationDate(CreationDateT &&value)
OTAUpdateInfo & WithErrorInfo(ErrorInfoT &&value)
const AwsJobExecutionsRolloutConfig & GetAwsJobExecutionsRolloutConfig() const
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