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>
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>
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>
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>
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>
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>
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>>
120 template<
typename TargetsT = Aws::String>
121 OTAUpdateInfo&
AddTargets(TargetsT&& value) { m_targetsHasBeenSet =
true; m_targets.emplace_back(std::forward<TargetsT>(value));
return *
this; }
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>>
145 template<
typename AwsJobExecutionsRolloutConfigT = AwsJobExecutionsRolloutConfig>
146 void SetAwsJobExecutionsRolloutConfig(AwsJobExecutionsRolloutConfigT&& value) { m_awsJobExecutionsRolloutConfigHasBeenSet =
true; m_awsJobExecutionsRolloutConfig = std::forward<AwsJobExecutionsRolloutConfigT>(value); }
147 template<
typename AwsJobExecutionsRolloutConfigT = AwsJobExecutionsRolloutConfig>
158 template<
typename AwsJobPre
signedUrlConfigT = AwsJobPre
signedUrlConfig>
159 void SetAwsJobPresignedUrlConfig(AwsJobPresignedUrlConfigT&& value) { m_awsJobPresignedUrlConfigHasBeenSet =
true; m_awsJobPresignedUrlConfig = std::forward<AwsJobPresignedUrlConfigT>(value); }
160 template<
typename AwsJobPre
signedUrlConfigT = AwsJobPre
signedUrlConfig>
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>>
189 template<
typename OtaUpdateFilesT = OTAUpdateFile>
190 OTAUpdateInfo&
AddOtaUpdateFiles(OtaUpdateFilesT&& value) { m_otaUpdateFilesHasBeenSet =
true; m_otaUpdateFiles.emplace_back(std::forward<OtaUpdateFilesT>(value));
return *
this; }
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>
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>
233 template<
typename ErrorInfoT = ErrorInfo>
234 void SetErrorInfo(ErrorInfoT&& value) { m_errorInfoHasBeenSet =
true; m_errorInfo = std::forward<ErrorInfoT>(value); }
235 template<
typename ErrorInfoT = ErrorInfo>
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>>
249 template<
typename AdditionalParametersKeyT = Aws::String,
typename AdditionalParametersValueT = Aws::String>
251 m_additionalParametersHasBeenSet =
true; m_additionalParameters.emplace(std::forward<AdditionalParametersKeyT>(key), std::forward<AdditionalParametersValueT>(value));
return *
this;
257 bool m_otaUpdateIdHasBeenSet =
false;
260 bool m_otaUpdateArnHasBeenSet =
false;
263 bool m_creationDateHasBeenSet =
false;
266 bool m_lastModifiedDateHasBeenSet =
false;
269 bool m_descriptionHasBeenSet =
false;
272 bool m_targetsHasBeenSet =
false;
275 bool m_protocolsHasBeenSet =
false;
277 AwsJobExecutionsRolloutConfig m_awsJobExecutionsRolloutConfig;
278 bool m_awsJobExecutionsRolloutConfigHasBeenSet =
false;
280 AwsJobPresignedUrlConfig m_awsJobPresignedUrlConfig;
281 bool m_awsJobPresignedUrlConfigHasBeenSet =
false;
284 bool m_targetSelectionHasBeenSet =
false;
287 bool m_otaUpdateFilesHasBeenSet =
false;
290 bool m_otaUpdateStatusHasBeenSet =
false;
293 bool m_awsIotJobIdHasBeenSet =
false;
296 bool m_awsIotJobArnHasBeenSet =
false;
298 ErrorInfo m_errorInfo;
299 bool m_errorInfoHasBeenSet =
false;
302 bool m_additionalParametersHasBeenSet =
false;
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)
bool CreationDateHasBeenSet() const
void SetAwsJobExecutionsRolloutConfig(AwsJobExecutionsRolloutConfigT &&value)
OTAUpdateStatus GetOtaUpdateStatus() const
const Aws::String & GetOtaUpdateId() const
OTAUpdateInfo & AddTargets(TargetsT &&value)
bool TargetSelectionHasBeenSet() const
const Aws::String & GetAwsIotJobId() const
const Aws::String & GetAwsIotJobArn() const
OTAUpdateInfo & WithProtocols(ProtocolsT &&value)
const ErrorInfo & GetErrorInfo() const
const Aws::String & GetOtaUpdateArn() const
bool TargetsHasBeenSet() const
OTAUpdateInfo & WithAwsJobPresignedUrlConfig(AwsJobPresignedUrlConfigT &&value)
void SetLastModifiedDate(LastModifiedDateT &&value)
bool LastModifiedDateHasBeenSet() const
const Aws::Utils::DateTime & GetCreationDate() const
bool OtaUpdateFilesHasBeenSet() 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)
bool AwsIotJobIdHasBeenSet() const
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)
bool ProtocolsHasBeenSet() const
bool DescriptionHasBeenSet() const
bool OtaUpdateIdHasBeenSet() const
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
bool OtaUpdateArnHasBeenSet() const
OTAUpdateInfo & WithOtaUpdateId(OtaUpdateIdT &&value)
const AwsJobPresignedUrlConfig & GetAwsJobPresignedUrlConfig() const
bool ErrorInfoHasBeenSet() const
OTAUpdateInfo & AddAdditionalParameters(AdditionalParametersKeyT &&key, AdditionalParametersValueT &&value)
void SetErrorInfo(ErrorInfoT &&value)
OTAUpdateInfo & WithTargetSelection(TargetSelection value)
OTAUpdateInfo & WithCreationDate(CreationDateT &&value)
bool OtaUpdateStatusHasBeenSet() const
OTAUpdateInfo & WithErrorInfo(ErrorInfoT &&value)
const AwsJobExecutionsRolloutConfig & GetAwsJobExecutionsRolloutConfig() const
bool AwsIotJobArnHasBeenSet() 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