AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
FindingStatistics.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9#include <aws/guardduty/model/AccountStatistics.h>
10#include <aws/guardduty/model/DateStatistics.h>
11#include <aws/guardduty/model/FindingTypeStatistics.h>
12#include <aws/guardduty/model/ResourceStatistics.h>
13#include <aws/guardduty/model/SeverityStatistics.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GuardDuty {
25namespace Model {
26
33 public:
34 AWS_GUARDDUTY_API FindingStatistics() = default;
35 AWS_GUARDDUTY_API FindingStatistics(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::Vector<AccountStatistics>& GetGroupedByAccount() const { return m_groupedByAccount; }
45 inline bool GroupedByAccountHasBeenSet() const { return m_groupedByAccountHasBeenSet; }
46 template <typename GroupedByAccountT = Aws::Vector<AccountStatistics>>
47 void SetGroupedByAccount(GroupedByAccountT&& value) {
48 m_groupedByAccountHasBeenSet = true;
49 m_groupedByAccount = std::forward<GroupedByAccountT>(value);
50 }
51 template <typename GroupedByAccountT = Aws::Vector<AccountStatistics>>
52 FindingStatistics& WithGroupedByAccount(GroupedByAccountT&& value) {
53 SetGroupedByAccount(std::forward<GroupedByAccountT>(value));
54 return *this;
55 }
56 template <typename GroupedByAccountT = AccountStatistics>
57 FindingStatistics& AddGroupedByAccount(GroupedByAccountT&& value) {
58 m_groupedByAccountHasBeenSet = true;
59 m_groupedByAccount.emplace_back(std::forward<GroupedByAccountT>(value));
60 return *this;
61 }
63
65
69 inline const Aws::Vector<DateStatistics>& GetGroupedByDate() const { return m_groupedByDate; }
70 inline bool GroupedByDateHasBeenSet() const { return m_groupedByDateHasBeenSet; }
71 template <typename GroupedByDateT = Aws::Vector<DateStatistics>>
72 void SetGroupedByDate(GroupedByDateT&& value) {
73 m_groupedByDateHasBeenSet = true;
74 m_groupedByDate = std::forward<GroupedByDateT>(value);
75 }
76 template <typename GroupedByDateT = Aws::Vector<DateStatistics>>
77 FindingStatistics& WithGroupedByDate(GroupedByDateT&& value) {
78 SetGroupedByDate(std::forward<GroupedByDateT>(value));
79 return *this;
80 }
81 template <typename GroupedByDateT = DateStatistics>
82 FindingStatistics& AddGroupedByDate(GroupedByDateT&& value) {
83 m_groupedByDateHasBeenSet = true;
84 m_groupedByDate.emplace_back(std::forward<GroupedByDateT>(value));
85 return *this;
86 }
88
90
99 inline const Aws::Vector<FindingTypeStatistics>& GetGroupedByFindingType() const { return m_groupedByFindingType; }
100 inline bool GroupedByFindingTypeHasBeenSet() const { return m_groupedByFindingTypeHasBeenSet; }
101 template <typename GroupedByFindingTypeT = Aws::Vector<FindingTypeStatistics>>
102 void SetGroupedByFindingType(GroupedByFindingTypeT&& value) {
103 m_groupedByFindingTypeHasBeenSet = true;
104 m_groupedByFindingType = std::forward<GroupedByFindingTypeT>(value);
105 }
106 template <typename GroupedByFindingTypeT = Aws::Vector<FindingTypeStatistics>>
107 FindingStatistics& WithGroupedByFindingType(GroupedByFindingTypeT&& value) {
108 SetGroupedByFindingType(std::forward<GroupedByFindingTypeT>(value));
109 return *this;
110 }
111 template <typename GroupedByFindingTypeT = FindingTypeStatistics>
112 FindingStatistics& AddGroupedByFindingType(GroupedByFindingTypeT&& value) {
113 m_groupedByFindingTypeHasBeenSet = true;
114 m_groupedByFindingType.emplace_back(std::forward<GroupedByFindingTypeT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::Vector<ResourceStatistics>& GetGroupedByResource() const { return m_groupedByResource; }
124 inline bool GroupedByResourceHasBeenSet() const { return m_groupedByResourceHasBeenSet; }
125 template <typename GroupedByResourceT = Aws::Vector<ResourceStatistics>>
126 void SetGroupedByResource(GroupedByResourceT&& value) {
127 m_groupedByResourceHasBeenSet = true;
128 m_groupedByResource = std::forward<GroupedByResourceT>(value);
129 }
130 template <typename GroupedByResourceT = Aws::Vector<ResourceStatistics>>
131 FindingStatistics& WithGroupedByResource(GroupedByResourceT&& value) {
132 SetGroupedByResource(std::forward<GroupedByResourceT>(value));
133 return *this;
134 }
135 template <typename GroupedByResourceT = ResourceStatistics>
136 FindingStatistics& AddGroupedByResource(GroupedByResourceT&& value) {
137 m_groupedByResourceHasBeenSet = true;
138 m_groupedByResource.emplace_back(std::forward<GroupedByResourceT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::Vector<SeverityStatistics>& GetGroupedBySeverity() const { return m_groupedBySeverity; }
148 inline bool GroupedBySeverityHasBeenSet() const { return m_groupedBySeverityHasBeenSet; }
149 template <typename GroupedBySeverityT = Aws::Vector<SeverityStatistics>>
150 void SetGroupedBySeverity(GroupedBySeverityT&& value) {
151 m_groupedBySeverityHasBeenSet = true;
152 m_groupedBySeverity = std::forward<GroupedBySeverityT>(value);
153 }
154 template <typename GroupedBySeverityT = Aws::Vector<SeverityStatistics>>
155 FindingStatistics& WithGroupedBySeverity(GroupedBySeverityT&& value) {
156 SetGroupedBySeverity(std::forward<GroupedBySeverityT>(value));
157 return *this;
158 }
159 template <typename GroupedBySeverityT = SeverityStatistics>
160 FindingStatistics& AddGroupedBySeverity(GroupedBySeverityT&& value) {
161 m_groupedBySeverityHasBeenSet = true;
162 m_groupedBySeverity.emplace_back(std::forward<GroupedBySeverityT>(value));
163 return *this;
164 }
166 private:
167 Aws::Vector<AccountStatistics> m_groupedByAccount;
168
169 Aws::Vector<DateStatistics> m_groupedByDate;
170
171 Aws::Vector<FindingTypeStatistics> m_groupedByFindingType;
172
173 Aws::Vector<ResourceStatistics> m_groupedByResource;
174
175 Aws::Vector<SeverityStatistics> m_groupedBySeverity;
176 bool m_groupedByAccountHasBeenSet = false;
177 bool m_groupedByDateHasBeenSet = false;
178 bool m_groupedByFindingTypeHasBeenSet = false;
179 bool m_groupedByResourceHasBeenSet = false;
180 bool m_groupedBySeverityHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace GuardDuty
185} // namespace Aws
AWS_GUARDDUTY_API FindingStatistics()=default
FindingStatistics & AddGroupedByResource(GroupedByResourceT &&value)
FindingStatistics & AddGroupedBySeverity(GroupedBySeverityT &&value)
FindingStatistics & WithGroupedByResource(GroupedByResourceT &&value)
FindingStatistics & WithGroupedByAccount(GroupedByAccountT &&value)
FindingStatistics & AddGroupedByAccount(GroupedByAccountT &&value)
AWS_GUARDDUTY_API FindingStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AccountStatistics > & GetGroupedByAccount() const
FindingStatistics & AddGroupedByFindingType(GroupedByFindingTypeT &&value)
void SetGroupedBySeverity(GroupedBySeverityT &&value)
FindingStatistics & WithGroupedBySeverity(GroupedBySeverityT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API FindingStatistics(Aws::Utils::Json::JsonView jsonValue)
void SetGroupedByAccount(GroupedByAccountT &&value)
const Aws::Vector< DateStatistics > & GetGroupedByDate() const
void SetGroupedByFindingType(GroupedByFindingTypeT &&value)
void SetGroupedByResource(GroupedByResourceT &&value)
FindingStatistics & WithGroupedByFindingType(GroupedByFindingTypeT &&value)
FindingStatistics & WithGroupedByDate(GroupedByDateT &&value)
FindingStatistics & AddGroupedByDate(GroupedByDateT &&value)
const Aws::Vector< FindingTypeStatistics > & GetGroupedByFindingType() const
const Aws::Vector< SeverityStatistics > & GetGroupedBySeverity() const
void SetGroupedByDate(GroupedByDateT &&value)
const Aws::Vector< ResourceStatistics > & GetGroupedByResource() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue