AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
InternalAccessFindingsStatistics.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/InternalAccessResourceTypeDetails.h>
9#include <aws/accessanalyzer/model/ResourceType.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AccessAnalyzer {
22namespace Model {
23
32 public:
33 AWS_ACCESSANALYZER_API InternalAccessFindingsStatistics() = default;
36 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 return m_resourceTypeStatistics;
45 }
46 inline bool ResourceTypeStatisticsHasBeenSet() const { return m_resourceTypeStatisticsHasBeenSet; }
47 template <typename ResourceTypeStatisticsT = Aws::Map<ResourceType, InternalAccessResourceTypeDetails>>
48 void SetResourceTypeStatistics(ResourceTypeStatisticsT&& value) {
49 m_resourceTypeStatisticsHasBeenSet = true;
50 m_resourceTypeStatistics = std::forward<ResourceTypeStatisticsT>(value);
51 }
52 template <typename ResourceTypeStatisticsT = Aws::Map<ResourceType, InternalAccessResourceTypeDetails>>
54 SetResourceTypeStatistics(std::forward<ResourceTypeStatisticsT>(value));
55 return *this;
56 }
58 m_resourceTypeStatisticsHasBeenSet = true;
59 m_resourceTypeStatistics.emplace(key, value);
60 return *this;
61 }
63
65
68 inline int GetTotalActiveFindings() const { return m_totalActiveFindings; }
69 inline bool TotalActiveFindingsHasBeenSet() const { return m_totalActiveFindingsHasBeenSet; }
70 inline void SetTotalActiveFindings(int value) {
71 m_totalActiveFindingsHasBeenSet = true;
72 m_totalActiveFindings = value;
73 }
76 return *this;
77 }
79
81
85 inline int GetTotalArchivedFindings() const { return m_totalArchivedFindings; }
86 inline bool TotalArchivedFindingsHasBeenSet() const { return m_totalArchivedFindingsHasBeenSet; }
87 inline void SetTotalArchivedFindings(int value) {
88 m_totalArchivedFindingsHasBeenSet = true;
89 m_totalArchivedFindings = value;
90 }
93 return *this;
94 }
96
98
102 inline int GetTotalResolvedFindings() const { return m_totalResolvedFindings; }
103 inline bool TotalResolvedFindingsHasBeenSet() const { return m_totalResolvedFindingsHasBeenSet; }
104 inline void SetTotalResolvedFindings(int value) {
105 m_totalResolvedFindingsHasBeenSet = true;
106 m_totalResolvedFindings = value;
107 }
110 return *this;
111 }
113 private:
115
116 int m_totalActiveFindings{0};
117
118 int m_totalArchivedFindings{0};
119
120 int m_totalResolvedFindings{0};
121 bool m_resourceTypeStatisticsHasBeenSet = false;
122 bool m_totalActiveFindingsHasBeenSet = false;
123 bool m_totalArchivedFindingsHasBeenSet = false;
124 bool m_totalResolvedFindingsHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace AccessAnalyzer
129} // 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