AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
ScanResult.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/model/MalwareScanner.h>
9#include <aws/backup/model/ScanFinding.h>
10#include <aws/backup/model/ScanJobState.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Backup {
24namespace Model {
25
33 public:
34 AWS_BACKUP_API ScanResult() = default;
35 AWS_BACKUP_API ScanResult(Aws::Utils::Json::JsonView jsonValue);
37 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline MalwareScanner GetMalwareScanner() const { return m_malwareScanner; }
45 inline bool MalwareScannerHasBeenSet() const { return m_malwareScannerHasBeenSet; }
46 inline void SetMalwareScanner(MalwareScanner value) {
47 m_malwareScannerHasBeenSet = true;
48 m_malwareScanner = value;
49 }
51 SetMalwareScanner(value);
52 return *this;
53 }
55
57
61 inline ScanJobState GetScanJobState() const { return m_scanJobState; }
62 inline bool ScanJobStateHasBeenSet() const { return m_scanJobStateHasBeenSet; }
63 inline void SetScanJobState(ScanJobState value) {
64 m_scanJobStateHasBeenSet = true;
65 m_scanJobState = value;
66 }
68 SetScanJobState(value);
69 return *this;
70 }
72
74
78 inline const Aws::Utils::DateTime& GetLastScanTimestamp() const { return m_lastScanTimestamp; }
79 inline bool LastScanTimestampHasBeenSet() const { return m_lastScanTimestampHasBeenSet; }
80 template <typename LastScanTimestampT = Aws::Utils::DateTime>
81 void SetLastScanTimestamp(LastScanTimestampT&& value) {
82 m_lastScanTimestampHasBeenSet = true;
83 m_lastScanTimestamp = std::forward<LastScanTimestampT>(value);
84 }
85 template <typename LastScanTimestampT = Aws::Utils::DateTime>
86 ScanResult& WithLastScanTimestamp(LastScanTimestampT&& value) {
87 SetLastScanTimestamp(std::forward<LastScanTimestampT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Vector<ScanFinding>& GetFindings() const { return m_findings; }
97 inline bool FindingsHasBeenSet() const { return m_findingsHasBeenSet; }
98 template <typename FindingsT = Aws::Vector<ScanFinding>>
99 void SetFindings(FindingsT&& value) {
100 m_findingsHasBeenSet = true;
101 m_findings = std::forward<FindingsT>(value);
102 }
103 template <typename FindingsT = Aws::Vector<ScanFinding>>
104 ScanResult& WithFindings(FindingsT&& value) {
105 SetFindings(std::forward<FindingsT>(value));
106 return *this;
107 }
109 m_findingsHasBeenSet = true;
110 m_findings.push_back(value);
111 return *this;
112 }
114 private:
115 MalwareScanner m_malwareScanner{MalwareScanner::NOT_SET};
116
117 ScanJobState m_scanJobState{ScanJobState::NOT_SET};
118
119 Aws::Utils::DateTime m_lastScanTimestamp{};
120
121 Aws::Vector<ScanFinding> m_findings;
122 bool m_malwareScannerHasBeenSet = false;
123 bool m_scanJobStateHasBeenSet = false;
124 bool m_lastScanTimestampHasBeenSet = false;
125 bool m_findingsHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace Backup
130} // namespace Aws
void SetMalwareScanner(MalwareScanner value)
Definition ScanResult.h:46
const Aws::Utils::DateTime & GetLastScanTimestamp() const
Definition ScanResult.h:78
AWS_BACKUP_API ScanResult(Aws::Utils::Json::JsonView jsonValue)
ScanJobState GetScanJobState() const
Definition ScanResult.h:61
ScanResult & WithMalwareScanner(MalwareScanner value)
Definition ScanResult.h:50
MalwareScanner GetMalwareScanner() const
Definition ScanResult.h:44
ScanResult & AddFindings(ScanFinding value)
Definition ScanResult.h:108
ScanResult & WithLastScanTimestamp(LastScanTimestampT &&value)
Definition ScanResult.h:86
void SetFindings(FindingsT &&value)
Definition ScanResult.h:99
ScanResult & WithFindings(FindingsT &&value)
Definition ScanResult.h:104
bool ScanJobStateHasBeenSet() const
Definition ScanResult.h:62
AWS_BACKUP_API ScanResult()=default
void SetLastScanTimestamp(LastScanTimestampT &&value)
Definition ScanResult.h:81
ScanResult & WithScanJobState(ScanJobState value)
Definition ScanResult.h:67
AWS_BACKUP_API ScanResult & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetScanJobState(ScanJobState value)
Definition ScanResult.h:63
const Aws::Vector< ScanFinding > & GetFindings() const
Definition ScanResult.h:96
bool MalwareScannerHasBeenSet() const
Definition ScanResult.h:45
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
bool LastScanTimestampHasBeenSet() const
Definition ScanResult.h:79
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue