AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
ScanDetections.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/model/HighestSeverityThreatDetails.h>
9#include <aws/guardduty/model/ScannedItemCount.h>
10#include <aws/guardduty/model/ThreatDetectedByName.h>
11#include <aws/guardduty/model/ThreatsDetectedItemCount.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GuardDuty {
23namespace Model {
24
32 public:
33 AWS_GUARDDUTY_API ScanDetections() = default;
34 AWS_GUARDDUTY_API ScanDetections(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const ScannedItemCount& GetScannedItemCount() const { return m_scannedItemCount; }
43 inline bool ScannedItemCountHasBeenSet() const { return m_scannedItemCountHasBeenSet; }
44 template <typename ScannedItemCountT = ScannedItemCount>
45 void SetScannedItemCount(ScannedItemCountT&& value) {
46 m_scannedItemCountHasBeenSet = true;
47 m_scannedItemCount = std::forward<ScannedItemCountT>(value);
48 }
49 template <typename ScannedItemCountT = ScannedItemCount>
50 ScanDetections& WithScannedItemCount(ScannedItemCountT&& value) {
51 SetScannedItemCount(std::forward<ScannedItemCountT>(value));
52 return *this;
53 }
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) {
64 m_threatsDetectedItemCountHasBeenSet = true;
65 m_threatsDetectedItemCount = std::forward<ThreatsDetectedItemCountT>(value);
66 }
67 template <typename ThreatsDetectedItemCountT = ThreatsDetectedItemCount>
68 ScanDetections& WithThreatsDetectedItemCount(ThreatsDetectedItemCountT&& value) {
69 SetThreatsDetectedItemCount(std::forward<ThreatsDetectedItemCountT>(value));
70 return *this;
71 }
73
75
79 inline const HighestSeverityThreatDetails& GetHighestSeverityThreatDetails() const { return m_highestSeverityThreatDetails; }
80 inline bool HighestSeverityThreatDetailsHasBeenSet() const { return m_highestSeverityThreatDetailsHasBeenSet; }
81 template <typename HighestSeverityThreatDetailsT = HighestSeverityThreatDetails>
82 void SetHighestSeverityThreatDetails(HighestSeverityThreatDetailsT&& value) {
83 m_highestSeverityThreatDetailsHasBeenSet = true;
84 m_highestSeverityThreatDetails = std::forward<HighestSeverityThreatDetailsT>(value);
85 }
86 template <typename HighestSeverityThreatDetailsT = HighestSeverityThreatDetails>
87 ScanDetections& WithHighestSeverityThreatDetails(HighestSeverityThreatDetailsT&& value) {
88 SetHighestSeverityThreatDetails(std::forward<HighestSeverityThreatDetailsT>(value));
89 return *this;
90 }
92
94
97 inline const ThreatDetectedByName& GetThreatDetectedByName() const { return m_threatDetectedByName; }
98 inline bool ThreatDetectedByNameHasBeenSet() const { return m_threatDetectedByNameHasBeenSet; }
99 template <typename ThreatDetectedByNameT = ThreatDetectedByName>
100 void SetThreatDetectedByName(ThreatDetectedByNameT&& value) {
101 m_threatDetectedByNameHasBeenSet = true;
102 m_threatDetectedByName = std::forward<ThreatDetectedByNameT>(value);
103 }
104 template <typename ThreatDetectedByNameT = ThreatDetectedByName>
105 ScanDetections& WithThreatDetectedByName(ThreatDetectedByNameT&& value) {
106 SetThreatDetectedByName(std::forward<ThreatDetectedByNameT>(value));
107 return *this;
108 }
110 private:
111 ScannedItemCount m_scannedItemCount;
112
113 ThreatsDetectedItemCount m_threatsDetectedItemCount;
114
115 HighestSeverityThreatDetails m_highestSeverityThreatDetails;
116
117 ThreatDetectedByName m_threatDetectedByName;
118 bool m_scannedItemCountHasBeenSet = false;
119 bool m_threatsDetectedItemCountHasBeenSet = false;
120 bool m_highestSeverityThreatDetailsHasBeenSet = false;
121 bool m_threatDetectedByNameHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace GuardDuty
126} // 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