/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#pragma once
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
#include <aws/resource-groups/model/FailedResource.h>
#include <aws/resource-groups/model/PendingResource.h>

#include <utility>

namespace Aws {
template <typename RESULT_TYPE>
class AmazonWebServiceResult;

namespace Utils {
namespace Json {
class JsonValue;
}  // namespace Json
}  // namespace Utils
namespace ResourceGroups {
namespace Model {
class UngroupResourcesResult {
 public:
  AWS_RESOURCEGROUPS_API UngroupResourcesResult() = default;
  AWS_RESOURCEGROUPS_API UngroupResourcesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
  AWS_RESOURCEGROUPS_API UngroupResourcesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);

  ///@{
  /**
   * <p>A list of resources that were successfully removed from the group by this
   * operation.</p>
   */
  inline const Aws::Vector<Aws::String>& GetSucceeded() const { return m_succeeded; }
  template <typename SucceededT = Aws::Vector<Aws::String>>
  void SetSucceeded(SucceededT&& value) {
    m_succeededHasBeenSet = true;
    m_succeeded = std::forward<SucceededT>(value);
  }
  template <typename SucceededT = Aws::Vector<Aws::String>>
  UngroupResourcesResult& WithSucceeded(SucceededT&& value) {
    SetSucceeded(std::forward<SucceededT>(value));
    return *this;
  }
  template <typename SucceededT = Aws::String>
  UngroupResourcesResult& AddSucceeded(SucceededT&& value) {
    m_succeededHasBeenSet = true;
    m_succeeded.emplace_back(std::forward<SucceededT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>A list of any resources that failed to be removed from the group by this
   * operation.</p>
   */
  inline const Aws::Vector<FailedResource>& GetFailed() const { return m_failed; }
  template <typename FailedT = Aws::Vector<FailedResource>>
  void SetFailed(FailedT&& value) {
    m_failedHasBeenSet = true;
    m_failed = std::forward<FailedT>(value);
  }
  template <typename FailedT = Aws::Vector<FailedResource>>
  UngroupResourcesResult& WithFailed(FailedT&& value) {
    SetFailed(std::forward<FailedT>(value));
    return *this;
  }
  template <typename FailedT = FailedResource>
  UngroupResourcesResult& AddFailed(FailedT&& value) {
    m_failedHasBeenSet = true;
    m_failed.emplace_back(std::forward<FailedT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>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 <code>
   * <a>ListGroupResources</a> </code> operation. After the resource is successfully
   * removed, it no longer appears in the response.</p>
   */
  inline const Aws::Vector<PendingResource>& GetPending() const { return m_pending; }
  template <typename PendingT = Aws::Vector<PendingResource>>
  void SetPending(PendingT&& value) {
    m_pendingHasBeenSet = true;
    m_pending = std::forward<PendingT>(value);
  }
  template <typename PendingT = Aws::Vector<PendingResource>>
  UngroupResourcesResult& WithPending(PendingT&& value) {
    SetPending(std::forward<PendingT>(value));
    return *this;
  }
  template <typename PendingT = PendingResource>
  UngroupResourcesResult& AddPending(PendingT&& value) {
    m_pendingHasBeenSet = true;
    m_pending.emplace_back(std::forward<PendingT>(value));
    return *this;
  }
  ///@}

  ///@{

  inline const Aws::String& GetRequestId() const { return m_requestId; }
  template <typename RequestIdT = Aws::String>
  void SetRequestId(RequestIdT&& value) {
    m_requestIdHasBeenSet = true;
    m_requestId = std::forward<RequestIdT>(value);
  }
  template <typename RequestIdT = Aws::String>
  UngroupResourcesResult& WithRequestId(RequestIdT&& value) {
    SetRequestId(std::forward<RequestIdT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::Vector<Aws::String> m_succeeded;

  Aws::Vector<FailedResource> m_failed;

  Aws::Vector<PendingResource> m_pending;

  Aws::String m_requestId;
  bool m_succeededHasBeenSet = false;
  bool m_failedHasBeenSet = false;
  bool m_pendingHasBeenSet = false;
  bool m_requestIdHasBeenSet = false;
};

}  // namespace Model
}  // namespace ResourceGroups
}  // namespace Aws
