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

A list of ARNs of the resources that this operation successfully added to the * group.

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

A list of ARNs of the resources that this operation successfully added to the * group.

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

A list of ARNs of the resources that this operation successfully added to the * group.

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

A list of ARNs of the resources that this operation successfully added to the * group.

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

A list of ARNs of the resources that this operation successfully added to the * group.

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

A list of ARNs of the resources that this operation successfully added to the * group.

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

A list of ARNs of the resources that this operation successfully added to the * group.

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

A list of ARNs of the resources that this operation successfully added to the * group.

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

A list of ARNs of any resources that this operation failed to add to the * group.

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

A list of ARNs of any resources that this operation failed to add to the * group.

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

A list of ARNs of any resources that this operation failed to add to the * group.

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

A list of ARNs of any resources that this operation failed to add to the * group.

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

A list of ARNs of any resources that this operation failed to add to the * group.

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

A list of ARNs of any resources that this operation failed to add to the * group.

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

A list of ARNs of any resources that this operation failed to add to the * group.

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

A list of ARNs of any resources that this operation is still in the process * adding to the group. These pending additions continue asynchronously. You can * check the status of pending additions by using the * ListGroupResources operation, and checking the * Resources array in the response and the Status field * of each object in that array.

*/ inline const Aws::Vector& GetPending() const{ return m_pending; } /** *

A list of ARNs of any resources that this operation is still in the process * adding to the group. These pending additions continue asynchronously. You can * check the status of pending additions by using the * ListGroupResources operation, and checking the * Resources array in the response and the Status field * of each object in that array.

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

A list of ARNs of any resources that this operation is still in the process * adding to the group. These pending additions continue asynchronously. You can * check the status of pending additions by using the * ListGroupResources operation, and checking the * Resources array in the response and the Status field * of each object in that array.

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

A list of ARNs of any resources that this operation is still in the process * adding to the group. These pending additions continue asynchronously. You can * check the status of pending additions by using the * ListGroupResources operation, and checking the * Resources array in the response and the Status field * of each object in that array.

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

A list of ARNs of any resources that this operation is still in the process * adding to the group. These pending additions continue asynchronously. You can * check the status of pending additions by using the * ListGroupResources operation, and checking the * Resources array in the response and the Status field * of each object in that array.

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

A list of ARNs of any resources that this operation is still in the process * adding to the group. These pending additions continue asynchronously. You can * check the status of pending additions by using the * ListGroupResources operation, and checking the * Resources array in the response and the Status field * of each object in that array.

*/ inline GroupResourcesResult& AddPending(const PendingResource& value) { m_pending.push_back(value); return *this; } /** *

A list of ARNs of any resources that this operation is still in the process * adding to the group. These pending additions continue asynchronously. You can * check the status of pending additions by using the * ListGroupResources operation, and checking the * Resources array in the response and the Status field * of each object in that array.

*/ inline GroupResourcesResult& AddPending(PendingResource&& value) { m_pending.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 GroupResourcesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GroupResourcesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GroupResourcesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_succeeded; Aws::Vector m_failed; Aws::Vector m_pending; Aws::String m_requestId; }; } // namespace Model } // namespace ResourceGroups } // namespace Aws