/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about an OTA update.See Also:
AWS
* API Reference
The OTA update ID.
*/ inline const Aws::String& GetOtaUpdateId() const{ return m_otaUpdateId; } /** *The OTA update ID.
*/ inline bool OtaUpdateIdHasBeenSet() const { return m_otaUpdateIdHasBeenSet; } /** *The OTA update ID.
*/ inline void SetOtaUpdateId(const Aws::String& value) { m_otaUpdateIdHasBeenSet = true; m_otaUpdateId = value; } /** *The OTA update ID.
*/ inline void SetOtaUpdateId(Aws::String&& value) { m_otaUpdateIdHasBeenSet = true; m_otaUpdateId = std::move(value); } /** *The OTA update ID.
*/ inline void SetOtaUpdateId(const char* value) { m_otaUpdateIdHasBeenSet = true; m_otaUpdateId.assign(value); } /** *The OTA update ID.
*/ inline OTAUpdateInfo& WithOtaUpdateId(const Aws::String& value) { SetOtaUpdateId(value); return *this;} /** *The OTA update ID.
*/ inline OTAUpdateInfo& WithOtaUpdateId(Aws::String&& value) { SetOtaUpdateId(std::move(value)); return *this;} /** *The OTA update ID.
*/ inline OTAUpdateInfo& WithOtaUpdateId(const char* value) { SetOtaUpdateId(value); return *this;} /** *The OTA update ARN.
*/ inline const Aws::String& GetOtaUpdateArn() const{ return m_otaUpdateArn; } /** *The OTA update ARN.
*/ inline bool OtaUpdateArnHasBeenSet() const { return m_otaUpdateArnHasBeenSet; } /** *The OTA update ARN.
*/ inline void SetOtaUpdateArn(const Aws::String& value) { m_otaUpdateArnHasBeenSet = true; m_otaUpdateArn = value; } /** *The OTA update ARN.
*/ inline void SetOtaUpdateArn(Aws::String&& value) { m_otaUpdateArnHasBeenSet = true; m_otaUpdateArn = std::move(value); } /** *The OTA update ARN.
*/ inline void SetOtaUpdateArn(const char* value) { m_otaUpdateArnHasBeenSet = true; m_otaUpdateArn.assign(value); } /** *The OTA update ARN.
*/ inline OTAUpdateInfo& WithOtaUpdateArn(const Aws::String& value) { SetOtaUpdateArn(value); return *this;} /** *The OTA update ARN.
*/ inline OTAUpdateInfo& WithOtaUpdateArn(Aws::String&& value) { SetOtaUpdateArn(std::move(value)); return *this;} /** *The OTA update ARN.
*/ inline OTAUpdateInfo& WithOtaUpdateArn(const char* value) { SetOtaUpdateArn(value); return *this;} /** *The date when the OTA update was created.
*/ inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } /** *The date when the OTA update was created.
*/ inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; } /** *The date when the OTA update was created.
*/ inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; } /** *The date when the OTA update was created.
*/ inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); } /** *The date when the OTA update was created.
*/ inline OTAUpdateInfo& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *The date when the OTA update was created.
*/ inline OTAUpdateInfo& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} /** *The date when the OTA update was last updated.
*/ inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; } /** *The date when the OTA update was last updated.
*/ inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; } /** *The date when the OTA update was last updated.
*/ inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; } /** *The date when the OTA update was last updated.
*/ inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); } /** *The date when the OTA update was last updated.
*/ inline OTAUpdateInfo& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;} /** *The date when the OTA update was last updated.
*/ inline OTAUpdateInfo& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;} /** *A description of the OTA update.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *A description of the OTA update.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *A description of the OTA update.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *A description of the OTA update.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *A description of the OTA update.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *A description of the OTA update.
*/ inline OTAUpdateInfo& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *A description of the OTA update.
*/ inline OTAUpdateInfo& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *A description of the OTA update.
*/ inline OTAUpdateInfo& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The targets of the OTA update.
*/ inline const Aws::VectorThe targets of the OTA update.
*/ inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; } /** *The targets of the OTA update.
*/ inline void SetTargets(const Aws::VectorThe targets of the OTA update.
*/ inline void SetTargets(Aws::VectorThe targets of the OTA update.
*/ inline OTAUpdateInfo& WithTargets(const Aws::VectorThe targets of the OTA update.
*/ inline OTAUpdateInfo& WithTargets(Aws::VectorThe targets of the OTA update.
*/ inline OTAUpdateInfo& AddTargets(const Aws::String& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; } /** *The targets of the OTA update.
*/ inline OTAUpdateInfo& AddTargets(Aws::String&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; } /** *The targets of the OTA update.
*/ inline OTAUpdateInfo& AddTargets(const char* value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; } /** *The protocol used to transfer the OTA update image. Valid values are [HTTP], * [MQTT], [HTTP, MQTT]. When both HTTP and MQTT are specified, the target device * can choose the protocol.
*/ inline const Aws::VectorThe protocol used to transfer the OTA update image. Valid values are [HTTP], * [MQTT], [HTTP, MQTT]. When both HTTP and MQTT are specified, the target device * can choose the protocol.
*/ inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; } /** *The protocol used to transfer the OTA update image. Valid values are [HTTP], * [MQTT], [HTTP, MQTT]. When both HTTP and MQTT are specified, the target device * can choose the protocol.
*/ inline void SetProtocols(const Aws::VectorThe protocol used to transfer the OTA update image. Valid values are [HTTP], * [MQTT], [HTTP, MQTT]. When both HTTP and MQTT are specified, the target device * can choose the protocol.
*/ inline void SetProtocols(Aws::VectorThe protocol used to transfer the OTA update image. Valid values are [HTTP], * [MQTT], [HTTP, MQTT]. When both HTTP and MQTT are specified, the target device * can choose the protocol.
*/ inline OTAUpdateInfo& WithProtocols(const Aws::VectorThe protocol used to transfer the OTA update image. Valid values are [HTTP], * [MQTT], [HTTP, MQTT]. When both HTTP and MQTT are specified, the target device * can choose the protocol.
*/ inline OTAUpdateInfo& WithProtocols(Aws::VectorThe protocol used to transfer the OTA update image. Valid values are [HTTP], * [MQTT], [HTTP, MQTT]. When both HTTP and MQTT are specified, the target device * can choose the protocol.
*/ inline OTAUpdateInfo& AddProtocols(const Protocol& value) { m_protocolsHasBeenSet = true; m_protocols.push_back(value); return *this; } /** *The protocol used to transfer the OTA update image. Valid values are [HTTP], * [MQTT], [HTTP, MQTT]. When both HTTP and MQTT are specified, the target device * can choose the protocol.
*/ inline OTAUpdateInfo& AddProtocols(Protocol&& value) { m_protocolsHasBeenSet = true; m_protocols.push_back(std::move(value)); return *this; } /** *Configuration for the rollout of OTA updates.
*/ inline const AwsJobExecutionsRolloutConfig& GetAwsJobExecutionsRolloutConfig() const{ return m_awsJobExecutionsRolloutConfig; } /** *Configuration for the rollout of OTA updates.
*/ inline bool AwsJobExecutionsRolloutConfigHasBeenSet() const { return m_awsJobExecutionsRolloutConfigHasBeenSet; } /** *Configuration for the rollout of OTA updates.
*/ inline void SetAwsJobExecutionsRolloutConfig(const AwsJobExecutionsRolloutConfig& value) { m_awsJobExecutionsRolloutConfigHasBeenSet = true; m_awsJobExecutionsRolloutConfig = value; } /** *Configuration for the rollout of OTA updates.
*/ inline void SetAwsJobExecutionsRolloutConfig(AwsJobExecutionsRolloutConfig&& value) { m_awsJobExecutionsRolloutConfigHasBeenSet = true; m_awsJobExecutionsRolloutConfig = std::move(value); } /** *Configuration for the rollout of OTA updates.
*/ inline OTAUpdateInfo& WithAwsJobExecutionsRolloutConfig(const AwsJobExecutionsRolloutConfig& value) { SetAwsJobExecutionsRolloutConfig(value); return *this;} /** *Configuration for the rollout of OTA updates.
*/ inline OTAUpdateInfo& WithAwsJobExecutionsRolloutConfig(AwsJobExecutionsRolloutConfig&& value) { SetAwsJobExecutionsRolloutConfig(std::move(value)); return *this;} /** *Configuration information for pre-signed URLs. Valid when
* protocols
contains HTTP.
Configuration information for pre-signed URLs. Valid when
* protocols
contains HTTP.
Configuration information for pre-signed URLs. Valid when
* protocols
contains HTTP.
Configuration information for pre-signed URLs. Valid when
* protocols
contains HTTP.
Configuration information for pre-signed URLs. Valid when
* protocols
contains HTTP.
Configuration information for pre-signed URLs. Valid when
* protocols
contains HTTP.
Specifies whether the OTA update will continue to run (CONTINUOUS), or will * be complete after all those things specified as targets have completed the OTA * update (SNAPSHOT). If continuous, the OTA update may also be run on a thing when * a change is detected in a target. For example, an OTA update will run on a thing * when the thing is added to a target group, even after the OTA update was * completed by all things originally in the group.
*/ inline const TargetSelection& GetTargetSelection() const{ return m_targetSelection; } /** *Specifies whether the OTA update will continue to run (CONTINUOUS), or will * be complete after all those things specified as targets have completed the OTA * update (SNAPSHOT). If continuous, the OTA update may also be run on a thing when * a change is detected in a target. For example, an OTA update will run on a thing * when the thing is added to a target group, even after the OTA update was * completed by all things originally in the group.
*/ inline bool TargetSelectionHasBeenSet() const { return m_targetSelectionHasBeenSet; } /** *Specifies whether the OTA update will continue to run (CONTINUOUS), or will * be complete after all those things specified as targets have completed the OTA * update (SNAPSHOT). If continuous, the OTA update may also be run on a thing when * a change is detected in a target. For example, an OTA update will run on a thing * when the thing is added to a target group, even after the OTA update was * completed by all things originally in the group.
*/ inline void SetTargetSelection(const TargetSelection& value) { m_targetSelectionHasBeenSet = true; m_targetSelection = value; } /** *Specifies whether the OTA update will continue to run (CONTINUOUS), or will * be complete after all those things specified as targets have completed the OTA * update (SNAPSHOT). If continuous, the OTA update may also be run on a thing when * a change is detected in a target. For example, an OTA update will run on a thing * when the thing is added to a target group, even after the OTA update was * completed by all things originally in the group.
*/ inline void SetTargetSelection(TargetSelection&& value) { m_targetSelectionHasBeenSet = true; m_targetSelection = std::move(value); } /** *Specifies whether the OTA update will continue to run (CONTINUOUS), or will * be complete after all those things specified as targets have completed the OTA * update (SNAPSHOT). If continuous, the OTA update may also be run on a thing when * a change is detected in a target. For example, an OTA update will run on a thing * when the thing is added to a target group, even after the OTA update was * completed by all things originally in the group.
*/ inline OTAUpdateInfo& WithTargetSelection(const TargetSelection& value) { SetTargetSelection(value); return *this;} /** *Specifies whether the OTA update will continue to run (CONTINUOUS), or will * be complete after all those things specified as targets have completed the OTA * update (SNAPSHOT). If continuous, the OTA update may also be run on a thing when * a change is detected in a target. For example, an OTA update will run on a thing * when the thing is added to a target group, even after the OTA update was * completed by all things originally in the group.
*/ inline OTAUpdateInfo& WithTargetSelection(TargetSelection&& value) { SetTargetSelection(std::move(value)); return *this;} /** *A list of files associated with the OTA update.
*/ inline const Aws::VectorA list of files associated with the OTA update.
*/ inline bool OtaUpdateFilesHasBeenSet() const { return m_otaUpdateFilesHasBeenSet; } /** *A list of files associated with the OTA update.
*/ inline void SetOtaUpdateFiles(const Aws::VectorA list of files associated with the OTA update.
*/ inline void SetOtaUpdateFiles(Aws::VectorA list of files associated with the OTA update.
*/ inline OTAUpdateInfo& WithOtaUpdateFiles(const Aws::VectorA list of files associated with the OTA update.
*/ inline OTAUpdateInfo& WithOtaUpdateFiles(Aws::VectorA list of files associated with the OTA update.
*/ inline OTAUpdateInfo& AddOtaUpdateFiles(const OTAUpdateFile& value) { m_otaUpdateFilesHasBeenSet = true; m_otaUpdateFiles.push_back(value); return *this; } /** *A list of files associated with the OTA update.
*/ inline OTAUpdateInfo& AddOtaUpdateFiles(OTAUpdateFile&& value) { m_otaUpdateFilesHasBeenSet = true; m_otaUpdateFiles.push_back(std::move(value)); return *this; } /** *The status of the OTA update.
*/ inline const OTAUpdateStatus& GetOtaUpdateStatus() const{ return m_otaUpdateStatus; } /** *The status of the OTA update.
*/ inline bool OtaUpdateStatusHasBeenSet() const { return m_otaUpdateStatusHasBeenSet; } /** *The status of the OTA update.
*/ inline void SetOtaUpdateStatus(const OTAUpdateStatus& value) { m_otaUpdateStatusHasBeenSet = true; m_otaUpdateStatus = value; } /** *The status of the OTA update.
*/ inline void SetOtaUpdateStatus(OTAUpdateStatus&& value) { m_otaUpdateStatusHasBeenSet = true; m_otaUpdateStatus = std::move(value); } /** *The status of the OTA update.
*/ inline OTAUpdateInfo& WithOtaUpdateStatus(const OTAUpdateStatus& value) { SetOtaUpdateStatus(value); return *this;} /** *The status of the OTA update.
*/ inline OTAUpdateInfo& WithOtaUpdateStatus(OTAUpdateStatus&& value) { SetOtaUpdateStatus(std::move(value)); return *this;} /** *The IoT job ID associated with the OTA update.
*/ inline const Aws::String& GetAwsIotJobId() const{ return m_awsIotJobId; } /** *The IoT job ID associated with the OTA update.
*/ inline bool AwsIotJobIdHasBeenSet() const { return m_awsIotJobIdHasBeenSet; } /** *The IoT job ID associated with the OTA update.
*/ inline void SetAwsIotJobId(const Aws::String& value) { m_awsIotJobIdHasBeenSet = true; m_awsIotJobId = value; } /** *The IoT job ID associated with the OTA update.
*/ inline void SetAwsIotJobId(Aws::String&& value) { m_awsIotJobIdHasBeenSet = true; m_awsIotJobId = std::move(value); } /** *The IoT job ID associated with the OTA update.
*/ inline void SetAwsIotJobId(const char* value) { m_awsIotJobIdHasBeenSet = true; m_awsIotJobId.assign(value); } /** *The IoT job ID associated with the OTA update.
*/ inline OTAUpdateInfo& WithAwsIotJobId(const Aws::String& value) { SetAwsIotJobId(value); return *this;} /** *The IoT job ID associated with the OTA update.
*/ inline OTAUpdateInfo& WithAwsIotJobId(Aws::String&& value) { SetAwsIotJobId(std::move(value)); return *this;} /** *The IoT job ID associated with the OTA update.
*/ inline OTAUpdateInfo& WithAwsIotJobId(const char* value) { SetAwsIotJobId(value); return *this;} /** *The IoT job ARN associated with the OTA update.
*/ inline const Aws::String& GetAwsIotJobArn() const{ return m_awsIotJobArn; } /** *The IoT job ARN associated with the OTA update.
*/ inline bool AwsIotJobArnHasBeenSet() const { return m_awsIotJobArnHasBeenSet; } /** *The IoT job ARN associated with the OTA update.
*/ inline void SetAwsIotJobArn(const Aws::String& value) { m_awsIotJobArnHasBeenSet = true; m_awsIotJobArn = value; } /** *The IoT job ARN associated with the OTA update.
*/ inline void SetAwsIotJobArn(Aws::String&& value) { m_awsIotJobArnHasBeenSet = true; m_awsIotJobArn = std::move(value); } /** *The IoT job ARN associated with the OTA update.
*/ inline void SetAwsIotJobArn(const char* value) { m_awsIotJobArnHasBeenSet = true; m_awsIotJobArn.assign(value); } /** *The IoT job ARN associated with the OTA update.
*/ inline OTAUpdateInfo& WithAwsIotJobArn(const Aws::String& value) { SetAwsIotJobArn(value); return *this;} /** *The IoT job ARN associated with the OTA update.
*/ inline OTAUpdateInfo& WithAwsIotJobArn(Aws::String&& value) { SetAwsIotJobArn(std::move(value)); return *this;} /** *The IoT job ARN associated with the OTA update.
*/ inline OTAUpdateInfo& WithAwsIotJobArn(const char* value) { SetAwsIotJobArn(value); return *this;} /** *Error information associated with the OTA update.
*/ inline const ErrorInfo& GetErrorInfo() const{ return m_errorInfo; } /** *Error information associated with the OTA update.
*/ inline bool ErrorInfoHasBeenSet() const { return m_errorInfoHasBeenSet; } /** *Error information associated with the OTA update.
*/ inline void SetErrorInfo(const ErrorInfo& value) { m_errorInfoHasBeenSet = true; m_errorInfo = value; } /** *Error information associated with the OTA update.
*/ inline void SetErrorInfo(ErrorInfo&& value) { m_errorInfoHasBeenSet = true; m_errorInfo = std::move(value); } /** *Error information associated with the OTA update.
*/ inline OTAUpdateInfo& WithErrorInfo(const ErrorInfo& value) { SetErrorInfo(value); return *this;} /** *Error information associated with the OTA update.
*/ inline OTAUpdateInfo& WithErrorInfo(ErrorInfo&& value) { SetErrorInfo(std::move(value)); return *this;} /** *A collection of name/value pairs
*/ inline const Aws::MapA collection of name/value pairs
*/ inline bool AdditionalParametersHasBeenSet() const { return m_additionalParametersHasBeenSet; } /** *A collection of name/value pairs
*/ inline void SetAdditionalParameters(const Aws::MapA collection of name/value pairs
*/ inline void SetAdditionalParameters(Aws::MapA collection of name/value pairs
*/ inline OTAUpdateInfo& WithAdditionalParameters(const Aws::MapA collection of name/value pairs
*/ inline OTAUpdateInfo& WithAdditionalParameters(Aws::MapA collection of name/value pairs
*/ inline OTAUpdateInfo& AddAdditionalParameters(const Aws::String& key, const Aws::String& value) { m_additionalParametersHasBeenSet = true; m_additionalParameters.emplace(key, value); return *this; } /** *A collection of name/value pairs
*/ inline OTAUpdateInfo& AddAdditionalParameters(Aws::String&& key, const Aws::String& value) { m_additionalParametersHasBeenSet = true; m_additionalParameters.emplace(std::move(key), value); return *this; } /** *A collection of name/value pairs
*/ inline OTAUpdateInfo& AddAdditionalParameters(const Aws::String& key, Aws::String&& value) { m_additionalParametersHasBeenSet = true; m_additionalParameters.emplace(key, std::move(value)); return *this; } /** *A collection of name/value pairs
*/ inline OTAUpdateInfo& AddAdditionalParameters(Aws::String&& key, Aws::String&& value) { m_additionalParametersHasBeenSet = true; m_additionalParameters.emplace(std::move(key), std::move(value)); return *this; } /** *A collection of name/value pairs
*/ inline OTAUpdateInfo& AddAdditionalParameters(const char* key, Aws::String&& value) { m_additionalParametersHasBeenSet = true; m_additionalParameters.emplace(key, std::move(value)); return *this; } /** *A collection of name/value pairs
*/ inline OTAUpdateInfo& AddAdditionalParameters(Aws::String&& key, const char* value) { m_additionalParametersHasBeenSet = true; m_additionalParameters.emplace(std::move(key), value); return *this; } /** *A collection of name/value pairs
*/ inline OTAUpdateInfo& AddAdditionalParameters(const char* key, const char* value) { m_additionalParametersHasBeenSet = true; m_additionalParameters.emplace(key, value); return *this; } private: Aws::String m_otaUpdateId; bool m_otaUpdateIdHasBeenSet = false; Aws::String m_otaUpdateArn; bool m_otaUpdateArnHasBeenSet = false; Aws::Utils::DateTime m_creationDate; bool m_creationDateHasBeenSet = false; Aws::Utils::DateTime m_lastModifiedDate; bool m_lastModifiedDateHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector