AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UnusedAccessFindingsStatistics.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/accessanalyzer/model/UnusedAccessTypeStatistics.h>
10#include <aws/accessanalyzer/model/FindingAggregationAccountDetails.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
35 {
36 public:
37 AWS_ACCESSANALYZER_API UnusedAccessFindingsStatistics() = default;
40 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Vector<UnusedAccessTypeStatistics>& GetUnusedAccessTypeStatistics() const { return m_unusedAccessTypeStatistics; }
49 inline bool UnusedAccessTypeStatisticsHasBeenSet() const { return m_unusedAccessTypeStatisticsHasBeenSet; }
50 template<typename UnusedAccessTypeStatisticsT = Aws::Vector<UnusedAccessTypeStatistics>>
51 void SetUnusedAccessTypeStatistics(UnusedAccessTypeStatisticsT&& value) { m_unusedAccessTypeStatisticsHasBeenSet = true; m_unusedAccessTypeStatistics = std::forward<UnusedAccessTypeStatisticsT>(value); }
52 template<typename UnusedAccessTypeStatisticsT = Aws::Vector<UnusedAccessTypeStatistics>>
53 UnusedAccessFindingsStatistics& WithUnusedAccessTypeStatistics(UnusedAccessTypeStatisticsT&& value) { SetUnusedAccessTypeStatistics(std::forward<UnusedAccessTypeStatisticsT>(value)); return *this;}
54 template<typename UnusedAccessTypeStatisticsT = UnusedAccessTypeStatistics>
55 UnusedAccessFindingsStatistics& AddUnusedAccessTypeStatistics(UnusedAccessTypeStatisticsT&& value) { m_unusedAccessTypeStatisticsHasBeenSet = true; m_unusedAccessTypeStatistics.emplace_back(std::forward<UnusedAccessTypeStatisticsT>(value)); return *this; }
57
59
63 inline const Aws::Vector<FindingAggregationAccountDetails>& GetTopAccounts() const { return m_topAccounts; }
64 inline bool TopAccountsHasBeenSet() const { return m_topAccountsHasBeenSet; }
65 template<typename TopAccountsT = Aws::Vector<FindingAggregationAccountDetails>>
66 void SetTopAccounts(TopAccountsT&& value) { m_topAccountsHasBeenSet = true; m_topAccounts = std::forward<TopAccountsT>(value); }
67 template<typename TopAccountsT = Aws::Vector<FindingAggregationAccountDetails>>
68 UnusedAccessFindingsStatistics& WithTopAccounts(TopAccountsT&& value) { SetTopAccounts(std::forward<TopAccountsT>(value)); return *this;}
69 template<typename TopAccountsT = FindingAggregationAccountDetails>
70 UnusedAccessFindingsStatistics& AddTopAccounts(TopAccountsT&& value) { m_topAccountsHasBeenSet = true; m_topAccounts.emplace_back(std::forward<TopAccountsT>(value)); return *this; }
72
74
77 inline int GetTotalActiveFindings() const { return m_totalActiveFindings; }
78 inline bool TotalActiveFindingsHasBeenSet() const { return m_totalActiveFindingsHasBeenSet; }
79 inline void SetTotalActiveFindings(int value) { m_totalActiveFindingsHasBeenSet = true; m_totalActiveFindings = value; }
82
84
87 inline int GetTotalArchivedFindings() const { return m_totalArchivedFindings; }
88 inline bool TotalArchivedFindingsHasBeenSet() const { return m_totalArchivedFindingsHasBeenSet; }
89 inline void SetTotalArchivedFindings(int value) { m_totalArchivedFindingsHasBeenSet = true; m_totalArchivedFindings = value; }
92
94
97 inline int GetTotalResolvedFindings() const { return m_totalResolvedFindings; }
98 inline bool TotalResolvedFindingsHasBeenSet() const { return m_totalResolvedFindingsHasBeenSet; }
99 inline void SetTotalResolvedFindings(int value) { m_totalResolvedFindingsHasBeenSet = true; m_totalResolvedFindings = value; }
102 private:
103
104 Aws::Vector<UnusedAccessTypeStatistics> m_unusedAccessTypeStatistics;
105 bool m_unusedAccessTypeStatisticsHasBeenSet = false;
106
108 bool m_topAccountsHasBeenSet = false;
109
110 int m_totalActiveFindings{0};
111 bool m_totalActiveFindingsHasBeenSet = false;
112
113 int m_totalArchivedFindings{0};
114 bool m_totalArchivedFindingsHasBeenSet = false;
115
116 int m_totalResolvedFindings{0};
117 bool m_totalResolvedFindingsHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace AccessAnalyzer
122} // namespace Aws
const Aws::Vector< UnusedAccessTypeStatistics > & GetUnusedAccessTypeStatistics() const
UnusedAccessFindingsStatistics & WithUnusedAccessTypeStatistics(UnusedAccessTypeStatisticsT &&value)
AWS_ACCESSANALYZER_API UnusedAccessFindingsStatistics()=default
UnusedAccessFindingsStatistics & AddTopAccounts(TopAccountsT &&value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
UnusedAccessFindingsStatistics & WithTotalArchivedFindings(int value)
AWS_ACCESSANALYZER_API UnusedAccessFindingsStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
UnusedAccessFindingsStatistics & AddUnusedAccessTypeStatistics(UnusedAccessTypeStatisticsT &&value)
UnusedAccessFindingsStatistics & WithTopAccounts(TopAccountsT &&value)
AWS_ACCESSANALYZER_API UnusedAccessFindingsStatistics(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< FindingAggregationAccountDetails > & GetTopAccounts() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue