AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
InternalAccessFindingsStatistics.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/accessanalyzer/model/ResourceType.h>
10#include <aws/accessanalyzer/model/InternalAccessResourceTypeDetails.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AccessAnalyzer
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_ACCESSANALYZER_API InternalAccessFindingsStatistics() = default;
41 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::Map<ResourceType, InternalAccessResourceTypeDetails>& GetResourceTypeStatistics() const { return m_resourceTypeStatistics; }
50 inline bool ResourceTypeStatisticsHasBeenSet() const { return m_resourceTypeStatisticsHasBeenSet; }
51 template<typename ResourceTypeStatisticsT = Aws::Map<ResourceType, InternalAccessResourceTypeDetails>>
52 void SetResourceTypeStatistics(ResourceTypeStatisticsT&& value) { m_resourceTypeStatisticsHasBeenSet = true; m_resourceTypeStatistics = std::forward<ResourceTypeStatisticsT>(value); }
53 template<typename ResourceTypeStatisticsT = Aws::Map<ResourceType, InternalAccessResourceTypeDetails>>
54 InternalAccessFindingsStatistics& WithResourceTypeStatistics(ResourceTypeStatisticsT&& value) { SetResourceTypeStatistics(std::forward<ResourceTypeStatisticsT>(value)); return *this;}
56 m_resourceTypeStatisticsHasBeenSet = true; m_resourceTypeStatistics.emplace(key, value); return *this;
57 }
59
61
64 inline int GetTotalActiveFindings() const { return m_totalActiveFindings; }
65 inline bool TotalActiveFindingsHasBeenSet() const { return m_totalActiveFindingsHasBeenSet; }
66 inline void SetTotalActiveFindings(int value) { m_totalActiveFindingsHasBeenSet = true; m_totalActiveFindings = value; }
69
71
75 inline int GetTotalArchivedFindings() const { return m_totalArchivedFindings; }
76 inline bool TotalArchivedFindingsHasBeenSet() const { return m_totalArchivedFindingsHasBeenSet; }
77 inline void SetTotalArchivedFindings(int value) { m_totalArchivedFindingsHasBeenSet = true; m_totalArchivedFindings = value; }
80
82
86 inline int GetTotalResolvedFindings() const { return m_totalResolvedFindings; }
87 inline bool TotalResolvedFindingsHasBeenSet() const { return m_totalResolvedFindingsHasBeenSet; }
88 inline void SetTotalResolvedFindings(int value) { m_totalResolvedFindingsHasBeenSet = true; m_totalResolvedFindings = value; }
91 private:
92
94 bool m_resourceTypeStatisticsHasBeenSet = false;
95
96 int m_totalActiveFindings{0};
97 bool m_totalActiveFindingsHasBeenSet = false;
98
99 int m_totalArchivedFindings{0};
100 bool m_totalArchivedFindingsHasBeenSet = false;
101
102 int m_totalResolvedFindings{0};
103 bool m_totalResolvedFindingsHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace AccessAnalyzer
108} // namespace Aws
InternalAccessFindingsStatistics & AddResourceTypeStatistics(ResourceType key, InternalAccessResourceTypeDetails value)
AWS_ACCESSANALYZER_API InternalAccessFindingsStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API InternalAccessFindingsStatistics()=default
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< ResourceType, InternalAccessResourceTypeDetails > & GetResourceTypeStatistics() const
InternalAccessFindingsStatistics & WithResourceTypeStatistics(ResourceTypeStatisticsT &&value)
AWS_ACCESSANALYZER_API InternalAccessFindingsStatistics(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue