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

#pragma once
#include <aws/config/ConfigService_EXPORTS.h>
#include <aws/config/model/ComplianceSummary.h>
#include <aws/core/utils/memory/stl/AWSString.h>

#include <utility>

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

/**
 * <p>The number of Amazon Web Services resources of a specific type that are
 * compliant or noncompliant, up to a maximum of 100 for each.</p><p><h3>See
 * Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ComplianceSummaryByResourceType">AWS
 * API Reference</a></p>
 */
class ComplianceSummaryByResourceType {
 public:
  AWS_CONFIGSERVICE_API ComplianceSummaryByResourceType() = default;
  AWS_CONFIGSERVICE_API ComplianceSummaryByResourceType(Aws::Utils::Json::JsonView jsonValue);
  AWS_CONFIGSERVICE_API ComplianceSummaryByResourceType& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>The type of Amazon Web Services resource.</p>
   */
  inline const Aws::String& GetResourceType() const { return m_resourceType; }
  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
  template <typename ResourceTypeT = Aws::String>
  void SetResourceType(ResourceTypeT&& value) {
    m_resourceTypeHasBeenSet = true;
    m_resourceType = std::forward<ResourceTypeT>(value);
  }
  template <typename ResourceTypeT = Aws::String>
  ComplianceSummaryByResourceType& WithResourceType(ResourceTypeT&& value) {
    SetResourceType(std::forward<ResourceTypeT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The number of Amazon Web Services resources that are compliant or
   * noncompliant, up to a maximum of 100 for each.</p>
   */
  inline const ComplianceSummary& GetComplianceSummary() const { return m_complianceSummary; }
  inline bool ComplianceSummaryHasBeenSet() const { return m_complianceSummaryHasBeenSet; }
  template <typename ComplianceSummaryT = ComplianceSummary>
  void SetComplianceSummary(ComplianceSummaryT&& value) {
    m_complianceSummaryHasBeenSet = true;
    m_complianceSummary = std::forward<ComplianceSummaryT>(value);
  }
  template <typename ComplianceSummaryT = ComplianceSummary>
  ComplianceSummaryByResourceType& WithComplianceSummary(ComplianceSummaryT&& value) {
    SetComplianceSummary(std::forward<ComplianceSummaryT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_resourceType;

  ComplianceSummary m_complianceSummary;
  bool m_resourceTypeHasBeenSet = false;
  bool m_complianceSummaryHasBeenSet = false;
};

}  // namespace Model
}  // namespace ConfigService
}  // namespace Aws
