AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
ObservationRecord.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/AccountOverview.h>
10#include <aws/guardduty/model/DetectionCoverage.h>
11#include <aws/guardduty/model/Distribution.h>
12#include <aws/guardduty/model/FindingDetail.h>
13#include <aws/guardduty/model/InvestigationIndicator.h>
14#include <aws/guardduty/model/InvestigationMalwareScan.h>
15#include <aws/guardduty/model/InvestigationResource.h>
16#include <aws/guardduty/model/KubernetesActivity.h>
17#include <aws/guardduty/model/NetworkActivity.h>
18#include <aws/guardduty/model/ObservationType.h>
19#include <aws/guardduty/model/RdsLoginActivity.h>
20#include <aws/guardduty/model/Recommendation.h>
21#include <aws/guardduty/model/RelatedFindings.h>
22#include <aws/guardduty/model/RepresentativeFinding.h>
23#include <aws/guardduty/model/RuntimeSignals.h>
24#include <aws/guardduty/model/S3Activity.h>
25
26#include <utility>
27
28namespace Aws {
29namespace Utils {
30namespace Json {
31class JsonValue;
32class JsonView;
33} // namespace Json
34} // namespace Utils
35namespace GuardDuty {
36namespace Model {
37
48 public:
49 AWS_GUARDDUTY_API ObservationRecord() = default;
50 AWS_GUARDDUTY_API ObservationRecord(Aws::Utils::Json::JsonView jsonValue);
52 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
53
55
72 inline ObservationType GetObservationType() const { return m_observationType; }
73 inline bool ObservationTypeHasBeenSet() const { return m_observationTypeHasBeenSet; }
75 m_observationTypeHasBeenSet = true;
76 m_observationType = value;
77 }
79 SetObservationType(value);
80 return *this;
81 }
83
85
89 inline const FindingDetail& GetFindingDetail() const { return m_findingDetail; }
90 inline bool FindingDetailHasBeenSet() const { return m_findingDetailHasBeenSet; }
91 template <typename FindingDetailT = FindingDetail>
92 void SetFindingDetail(FindingDetailT&& value) {
93 m_findingDetailHasBeenSet = true;
94 m_findingDetail = std::forward<FindingDetailT>(value);
95 }
96 template <typename FindingDetailT = FindingDetail>
97 ObservationRecord& WithFindingDetail(FindingDetailT&& value) {
98 SetFindingDetail(std::forward<FindingDetailT>(value));
99 return *this;
100 }
102
104
108 inline const InvestigationResource& GetResource() const { return m_resource; }
109 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
110 template <typename ResourceT = InvestigationResource>
111 void SetResource(ResourceT&& value) {
112 m_resourceHasBeenSet = true;
113 m_resource = std::forward<ResourceT>(value);
114 }
115 template <typename ResourceT = InvestigationResource>
116 ObservationRecord& WithResource(ResourceT&& value) {
117 SetResource(std::forward<ResourceT>(value));
118 return *this;
119 }
121
123
127 inline const NetworkActivity& GetNetworkActivity() const { return m_networkActivity; }
128 inline bool NetworkActivityHasBeenSet() const { return m_networkActivityHasBeenSet; }
129 template <typename NetworkActivityT = NetworkActivity>
130 void SetNetworkActivity(NetworkActivityT&& value) {
131 m_networkActivityHasBeenSet = true;
132 m_networkActivity = std::forward<NetworkActivityT>(value);
133 }
134 template <typename NetworkActivityT = NetworkActivity>
135 ObservationRecord& WithNetworkActivity(NetworkActivityT&& value) {
136 SetNetworkActivity(std::forward<NetworkActivityT>(value));
137 return *this;
138 }
140
142
146 inline const RdsLoginActivity& GetRdsLoginActivity() const { return m_rdsLoginActivity; }
147 inline bool RdsLoginActivityHasBeenSet() const { return m_rdsLoginActivityHasBeenSet; }
148 template <typename RdsLoginActivityT = RdsLoginActivity>
149 void SetRdsLoginActivity(RdsLoginActivityT&& value) {
150 m_rdsLoginActivityHasBeenSet = true;
151 m_rdsLoginActivity = std::forward<RdsLoginActivityT>(value);
152 }
153 template <typename RdsLoginActivityT = RdsLoginActivity>
154 ObservationRecord& WithRdsLoginActivity(RdsLoginActivityT&& value) {
155 SetRdsLoginActivity(std::forward<RdsLoginActivityT>(value));
156 return *this;
157 }
159
161
165 inline const S3Activity& GetS3Activity() const { return m_s3Activity; }
166 inline bool S3ActivityHasBeenSet() const { return m_s3ActivityHasBeenSet; }
167 template <typename S3ActivityT = S3Activity>
168 void SetS3Activity(S3ActivityT&& value) {
169 m_s3ActivityHasBeenSet = true;
170 m_s3Activity = std::forward<S3ActivityT>(value);
171 }
172 template <typename S3ActivityT = S3Activity>
173 ObservationRecord& WithS3Activity(S3ActivityT&& value) {
174 SetS3Activity(std::forward<S3ActivityT>(value));
175 return *this;
176 }
178
180
184 inline const KubernetesActivity& GetKubernetesActivity() const { return m_kubernetesActivity; }
185 inline bool KubernetesActivityHasBeenSet() const { return m_kubernetesActivityHasBeenSet; }
186 template <typename KubernetesActivityT = KubernetesActivity>
187 void SetKubernetesActivity(KubernetesActivityT&& value) {
188 m_kubernetesActivityHasBeenSet = true;
189 m_kubernetesActivity = std::forward<KubernetesActivityT>(value);
190 }
191 template <typename KubernetesActivityT = KubernetesActivity>
192 ObservationRecord& WithKubernetesActivity(KubernetesActivityT&& value) {
193 SetKubernetesActivity(std::forward<KubernetesActivityT>(value));
194 return *this;
195 }
197
199
203 inline const InvestigationMalwareScan& GetMalwareScan() const { return m_malwareScan; }
204 inline bool MalwareScanHasBeenSet() const { return m_malwareScanHasBeenSet; }
205 template <typename MalwareScanT = InvestigationMalwareScan>
206 void SetMalwareScan(MalwareScanT&& value) {
207 m_malwareScanHasBeenSet = true;
208 m_malwareScan = std::forward<MalwareScanT>(value);
209 }
210 template <typename MalwareScanT = InvestigationMalwareScan>
211 ObservationRecord& WithMalwareScan(MalwareScanT&& value) {
212 SetMalwareScan(std::forward<MalwareScanT>(value));
213 return *this;
214 }
216
218
222 inline const RelatedFindings& GetRelatedFindings() const { return m_relatedFindings; }
223 inline bool RelatedFindingsHasBeenSet() const { return m_relatedFindingsHasBeenSet; }
224 template <typename RelatedFindingsT = RelatedFindings>
225 void SetRelatedFindings(RelatedFindingsT&& value) {
226 m_relatedFindingsHasBeenSet = true;
227 m_relatedFindings = std::forward<RelatedFindingsT>(value);
228 }
229 template <typename RelatedFindingsT = RelatedFindings>
230 ObservationRecord& WithRelatedFindings(RelatedFindingsT&& value) {
231 SetRelatedFindings(std::forward<RelatedFindingsT>(value));
232 return *this;
233 }
235
237
241 inline const DetectionCoverage& GetDetectionCoverage() const { return m_detectionCoverage; }
242 inline bool DetectionCoverageHasBeenSet() const { return m_detectionCoverageHasBeenSet; }
243 template <typename DetectionCoverageT = DetectionCoverage>
244 void SetDetectionCoverage(DetectionCoverageT&& value) {
245 m_detectionCoverageHasBeenSet = true;
246 m_detectionCoverage = std::forward<DetectionCoverageT>(value);
247 }
248 template <typename DetectionCoverageT = DetectionCoverage>
249 ObservationRecord& WithDetectionCoverage(DetectionCoverageT&& value) {
250 SetDetectionCoverage(std::forward<DetectionCoverageT>(value));
251 return *this;
252 }
254
256
260 inline const AccountOverview& GetAccountOverview() const { return m_accountOverview; }
261 inline bool AccountOverviewHasBeenSet() const { return m_accountOverviewHasBeenSet; }
262 template <typename AccountOverviewT = AccountOverview>
263 void SetAccountOverview(AccountOverviewT&& value) {
264 m_accountOverviewHasBeenSet = true;
265 m_accountOverview = std::forward<AccountOverviewT>(value);
266 }
267 template <typename AccountOverviewT = AccountOverview>
268 ObservationRecord& WithAccountOverview(AccountOverviewT&& value) {
269 SetAccountOverview(std::forward<AccountOverviewT>(value));
270 return *this;
271 }
273
275
279 inline const Aws::Vector<Recommendation>& GetRecommendations() const { return m_recommendations; }
280 inline bool RecommendationsHasBeenSet() const { return m_recommendationsHasBeenSet; }
281 template <typename RecommendationsT = Aws::Vector<Recommendation>>
282 void SetRecommendations(RecommendationsT&& value) {
283 m_recommendationsHasBeenSet = true;
284 m_recommendations = std::forward<RecommendationsT>(value);
285 }
286 template <typename RecommendationsT = Aws::Vector<Recommendation>>
287 ObservationRecord& WithRecommendations(RecommendationsT&& value) {
288 SetRecommendations(std::forward<RecommendationsT>(value));
289 return *this;
290 }
291 template <typename RecommendationsT = Recommendation>
292 ObservationRecord& AddRecommendations(RecommendationsT&& value) {
293 m_recommendationsHasBeenSet = true;
294 m_recommendations.emplace_back(std::forward<RecommendationsT>(value));
295 return *this;
296 }
298
300
304 inline const RuntimeSignals& GetRuntimeSignals() const { return m_runtimeSignals; }
305 inline bool RuntimeSignalsHasBeenSet() const { return m_runtimeSignalsHasBeenSet; }
306 template <typename RuntimeSignalsT = RuntimeSignals>
307 void SetRuntimeSignals(RuntimeSignalsT&& value) {
308 m_runtimeSignalsHasBeenSet = true;
309 m_runtimeSignals = std::forward<RuntimeSignalsT>(value);
310 }
311 template <typename RuntimeSignalsT = RuntimeSignals>
312 ObservationRecord& WithRuntimeSignals(RuntimeSignalsT&& value) {
313 SetRuntimeSignals(std::forward<RuntimeSignalsT>(value));
314 return *this;
315 }
317
319
323 inline const Distribution& GetDistribution() const { return m_distribution; }
324 inline bool DistributionHasBeenSet() const { return m_distributionHasBeenSet; }
325 template <typename DistributionT = Distribution>
326 void SetDistribution(DistributionT&& value) {
327 m_distributionHasBeenSet = true;
328 m_distribution = std::forward<DistributionT>(value);
329 }
330 template <typename DistributionT = Distribution>
331 ObservationRecord& WithDistribution(DistributionT&& value) {
332 SetDistribution(std::forward<DistributionT>(value));
333 return *this;
334 }
336
338
343 inline const Aws::Vector<RepresentativeFinding>& GetRepresentativeResources() const { return m_representativeResources; }
344 inline bool RepresentativeResourcesHasBeenSet() const { return m_representativeResourcesHasBeenSet; }
345 template <typename RepresentativeResourcesT = Aws::Vector<RepresentativeFinding>>
346 void SetRepresentativeResources(RepresentativeResourcesT&& value) {
347 m_representativeResourcesHasBeenSet = true;
348 m_representativeResources = std::forward<RepresentativeResourcesT>(value);
349 }
350 template <typename RepresentativeResourcesT = Aws::Vector<RepresentativeFinding>>
351 ObservationRecord& WithRepresentativeResources(RepresentativeResourcesT&& value) {
352 SetRepresentativeResources(std::forward<RepresentativeResourcesT>(value));
353 return *this;
354 }
355 template <typename RepresentativeResourcesT = RepresentativeFinding>
356 ObservationRecord& AddRepresentativeResources(RepresentativeResourcesT&& value) {
357 m_representativeResourcesHasBeenSet = true;
358 m_representativeResources.emplace_back(std::forward<RepresentativeResourcesT>(value));
359 return *this;
360 }
362
364
368 inline const Aws::Vector<InvestigationIndicator>& GetIndicators() const { return m_indicators; }
369 inline bool IndicatorsHasBeenSet() const { return m_indicatorsHasBeenSet; }
370 template <typename IndicatorsT = Aws::Vector<InvestigationIndicator>>
371 void SetIndicators(IndicatorsT&& value) {
372 m_indicatorsHasBeenSet = true;
373 m_indicators = std::forward<IndicatorsT>(value);
374 }
375 template <typename IndicatorsT = Aws::Vector<InvestigationIndicator>>
376 ObservationRecord& WithIndicators(IndicatorsT&& value) {
377 SetIndicators(std::forward<IndicatorsT>(value));
378 return *this;
379 }
380 template <typename IndicatorsT = InvestigationIndicator>
381 ObservationRecord& AddIndicators(IndicatorsT&& value) {
382 m_indicatorsHasBeenSet = true;
383 m_indicators.emplace_back(std::forward<IndicatorsT>(value));
384 return *this;
385 }
387 private:
388 ObservationType m_observationType{ObservationType::NOT_SET};
389
390 FindingDetail m_findingDetail;
391
392 InvestigationResource m_resource;
393
394 NetworkActivity m_networkActivity;
395
396 RdsLoginActivity m_rdsLoginActivity;
397
398 S3Activity m_s3Activity;
399
400 KubernetesActivity m_kubernetesActivity;
401
402 InvestigationMalwareScan m_malwareScan;
403
404 RelatedFindings m_relatedFindings;
405
406 DetectionCoverage m_detectionCoverage;
407
408 AccountOverview m_accountOverview;
409
410 Aws::Vector<Recommendation> m_recommendations;
411
412 RuntimeSignals m_runtimeSignals;
413
414 Distribution m_distribution;
415
416 Aws::Vector<RepresentativeFinding> m_representativeResources;
417
419 bool m_observationTypeHasBeenSet = false;
420 bool m_findingDetailHasBeenSet = false;
421 bool m_resourceHasBeenSet = false;
422 bool m_networkActivityHasBeenSet = false;
423 bool m_rdsLoginActivityHasBeenSet = false;
424 bool m_s3ActivityHasBeenSet = false;
425 bool m_kubernetesActivityHasBeenSet = false;
426 bool m_malwareScanHasBeenSet = false;
427 bool m_relatedFindingsHasBeenSet = false;
428 bool m_detectionCoverageHasBeenSet = false;
429 bool m_accountOverviewHasBeenSet = false;
430 bool m_recommendationsHasBeenSet = false;
431 bool m_runtimeSignalsHasBeenSet = false;
432 bool m_distributionHasBeenSet = false;
433 bool m_representativeResourcesHasBeenSet = false;
434 bool m_indicatorsHasBeenSet = false;
435};
436
437} // namespace Model
438} // namespace GuardDuty
439} // namespace Aws
void SetKubernetesActivity(KubernetesActivityT &&value)
AWS_GUARDDUTY_API ObservationRecord()=default
void SetAccountOverview(AccountOverviewT &&value)
ObservationRecord & WithResource(ResourceT &&value)
const AccountOverview & GetAccountOverview() const
void SetRelatedFindings(RelatedFindingsT &&value)
ObservationRecord & WithRuntimeSignals(RuntimeSignalsT &&value)
const Aws::Vector< Recommendation > & GetRecommendations() const
const RdsLoginActivity & GetRdsLoginActivity() const
const FindingDetail & GetFindingDetail() const
void SetRdsLoginActivity(RdsLoginActivityT &&value)
void SetNetworkActivity(NetworkActivityT &&value)
void SetDistribution(DistributionT &&value)
ObservationRecord & WithIndicators(IndicatorsT &&value)
ObservationRecord & AddRecommendations(RecommendationsT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDetectionCoverage(DetectionCoverageT &&value)
ObservationRecord & WithNetworkActivity(NetworkActivityT &&value)
ObservationRecord & AddIndicators(IndicatorsT &&value)
const NetworkActivity & GetNetworkActivity() const
ObservationRecord & WithAccountOverview(AccountOverviewT &&value)
const Aws::Vector< RepresentativeFinding > & GetRepresentativeResources() const
ObservationRecord & WithMalwareScan(MalwareScanT &&value)
const RelatedFindings & GetRelatedFindings() const
AWS_GUARDDUTY_API ObservationRecord(Aws::Utils::Json::JsonView jsonValue)
ObservationRecord & WithRdsLoginActivity(RdsLoginActivityT &&value)
const RuntimeSignals & GetRuntimeSignals() const
const InvestigationResource & GetResource() const
void SetRepresentativeResources(RepresentativeResourcesT &&value)
ObservationRecord & WithKubernetesActivity(KubernetesActivityT &&value)
const Distribution & GetDistribution() const
ObservationRecord & WithRecommendations(RecommendationsT &&value)
const KubernetesActivity & GetKubernetesActivity() const
void SetRuntimeSignals(RuntimeSignalsT &&value)
ObservationRecord & WithDistribution(DistributionT &&value)
ObservationRecord & AddRepresentativeResources(RepresentativeResourcesT &&value)
ObservationRecord & WithFindingDetail(FindingDetailT &&value)
ObservationRecord & WithObservationType(ObservationType value)
void SetFindingDetail(FindingDetailT &&value)
const Aws::Vector< InvestigationIndicator > & GetIndicators() const
ObservationRecord & WithRepresentativeResources(RepresentativeResourcesT &&value)
void SetRecommendations(RecommendationsT &&value)
const DetectionCoverage & GetDetectionCoverage() const
ObservationRecord & WithS3Activity(S3ActivityT &&value)
ObservationRecord & WithDetectionCoverage(DetectionCoverageT &&value)
AWS_GUARDDUTY_API ObservationRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetObservationType(ObservationType value)
const InvestigationMalwareScan & GetMalwareScan() const
ObservationRecord & WithRelatedFindings(RelatedFindingsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue