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

Information about the associations that succeeded.

*/ inline const Aws::Vector& GetSuccessful() const{ return m_successful; } /** *

Information about the associations that succeeded.

*/ inline void SetSuccessful(const Aws::Vector& value) { m_successful = value; } /** *

Information about the associations that succeeded.

*/ inline void SetSuccessful(Aws::Vector&& value) { m_successful = std::move(value); } /** *

Information about the associations that succeeded.

*/ inline CreateAssociationBatchResult& WithSuccessful(const Aws::Vector& value) { SetSuccessful(value); return *this;} /** *

Information about the associations that succeeded.

*/ inline CreateAssociationBatchResult& WithSuccessful(Aws::Vector&& value) { SetSuccessful(std::move(value)); return *this;} /** *

Information about the associations that succeeded.

*/ inline CreateAssociationBatchResult& AddSuccessful(const AssociationDescription& value) { m_successful.push_back(value); return *this; } /** *

Information about the associations that succeeded.

*/ inline CreateAssociationBatchResult& AddSuccessful(AssociationDescription&& value) { m_successful.push_back(std::move(value)); return *this; } /** *

Information about the associations that failed.

*/ inline const Aws::Vector& GetFailed() const{ return m_failed; } /** *

Information about the associations that failed.

*/ inline void SetFailed(const Aws::Vector& value) { m_failed = value; } /** *

Information about the associations that failed.

*/ inline void SetFailed(Aws::Vector&& value) { m_failed = std::move(value); } /** *

Information about the associations that failed.

*/ inline CreateAssociationBatchResult& WithFailed(const Aws::Vector& value) { SetFailed(value); return *this;} /** *

Information about the associations that failed.

*/ inline CreateAssociationBatchResult& WithFailed(Aws::Vector&& value) { SetFailed(std::move(value)); return *this;} /** *

Information about the associations that failed.

*/ inline CreateAssociationBatchResult& AddFailed(const FailedCreateAssociation& value) { m_failed.push_back(value); return *this; } /** *

Information about the associations that failed.

*/ inline CreateAssociationBatchResult& AddFailed(FailedCreateAssociation&& value) { m_failed.push_back(std::move(value)); return *this; } private: Aws::Vector m_successful; Aws::Vector m_failed; }; } // namespace Model } // namespace SSM } // namespace Aws