/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace IoT { namespace Model { class CreateOTAUpdateResult { public: AWS_IOT_API CreateOTAUpdateResult(); AWS_IOT_API CreateOTAUpdateResult(const Aws::AmazonWebServiceResult& result); AWS_IOT_API CreateOTAUpdateResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The OTA update ID.

*/ inline const Aws::String& GetOtaUpdateId() const{ return m_otaUpdateId; } /** *

The OTA update ID.

*/ inline void SetOtaUpdateId(const Aws::String& value) { m_otaUpdateId = value; } /** *

The OTA update ID.

*/ inline void SetOtaUpdateId(Aws::String&& value) { m_otaUpdateId = std::move(value); } /** *

The OTA update ID.

*/ inline void SetOtaUpdateId(const char* value) { m_otaUpdateId.assign(value); } /** *

The OTA update ID.

*/ inline CreateOTAUpdateResult& WithOtaUpdateId(const Aws::String& value) { SetOtaUpdateId(value); return *this;} /** *

The OTA update ID.

*/ inline CreateOTAUpdateResult& WithOtaUpdateId(Aws::String&& value) { SetOtaUpdateId(std::move(value)); return *this;} /** *

The OTA update ID.

*/ inline CreateOTAUpdateResult& WithOtaUpdateId(const char* value) { SetOtaUpdateId(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 void SetAwsIotJobId(const Aws::String& value) { m_awsIotJobId = value; } /** *

The IoT job ID associated with the OTA update.

*/ inline void SetAwsIotJobId(Aws::String&& value) { m_awsIotJobId = std::move(value); } /** *

The IoT job ID associated with the OTA update.

*/ inline void SetAwsIotJobId(const char* value) { m_awsIotJobId.assign(value); } /** *

The IoT job ID associated with the OTA update.

*/ inline CreateOTAUpdateResult& WithAwsIotJobId(const Aws::String& value) { SetAwsIotJobId(value); return *this;} /** *

The IoT job ID associated with the OTA update.

*/ inline CreateOTAUpdateResult& WithAwsIotJobId(Aws::String&& value) { SetAwsIotJobId(std::move(value)); return *this;} /** *

The IoT job ID associated with the OTA update.

*/ inline CreateOTAUpdateResult& WithAwsIotJobId(const char* value) { SetAwsIotJobId(value); return *this;} /** *

The OTA update ARN.

*/ inline const Aws::String& GetOtaUpdateArn() const{ return m_otaUpdateArn; } /** *

The OTA update ARN.

*/ inline void SetOtaUpdateArn(const Aws::String& value) { m_otaUpdateArn = value; } /** *

The OTA update ARN.

*/ inline void SetOtaUpdateArn(Aws::String&& value) { m_otaUpdateArn = std::move(value); } /** *

The OTA update ARN.

*/ inline void SetOtaUpdateArn(const char* value) { m_otaUpdateArn.assign(value); } /** *

The OTA update ARN.

*/ inline CreateOTAUpdateResult& WithOtaUpdateArn(const Aws::String& value) { SetOtaUpdateArn(value); return *this;} /** *

The OTA update ARN.

*/ inline CreateOTAUpdateResult& WithOtaUpdateArn(Aws::String&& value) { SetOtaUpdateArn(std::move(value)); return *this;} /** *

The OTA update ARN.

*/ inline CreateOTAUpdateResult& WithOtaUpdateArn(const char* value) { SetOtaUpdateArn(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 void SetAwsIotJobArn(const Aws::String& value) { m_awsIotJobArn = value; } /** *

The IoT job ARN associated with the OTA update.

*/ inline void SetAwsIotJobArn(Aws::String&& value) { m_awsIotJobArn = std::move(value); } /** *

The IoT job ARN associated with the OTA update.

*/ inline void SetAwsIotJobArn(const char* value) { m_awsIotJobArn.assign(value); } /** *

The IoT job ARN associated with the OTA update.

*/ inline CreateOTAUpdateResult& WithAwsIotJobArn(const Aws::String& value) { SetAwsIotJobArn(value); return *this;} /** *

The IoT job ARN associated with the OTA update.

*/ inline CreateOTAUpdateResult& WithAwsIotJobArn(Aws::String&& value) { SetAwsIotJobArn(std::move(value)); return *this;} /** *

The IoT job ARN associated with the OTA update.

*/ inline CreateOTAUpdateResult& WithAwsIotJobArn(const char* value) { SetAwsIotJobArn(value); return *this;} /** *

The OTA update status.

*/ inline const OTAUpdateStatus& GetOtaUpdateStatus() const{ return m_otaUpdateStatus; } /** *

The OTA update status.

*/ inline void SetOtaUpdateStatus(const OTAUpdateStatus& value) { m_otaUpdateStatus = value; } /** *

The OTA update status.

*/ inline void SetOtaUpdateStatus(OTAUpdateStatus&& value) { m_otaUpdateStatus = std::move(value); } /** *

The OTA update status.

*/ inline CreateOTAUpdateResult& WithOtaUpdateStatus(const OTAUpdateStatus& value) { SetOtaUpdateStatus(value); return *this;} /** *

The OTA update status.

*/ inline CreateOTAUpdateResult& WithOtaUpdateStatus(OTAUpdateStatus&& value) { SetOtaUpdateStatus(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateOTAUpdateResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateOTAUpdateResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateOTAUpdateResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_otaUpdateId; Aws::String m_awsIotJobId; Aws::String m_otaUpdateArn; Aws::String m_awsIotJobArn; OTAUpdateStatus m_otaUpdateStatus; Aws::String m_requestId; }; } // namespace Model } // namespace IoT } // namespace Aws