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

#pragma once
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/ssm/SSM_EXPORTS.h>
#include <aws/ssm/model/InventoryDeletionSummaryItem.h>

#include <utility>

namespace Aws {
namespace Utils {
namespace Json {
class JsonValue;
class JsonView;
}  // namespace Json
}  // namespace Utils
namespace SSM {
namespace Model {

/**
 * <p>Information about the delete operation.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/InventoryDeletionSummary">AWS
 * API Reference</a></p>
 */
class InventoryDeletionSummary {
 public:
  AWS_SSM_API InventoryDeletionSummary() = default;
  AWS_SSM_API InventoryDeletionSummary(Aws::Utils::Json::JsonView jsonValue);
  AWS_SSM_API InventoryDeletionSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>The total number of items to delete. This count doesn't change during the
   * delete operation.</p>
   */
  inline int GetTotalCount() const { return m_totalCount; }
  inline bool TotalCountHasBeenSet() const { return m_totalCountHasBeenSet; }
  inline void SetTotalCount(int value) {
    m_totalCountHasBeenSet = true;
    m_totalCount = value;
  }
  inline InventoryDeletionSummary& WithTotalCount(int value) {
    SetTotalCount(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Remaining number of items to delete.</p>
   */
  inline int GetRemainingCount() const { return m_remainingCount; }
  inline bool RemainingCountHasBeenSet() const { return m_remainingCountHasBeenSet; }
  inline void SetRemainingCount(int value) {
    m_remainingCountHasBeenSet = true;
    m_remainingCount = value;
  }
  inline InventoryDeletionSummary& WithRemainingCount(int value) {
    SetRemainingCount(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>A list of counts and versions for deleted items.</p>
   */
  inline const Aws::Vector<InventoryDeletionSummaryItem>& GetSummaryItems() const { return m_summaryItems; }
  inline bool SummaryItemsHasBeenSet() const { return m_summaryItemsHasBeenSet; }
  template <typename SummaryItemsT = Aws::Vector<InventoryDeletionSummaryItem>>
  void SetSummaryItems(SummaryItemsT&& value) {
    m_summaryItemsHasBeenSet = true;
    m_summaryItems = std::forward<SummaryItemsT>(value);
  }
  template <typename SummaryItemsT = Aws::Vector<InventoryDeletionSummaryItem>>
  InventoryDeletionSummary& WithSummaryItems(SummaryItemsT&& value) {
    SetSummaryItems(std::forward<SummaryItemsT>(value));
    return *this;
  }
  template <typename SummaryItemsT = InventoryDeletionSummaryItem>
  InventoryDeletionSummary& AddSummaryItems(SummaryItemsT&& value) {
    m_summaryItemsHasBeenSet = true;
    m_summaryItems.emplace_back(std::forward<SummaryItemsT>(value));
    return *this;
  }
  ///@}
 private:
  int m_totalCount{0};

  int m_remainingCount{0};

  Aws::Vector<InventoryDeletionSummaryItem> m_summaryItems;
  bool m_totalCountHasBeenSet = false;
  bool m_remainingCountHasBeenSet = false;
  bool m_summaryItemsHasBeenSet = false;
};

}  // namespace Model
}  // namespace SSM
}  // namespace Aws
