AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ScanDetections.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/model/ScannedItemCount.h>
9#include <aws/guardduty/model/ThreatsDetectedItemCount.h>
10#include <aws/guardduty/model/HighestSeverityThreatDetails.h>
11#include <aws/guardduty/model/ThreatDetectedByName.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GuardDuty
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_GUARDDUTY_API ScanDetections() = default;
39 AWS_GUARDDUTY_API ScanDetections(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const ScannedItemCount& GetScannedItemCount() const { return m_scannedItemCount; }
49 inline bool ScannedItemCountHasBeenSet() const { return m_scannedItemCountHasBeenSet; }
50 template<typename ScannedItemCountT = ScannedItemCount>
51 void SetScannedItemCount(ScannedItemCountT&& value) { m_scannedItemCountHasBeenSet = true; m_scannedItemCount = std::forward<ScannedItemCountT>(value); }
52 template<typename ScannedItemCountT = ScannedItemCount>
53 ScanDetections& WithScannedItemCount(ScannedItemCountT&& value) { SetScannedItemCount(std::forward<ScannedItemCountT>(value)); return *this;}
55
57
60 inline const ThreatsDetectedItemCount& GetThreatsDetectedItemCount() const { return m_threatsDetectedItemCount; }
61 inline bool ThreatsDetectedItemCountHasBeenSet() const { return m_threatsDetectedItemCountHasBeenSet; }
62 template<typename ThreatsDetectedItemCountT = ThreatsDetectedItemCount>
63 void SetThreatsDetectedItemCount(ThreatsDetectedItemCountT&& value) { m_threatsDetectedItemCountHasBeenSet = true; m_threatsDetectedItemCount = std::forward<ThreatsDetectedItemCountT>(value); }
64 template<typename ThreatsDetectedItemCountT = ThreatsDetectedItemCount>
65 ScanDetections& WithThreatsDetectedItemCount(ThreatsDetectedItemCountT&& value) { SetThreatsDetectedItemCount(std::forward<ThreatsDetectedItemCountT>(value)); return *this;}
67
69
73 inline const HighestSeverityThreatDetails& GetHighestSeverityThreatDetails() const { return m_highestSeverityThreatDetails; }
74 inline bool HighestSeverityThreatDetailsHasBeenSet() const { return m_highestSeverityThreatDetailsHasBeenSet; }
75 template<typename HighestSeverityThreatDetailsT = HighestSeverityThreatDetails>
76 void SetHighestSeverityThreatDetails(HighestSeverityThreatDetailsT&& value) { m_highestSeverityThreatDetailsHasBeenSet = true; m_highestSeverityThreatDetails = std::forward<HighestSeverityThreatDetailsT>(value); }
77 template<typename HighestSeverityThreatDetailsT = HighestSeverityThreatDetails>
78 ScanDetections& WithHighestSeverityThreatDetails(HighestSeverityThreatDetailsT&& value) { SetHighestSeverityThreatDetails(std::forward<HighestSeverityThreatDetailsT>(value)); return *this;}
80
82
85 inline const ThreatDetectedByName& GetThreatDetectedByName() const { return m_threatDetectedByName; }
86 inline bool ThreatDetectedByNameHasBeenSet() const { return m_threatDetectedByNameHasBeenSet; }
87 template<typename ThreatDetectedByNameT = ThreatDetectedByName>
88 void SetThreatDetectedByName(ThreatDetectedByNameT&& value) { m_threatDetectedByNameHasBeenSet = true; m_threatDetectedByName = std::forward<ThreatDetectedByNameT>(value); }
89 template<typename ThreatDetectedByNameT = ThreatDetectedByName>
90 ScanDetections& WithThreatDetectedByName(ThreatDetectedByNameT&& value) { SetThreatDetectedByName(std::forward<ThreatDetectedByNameT>(value)); return *this;}
92 private:
93
94 ScannedItemCount m_scannedItemCount;
95 bool m_scannedItemCountHasBeenSet = false;
96
97 ThreatsDetectedItemCount m_threatsDetectedItemCount;
98 bool m_threatsDetectedItemCountHasBeenSet = false;
99
100 HighestSeverityThreatDetails m_highestSeverityThreatDetails;
101 bool m_highestSeverityThreatDetailsHasBeenSet = false;
102
103 ThreatDetectedByName m_threatDetectedByName;
104 bool m_threatDetectedByNameHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace GuardDuty
109} // namespace Aws
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const ScannedItemCount & GetScannedItemCount() const
void SetThreatDetectedByName(ThreatDetectedByNameT &&value)
void SetThreatsDetectedItemCount(ThreatsDetectedItemCountT &&value)
const ThreatsDetectedItemCount & GetThreatsDetectedItemCount() const
ScanDetections & WithThreatDetectedByName(ThreatDetectedByNameT &&value)
void SetHighestSeverityThreatDetails(HighestSeverityThreatDetailsT &&value)
AWS_GUARDDUTY_API ScanDetections & operator=(Aws::Utils::Json::JsonView jsonValue)
ScanDetections & WithScannedItemCount(ScannedItemCountT &&value)
void SetScannedItemCount(ScannedItemCountT &&value)
AWS_GUARDDUTY_API ScanDetections()=default
ScanDetections & WithHighestSeverityThreatDetails(HighestSeverityThreatDetailsT &&value)
const HighestSeverityThreatDetails & GetHighestSeverityThreatDetails() const
AWS_GUARDDUTY_API ScanDetections(Aws::Utils::Json::JsonView jsonValue)
const ThreatDetectedByName & GetThreatDetectedByName() const
ScanDetections & WithThreatsDetectedItemCount(ThreatsDetectedItemCountT &&value)
Aws::Utils::Json::JsonValue JsonValue