AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
Distribution.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/ArchiveDistribution.h>
10#include <aws/guardduty/model/DistributionDimension.h>
11#include <aws/guardduty/model/FindingTypeCount.h>
12#include <aws/guardduty/model/ResourceDistribution.h>
13#include <aws/guardduty/model/SeverityBreakdown.h>
14#include <aws/guardduty/model/TacticCoverage.h>
15#include <aws/guardduty/model/TypeDistribution.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace GuardDuty {
27namespace Model {
28
36 public:
37 AWS_GUARDDUTY_API Distribution() = default;
38 AWS_GUARDDUTY_API Distribution(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GUARDDUTY_API Distribution& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
51 inline DistributionDimension GetDimension() const { return m_dimension; }
52 inline bool DimensionHasBeenSet() const { return m_dimensionHasBeenSet; }
54 m_dimensionHasBeenSet = true;
55 m_dimension = value;
56 }
58 SetDimension(value);
59 return *this;
60 }
62
64
67 inline long long GetTotalFindings() const { return m_totalFindings; }
68 inline bool TotalFindingsHasBeenSet() const { return m_totalFindingsHasBeenSet; }
69 inline void SetTotalFindings(long long value) {
70 m_totalFindingsHasBeenSet = true;
71 m_totalFindings = value;
72 }
73 inline Distribution& WithTotalFindings(long long value) {
74 SetTotalFindings(value);
75 return *this;
76 }
78
80
83 inline const SeverityBreakdown& GetSeverityBreakdown() const { return m_severityBreakdown; }
84 inline bool SeverityBreakdownHasBeenSet() const { return m_severityBreakdownHasBeenSet; }
85 template <typename SeverityBreakdownT = SeverityBreakdown>
86 void SetSeverityBreakdown(SeverityBreakdownT&& value) {
87 m_severityBreakdownHasBeenSet = true;
88 m_severityBreakdown = std::forward<SeverityBreakdownT>(value);
89 }
90 template <typename SeverityBreakdownT = SeverityBreakdown>
91 Distribution& WithSeverityBreakdown(SeverityBreakdownT&& value) {
92 SetSeverityBreakdown(std::forward<SeverityBreakdownT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::Vector<TypeDistribution>& GetFindingTypes() const { return m_findingTypes; }
102 inline bool FindingTypesHasBeenSet() const { return m_findingTypesHasBeenSet; }
103 template <typename FindingTypesT = Aws::Vector<TypeDistribution>>
104 void SetFindingTypes(FindingTypesT&& value) {
105 m_findingTypesHasBeenSet = true;
106 m_findingTypes = std::forward<FindingTypesT>(value);
107 }
108 template <typename FindingTypesT = Aws::Vector<TypeDistribution>>
109 Distribution& WithFindingTypes(FindingTypesT&& value) {
110 SetFindingTypes(std::forward<FindingTypesT>(value));
111 return *this;
112 }
113 template <typename FindingTypesT = TypeDistribution>
114 Distribution& AddFindingTypes(FindingTypesT&& value) {
115 m_findingTypesHasBeenSet = true;
116 m_findingTypes.emplace_back(std::forward<FindingTypesT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::Vector<FindingTypeCount>& GetTopFindingTypes() const { return m_topFindingTypes; }
126 inline bool TopFindingTypesHasBeenSet() const { return m_topFindingTypesHasBeenSet; }
127 template <typename TopFindingTypesT = Aws::Vector<FindingTypeCount>>
128 void SetTopFindingTypes(TopFindingTypesT&& value) {
129 m_topFindingTypesHasBeenSet = true;
130 m_topFindingTypes = std::forward<TopFindingTypesT>(value);
131 }
132 template <typename TopFindingTypesT = Aws::Vector<FindingTypeCount>>
133 Distribution& WithTopFindingTypes(TopFindingTypesT&& value) {
134 SetTopFindingTypes(std::forward<TopFindingTypesT>(value));
135 return *this;
136 }
137 template <typename TopFindingTypesT = FindingTypeCount>
138 Distribution& AddTopFindingTypes(TopFindingTypesT&& value) {
139 m_topFindingTypesHasBeenSet = true;
140 m_topFindingTypes.emplace_back(std::forward<TopFindingTypesT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::Vector<ResourceDistribution>& GetResources() const { return m_resources; }
150 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
151 template <typename ResourcesT = Aws::Vector<ResourceDistribution>>
152 void SetResources(ResourcesT&& value) {
153 m_resourcesHasBeenSet = true;
154 m_resources = std::forward<ResourcesT>(value);
155 }
156 template <typename ResourcesT = Aws::Vector<ResourceDistribution>>
157 Distribution& WithResources(ResourcesT&& value) {
158 SetResources(std::forward<ResourcesT>(value));
159 return *this;
160 }
161 template <typename ResourcesT = ResourceDistribution>
162 Distribution& AddResources(ResourcesT&& value) {
163 m_resourcesHasBeenSet = true;
164 m_resources.emplace_back(std::forward<ResourcesT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::Vector<TacticCoverage>& GetAttackVectors() const { return m_attackVectors; }
174 inline bool AttackVectorsHasBeenSet() const { return m_attackVectorsHasBeenSet; }
175 template <typename AttackVectorsT = Aws::Vector<TacticCoverage>>
176 void SetAttackVectors(AttackVectorsT&& value) {
177 m_attackVectorsHasBeenSet = true;
178 m_attackVectors = std::forward<AttackVectorsT>(value);
179 }
180 template <typename AttackVectorsT = Aws::Vector<TacticCoverage>>
181 Distribution& WithAttackVectors(AttackVectorsT&& value) {
182 SetAttackVectors(std::forward<AttackVectorsT>(value));
183 return *this;
184 }
185 template <typename AttackVectorsT = TacticCoverage>
186 Distribution& AddAttackVectors(AttackVectorsT&& value) {
187 m_attackVectorsHasBeenSet = true;
188 m_attackVectors.emplace_back(std::forward<AttackVectorsT>(value));
189 return *this;
190 }
192
194
197 inline const ArchiveDistribution& GetArchive() const { return m_archive; }
198 inline bool ArchiveHasBeenSet() const { return m_archiveHasBeenSet; }
199 template <typename ArchiveT = ArchiveDistribution>
200 void SetArchive(ArchiveT&& value) {
201 m_archiveHasBeenSet = true;
202 m_archive = std::forward<ArchiveT>(value);
203 }
204 template <typename ArchiveT = ArchiveDistribution>
205 Distribution& WithArchive(ArchiveT&& value) {
206 SetArchive(std::forward<ArchiveT>(value));
207 return *this;
208 }
210 private:
212
213 long long m_totalFindings{0};
214
215 SeverityBreakdown m_severityBreakdown;
216
217 Aws::Vector<TypeDistribution> m_findingTypes;
218
219 Aws::Vector<FindingTypeCount> m_topFindingTypes;
220
222
223 Aws::Vector<TacticCoverage> m_attackVectors;
224
225 ArchiveDistribution m_archive;
226 bool m_dimensionHasBeenSet = false;
227 bool m_totalFindingsHasBeenSet = false;
228 bool m_severityBreakdownHasBeenSet = false;
229 bool m_findingTypesHasBeenSet = false;
230 bool m_topFindingTypesHasBeenSet = false;
231 bool m_resourcesHasBeenSet = false;
232 bool m_attackVectorsHasBeenSet = false;
233 bool m_archiveHasBeenSet = false;
234};
235
236} // namespace Model
237} // namespace GuardDuty
238} // namespace Aws
Distribution & WithResources(ResourcesT &&value)
AWS_GUARDDUTY_API Distribution()=default
Distribution & AddFindingTypes(FindingTypesT &&value)
DistributionDimension GetDimension() const
Distribution & WithSeverityBreakdown(SeverityBreakdownT &&value)
AWS_GUARDDUTY_API Distribution & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetArchive(ArchiveT &&value)
Distribution & WithFindingTypes(FindingTypesT &&value)
const Aws::Vector< TypeDistribution > & GetFindingTypes() const
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
Distribution & WithTopFindingTypes(TopFindingTypesT &&value)
void SetSeverityBreakdown(SeverityBreakdownT &&value)
void SetAttackVectors(AttackVectorsT &&value)
Distribution & AddTopFindingTypes(TopFindingTypesT &&value)
void SetTopFindingTypes(TopFindingTypesT &&value)
const Aws::Vector< FindingTypeCount > & GetTopFindingTypes() const
void SetFindingTypes(FindingTypesT &&value)
Distribution & WithTotalFindings(long long value)
const ArchiveDistribution & GetArchive() const
AWS_GUARDDUTY_API Distribution(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< TacticCoverage > & GetAttackVectors() const
Distribution & WithAttackVectors(AttackVectorsT &&value)
void SetTotalFindings(long long value)
void SetDimension(DistributionDimension value)
const Aws::Vector< ResourceDistribution > & GetResources() const
Distribution & WithArchive(ArchiveT &&value)
void SetResources(ResourcesT &&value)
Distribution & AddAttackVectors(AttackVectorsT &&value)
Distribution & WithDimension(DistributionDimension value)
Distribution & AddResources(ResourcesT &&value)
const SeverityBreakdown & GetSeverityBreakdown() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue