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

A list of resources that were successfully removed from the group by this * operation.

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

A list of resources that were successfully removed from the group by this * operation.

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

A list of resources that were successfully removed from the group by this * operation.

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

A list of resources that were successfully removed from the group by this * operation.

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

A list of resources that were successfully removed from the group by this * operation.

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

A list of resources that were successfully removed from the group by this * operation.

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

A list of resources that were successfully removed from the group by this * operation.

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

A list of resources that were successfully removed from the group by this * operation.

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

A list of any resources that failed to be removed from the group by this * operation.

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

A list of any resources that failed to be removed from the group by this * operation.

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

A list of any resources that failed to be removed from the group by this * operation.

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

A list of any resources that failed to be removed from the group by this * operation.

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

A list of any resources that failed to be removed from the group by this * operation.

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

A list of any resources that failed to be removed from the group by this * operation.

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

A list of any resources that failed to be removed from the group by this * operation.

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

A list of any resources that are still in the process of being removed from * the group by this operation. These pending removals continue asynchronously. You * can check the status of pending removals by using the * ListGroupResources operation. After the resource is successfully * removed, it no longer appears in the response.

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

A list of any resources that are still in the process of being removed from * the group by this operation. These pending removals continue asynchronously. You * can check the status of pending removals by using the * ListGroupResources operation. After the resource is successfully * removed, it no longer appears in the response.

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

A list of any resources that are still in the process of being removed from * the group by this operation. These pending removals continue asynchronously. You * can check the status of pending removals by using the * ListGroupResources operation. After the resource is successfully * removed, it no longer appears in the response.

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

A list of any resources that are still in the process of being removed from * the group by this operation. These pending removals continue asynchronously. You * can check the status of pending removals by using the * ListGroupResources operation. After the resource is successfully * removed, it no longer appears in the response.

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

A list of any resources that are still in the process of being removed from * the group by this operation. These pending removals continue asynchronously. You * can check the status of pending removals by using the * ListGroupResources operation. After the resource is successfully * removed, it no longer appears in the response.

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

A list of any resources that are still in the process of being removed from * the group by this operation. These pending removals continue asynchronously. You * can check the status of pending removals by using the * ListGroupResources operation. After the resource is successfully * removed, it no longer appears in the response.

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

A list of any resources that are still in the process of being removed from * the group by this operation. These pending removals continue asynchronously. You * can check the status of pending removals by using the * ListGroupResources operation. After the resource is successfully * removed, it no longer appears in the response.

*/ inline UngroupResourcesResult& 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 UngroupResourcesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UngroupResourcesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UngroupResourcesResult& 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