AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
GetMalwareScanResultDetails.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/ScanResultStatus.h>
10#include <aws/guardduty/model/ScanResultThreat.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty {
22namespace Model {
23
31 public:
32 AWS_GUARDDUTY_API GetMalwareScanResultDetails() = default;
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline ScanResultStatus GetScanResultStatus() const { return m_scanResultStatus; }
42 inline bool ScanResultStatusHasBeenSet() const { return m_scanResultStatusHasBeenSet; }
44 m_scanResultStatusHasBeenSet = true;
45 m_scanResultStatus = value;
46 }
49 return *this;
50 }
52
54
57 inline long long GetSkippedFileCount() const { return m_skippedFileCount; }
58 inline bool SkippedFileCountHasBeenSet() const { return m_skippedFileCountHasBeenSet; }
59 inline void SetSkippedFileCount(long long value) {
60 m_skippedFileCountHasBeenSet = true;
61 m_skippedFileCount = value;
62 }
65 return *this;
66 }
68
70
73 inline long long GetFailedFileCount() const { return m_failedFileCount; }
74 inline bool FailedFileCountHasBeenSet() const { return m_failedFileCountHasBeenSet; }
75 inline void SetFailedFileCount(long long value) {
76 m_failedFileCountHasBeenSet = true;
77 m_failedFileCount = value;
78 }
80 SetFailedFileCount(value);
81 return *this;
82 }
84
86
89 inline long long GetThreatFoundFileCount() const { return m_threatFoundFileCount; }
90 inline bool ThreatFoundFileCountHasBeenSet() const { return m_threatFoundFileCountHasBeenSet; }
91 inline void SetThreatFoundFileCount(long long value) {
92 m_threatFoundFileCountHasBeenSet = true;
93 m_threatFoundFileCount = value;
94 }
97 return *this;
98 }
100
102
105 inline long long GetTotalFileCount() const { return m_totalFileCount; }
106 inline bool TotalFileCountHasBeenSet() const { return m_totalFileCountHasBeenSet; }
107 inline void SetTotalFileCount(long long value) {
108 m_totalFileCountHasBeenSet = true;
109 m_totalFileCount = value;
110 }
112 SetTotalFileCount(value);
113 return *this;
114 }
116
118
121 inline long long GetTotalBytes() const { return m_totalBytes; }
122 inline bool TotalBytesHasBeenSet() const { return m_totalBytesHasBeenSet; }
123 inline void SetTotalBytes(long long value) {
124 m_totalBytesHasBeenSet = true;
125 m_totalBytes = value;
126 }
128 SetTotalBytes(value);
129 return *this;
130 }
132
134
137 inline long long GetUniqueThreatCount() const { return m_uniqueThreatCount; }
138 inline bool UniqueThreatCountHasBeenSet() const { return m_uniqueThreatCountHasBeenSet; }
139 inline void SetUniqueThreatCount(long long value) {
140 m_uniqueThreatCountHasBeenSet = true;
141 m_uniqueThreatCount = value;
142 }
145 return *this;
146 }
148
150
153 inline const Aws::Vector<ScanResultThreat>& GetThreats() const { return m_threats; }
154 inline bool ThreatsHasBeenSet() const { return m_threatsHasBeenSet; }
155 template <typename ThreatsT = Aws::Vector<ScanResultThreat>>
156 void SetThreats(ThreatsT&& value) {
157 m_threatsHasBeenSet = true;
158 m_threats = std::forward<ThreatsT>(value);
159 }
160 template <typename ThreatsT = Aws::Vector<ScanResultThreat>>
162 SetThreats(std::forward<ThreatsT>(value));
163 return *this;
164 }
165 template <typename ThreatsT = ScanResultThreat>
167 m_threatsHasBeenSet = true;
168 m_threats.emplace_back(std::forward<ThreatsT>(value));
169 return *this;
170 }
172 private:
174
175 long long m_skippedFileCount{0};
176
177 long long m_failedFileCount{0};
178
179 long long m_threatFoundFileCount{0};
180
181 long long m_totalFileCount{0};
182
183 long long m_totalBytes{0};
184
185 long long m_uniqueThreatCount{0};
186
188 bool m_scanResultStatusHasBeenSet = false;
189 bool m_skippedFileCountHasBeenSet = false;
190 bool m_failedFileCountHasBeenSet = false;
191 bool m_threatFoundFileCountHasBeenSet = false;
192 bool m_totalFileCountHasBeenSet = false;
193 bool m_totalBytesHasBeenSet = false;
194 bool m_uniqueThreatCountHasBeenSet = false;
195 bool m_threatsHasBeenSet = false;
196};
197
198} // namespace Model
199} // namespace GuardDuty
200} // namespace Aws
AWS_GUARDDUTY_API GetMalwareScanResultDetails()=default
GetMalwareScanResultDetails & WithTotalBytes(long long value)
GetMalwareScanResultDetails & WithSkippedFileCount(long long value)
GetMalwareScanResultDetails & WithTotalFileCount(long long value)
AWS_GUARDDUTY_API GetMalwareScanResultDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
GetMalwareScanResultDetails & WithFailedFileCount(long long value)
GetMalwareScanResultDetails & WithThreats(ThreatsT &&value)
GetMalwareScanResultDetails & WithUniqueThreatCount(long long value)
const Aws::Vector< ScanResultThreat > & GetThreats() const
GetMalwareScanResultDetails & WithScanResultStatus(ScanResultStatus value)
GetMalwareScanResultDetails & WithThreatFoundFileCount(long long value)
GetMalwareScanResultDetails & AddThreats(ThreatsT &&value)
AWS_GUARDDUTY_API GetMalwareScanResultDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue