/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 CreateAssociationBatchResult { public: AWS_SSM_API CreateAssociationBatchResult(); AWS_SSM_API CreateAssociationBatchResult(const Aws::AmazonWebServiceResult& result); AWS_SSM_API 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; } 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 CreateAssociationBatchResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateAssociationBatchResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateAssociationBatchResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_successful; Aws::Vector m_failed; Aws::String m_requestId; }; } // namespace Model } // namespace SSM } // namespace Aws