/** * 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 ResourceGroups { namespace Model { class AWS_RESOURCEGROUPS_API GroupResourcesResult { public: GroupResourcesResult(); GroupResourcesResult(const Aws::AmazonWebServiceResult& result); GroupResourcesResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ARNs of the resources that were successfully added to the group by this * operation.

*/ inline const Aws::Vector& GetSucceeded() const{ return m_succeeded; } /** *

The ARNs of the resources that were successfully added to the group by this * operation.

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

The ARNs of the resources that were successfully added to the group by this * operation.

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

The ARNs of the resources that were successfully added to the group by this * operation.

*/ inline GroupResourcesResult& WithSucceeded(const Aws::Vector& value) { SetSucceeded(value); return *this;} /** *

The ARNs of the resources that were successfully added to the group by this * operation.

*/ inline GroupResourcesResult& WithSucceeded(Aws::Vector&& value) { SetSucceeded(std::move(value)); return *this;} /** *

The ARNs of the resources that were successfully added to the group by this * operation.

*/ inline GroupResourcesResult& AddSucceeded(const Aws::String& value) { m_succeeded.push_back(value); return *this; } /** *

The ARNs of the resources that were successfully added to the group by this * operation.

*/ inline GroupResourcesResult& AddSucceeded(Aws::String&& value) { m_succeeded.push_back(std::move(value)); return *this; } /** *

The ARNs of the resources that were successfully added to the group by this * operation.

*/ inline GroupResourcesResult& AddSucceeded(const char* value) { m_succeeded.push_back(value); return *this; } /** *

The ARNs of the resources that failed to be added to the group by this * operation.

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

The ARNs of the resources that failed to be added to the group by this * operation.

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

The ARNs of the resources that failed to be added to the group by this * operation.

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

The ARNs of the resources that failed to be added to the group by this * operation.

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

The ARNs of the resources that failed to be added to the group by this * operation.

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

The ARNs of the resources that failed to be added to the group by this * operation.

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

The ARNs of the resources that failed to be added to the group by this * operation.

*/ inline GroupResourcesResult& AddFailed(FailedResource&& value) { m_failed.push_back(std::move(value)); return *this; } private: Aws::Vector m_succeeded; Aws::Vector m_failed; }; } // namespace Model } // namespace ResourceGroups } // namespace Aws