/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Greengrass { namespace Model { class GetBulkDeploymentStatusResult { public: AWS_GREENGRASS_API GetBulkDeploymentStatusResult(); AWS_GREENGRASS_API GetBulkDeploymentStatusResult(const Aws::AmazonWebServiceResult& result); AWS_GREENGRASS_API GetBulkDeploymentStatusResult& operator=(const Aws::AmazonWebServiceResult& result); /** * Relevant metrics on input records processed during bulk deployment. */ inline const BulkDeploymentMetrics& GetBulkDeploymentMetrics() const{ return m_bulkDeploymentMetrics; } /** * Relevant metrics on input records processed during bulk deployment. */ inline void SetBulkDeploymentMetrics(const BulkDeploymentMetrics& value) { m_bulkDeploymentMetrics = value; } /** * Relevant metrics on input records processed during bulk deployment. */ inline void SetBulkDeploymentMetrics(BulkDeploymentMetrics&& value) { m_bulkDeploymentMetrics = std::move(value); } /** * Relevant metrics on input records processed during bulk deployment. */ inline GetBulkDeploymentStatusResult& WithBulkDeploymentMetrics(const BulkDeploymentMetrics& value) { SetBulkDeploymentMetrics(value); return *this;} /** * Relevant metrics on input records processed during bulk deployment. */ inline GetBulkDeploymentStatusResult& WithBulkDeploymentMetrics(BulkDeploymentMetrics&& value) { SetBulkDeploymentMetrics(std::move(value)); return *this;} /** * The status of the bulk deployment. */ inline const BulkDeploymentStatus& GetBulkDeploymentStatus() const{ return m_bulkDeploymentStatus; } /** * The status of the bulk deployment. */ inline void SetBulkDeploymentStatus(const BulkDeploymentStatus& value) { m_bulkDeploymentStatus = value; } /** * The status of the bulk deployment. */ inline void SetBulkDeploymentStatus(BulkDeploymentStatus&& value) { m_bulkDeploymentStatus = std::move(value); } /** * The status of the bulk deployment. */ inline GetBulkDeploymentStatusResult& WithBulkDeploymentStatus(const BulkDeploymentStatus& value) { SetBulkDeploymentStatus(value); return *this;} /** * The status of the bulk deployment. */ inline GetBulkDeploymentStatusResult& WithBulkDeploymentStatus(BulkDeploymentStatus&& value) { SetBulkDeploymentStatus(std::move(value)); return *this;} /** * The time, in ISO format, when the deployment was created. */ inline const Aws::String& GetCreatedAt() const{ return m_createdAt; } /** * The time, in ISO format, when the deployment was created. */ inline void SetCreatedAt(const Aws::String& value) { m_createdAt = value; } /** * The time, in ISO format, when the deployment was created. */ inline void SetCreatedAt(Aws::String&& value) { m_createdAt = std::move(value); } /** * The time, in ISO format, when the deployment was created. */ inline void SetCreatedAt(const char* value) { m_createdAt.assign(value); } /** * The time, in ISO format, when the deployment was created. */ inline GetBulkDeploymentStatusResult& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;} /** * The time, in ISO format, when the deployment was created. */ inline GetBulkDeploymentStatusResult& WithCreatedAt(Aws::String&& value) { SetCreatedAt(std::move(value)); return *this;} /** * The time, in ISO format, when the deployment was created. */ inline GetBulkDeploymentStatusResult& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;} /** * Error details */ inline const Aws::Vector& GetErrorDetails() const{ return m_errorDetails; } /** * Error details */ inline void SetErrorDetails(const Aws::Vector& value) { m_errorDetails = value; } /** * Error details */ inline void SetErrorDetails(Aws::Vector&& value) { m_errorDetails = std::move(value); } /** * Error details */ inline GetBulkDeploymentStatusResult& WithErrorDetails(const Aws::Vector& value) { SetErrorDetails(value); return *this;} /** * Error details */ inline GetBulkDeploymentStatusResult& WithErrorDetails(Aws::Vector&& value) { SetErrorDetails(std::move(value)); return *this;} /** * Error details */ inline GetBulkDeploymentStatusResult& AddErrorDetails(const ErrorDetail& value) { m_errorDetails.push_back(value); return *this; } /** * Error details */ inline GetBulkDeploymentStatusResult& AddErrorDetails(ErrorDetail&& value) { m_errorDetails.push_back(std::move(value)); return *this; } /** * Error message */ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** * Error message */ inline void SetErrorMessage(const Aws::String& value) { m_errorMessage = value; } /** * Error message */ inline void SetErrorMessage(Aws::String&& value) { m_errorMessage = std::move(value); } /** * Error message */ inline void SetErrorMessage(const char* value) { m_errorMessage.assign(value); } /** * Error message */ inline GetBulkDeploymentStatusResult& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** * Error message */ inline GetBulkDeploymentStatusResult& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** * Error message */ inline GetBulkDeploymentStatusResult& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** * Tag(s) attached to the resource arn. */ inline const Aws::Map& GetTags() const{ return m_tags; } /** * Tag(s) attached to the resource arn. */ inline void SetTags(const Aws::Map& value) { m_tags = value; } /** * Tag(s) attached to the resource arn. */ inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } /** * Tag(s) attached to the resource arn. */ inline GetBulkDeploymentStatusResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** * Tag(s) attached to the resource arn. */ inline GetBulkDeploymentStatusResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** * Tag(s) attached to the resource arn. */ inline GetBulkDeploymentStatusResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } /** * Tag(s) attached to the resource arn. */ inline GetBulkDeploymentStatusResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } /** * Tag(s) attached to the resource arn. */ inline GetBulkDeploymentStatusResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** * Tag(s) attached to the resource arn. */ inline GetBulkDeploymentStatusResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } /** * Tag(s) attached to the resource arn. */ inline GetBulkDeploymentStatusResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** * Tag(s) attached to the resource arn. */ inline GetBulkDeploymentStatusResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } /** * Tag(s) attached to the resource arn. */ inline GetBulkDeploymentStatusResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, 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 GetBulkDeploymentStatusResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetBulkDeploymentStatusResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetBulkDeploymentStatusResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: BulkDeploymentMetrics m_bulkDeploymentMetrics; BulkDeploymentStatus m_bulkDeploymentStatus; Aws::String m_createdAt; Aws::Vector m_errorDetails; Aws::String m_errorMessage; Aws::Map m_tags; Aws::String m_requestId; }; } // namespace Model } // namespace Greengrass } // namespace Aws