AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ExternalAccessFindingsStatistics.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/ResourceType.h>
9#include <aws/accessanalyzer/model/ResourceTypeDetails.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
31 public:
32 AWS_ACCESSANALYZER_API ExternalAccessFindingsStatistics() = default;
35 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Map<ResourceType, ResourceTypeDetails>& GetResourceTypeStatistics() const { return m_resourceTypeStatistics; }
43 inline bool ResourceTypeStatisticsHasBeenSet() const { return m_resourceTypeStatisticsHasBeenSet; }
44 template <typename ResourceTypeStatisticsT = Aws::Map<ResourceType, ResourceTypeDetails>>
45 void SetResourceTypeStatistics(ResourceTypeStatisticsT&& value) {
46 m_resourceTypeStatisticsHasBeenSet = true;
47 m_resourceTypeStatistics = std::forward<ResourceTypeStatisticsT>(value);
48 }
49 template <typename ResourceTypeStatisticsT = Aws::Map<ResourceType, ResourceTypeDetails>>
51 SetResourceTypeStatistics(std::forward<ResourceTypeStatisticsT>(value));
52 return *this;
53 }
55 m_resourceTypeStatisticsHasBeenSet = true;
56 m_resourceTypeStatistics.emplace(key, value);
57 return *this;
58 }
60
62
65 inline int GetTotalActiveFindings() const { return m_totalActiveFindings; }
66 inline bool TotalActiveFindingsHasBeenSet() const { return m_totalActiveFindingsHasBeenSet; }
67 inline void SetTotalActiveFindings(int value) {
68 m_totalActiveFindingsHasBeenSet = true;
69 m_totalActiveFindings = value;
70 }
73 return *this;
74 }
76
78
82 inline int GetTotalArchivedFindings() const { return m_totalArchivedFindings; }
83 inline bool TotalArchivedFindingsHasBeenSet() const { return m_totalArchivedFindingsHasBeenSet; }
84 inline void SetTotalArchivedFindings(int value) {
85 m_totalArchivedFindingsHasBeenSet = true;
86 m_totalArchivedFindings = value;
87 }
90 return *this;
91 }
93
95
99 inline int GetTotalResolvedFindings() const { return m_totalResolvedFindings; }
100 inline bool TotalResolvedFindingsHasBeenSet() const { return m_totalResolvedFindingsHasBeenSet; }
101 inline void SetTotalResolvedFindings(int value) {
102 m_totalResolvedFindingsHasBeenSet = true;
103 m_totalResolvedFindings = value;
104 }
107 return *this;
108 }
110 private:
111 Aws::Map<ResourceType, ResourceTypeDetails> m_resourceTypeStatistics;
112
113 int m_totalActiveFindings{0};
114
115 int m_totalArchivedFindings{0};
116
117 int m_totalResolvedFindings{0};
118 bool m_resourceTypeStatisticsHasBeenSet = false;
119 bool m_totalActiveFindingsHasBeenSet = false;
120 bool m_totalArchivedFindingsHasBeenSet = false;
121 bool m_totalResolvedFindingsHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace AccessAnalyzer
126} // namespace Aws
ExternalAccessFindingsStatistics & AddResourceTypeStatistics(ResourceType key, ResourceTypeDetails value)
ExternalAccessFindingsStatistics & WithResourceTypeStatistics(ResourceTypeStatisticsT &&value)
AWS_ACCESSANALYZER_API ExternalAccessFindingsStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< ResourceType, ResourceTypeDetails > & GetResourceTypeStatistics() const
AWS_ACCESSANALYZER_API ExternalAccessFindingsStatistics(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API ExternalAccessFindingsStatistics()=default
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue