AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
AggregatedScanResult.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/model/ScanFinding.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Backup {
22namespace Model {
23
31 public:
32 AWS_BACKUP_API AggregatedScanResult() = default;
35 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline bool GetFailedScan() const { return m_failedScan; }
42 inline bool FailedScanHasBeenSet() const { return m_failedScanHasBeenSet; }
43 inline void SetFailedScan(bool value) {
44 m_failedScanHasBeenSet = true;
45 m_failedScan = value;
46 }
48 SetFailedScan(value);
49 return *this;
50 }
52
54
57 inline const Aws::Vector<ScanFinding>& GetFindings() const { return m_findings; }
58 inline bool FindingsHasBeenSet() const { return m_findingsHasBeenSet; }
59 template <typename FindingsT = Aws::Vector<ScanFinding>>
60 void SetFindings(FindingsT&& value) {
61 m_findingsHasBeenSet = true;
62 m_findings = std::forward<FindingsT>(value);
63 }
64 template <typename FindingsT = Aws::Vector<ScanFinding>>
65 AggregatedScanResult& WithFindings(FindingsT&& value) {
66 SetFindings(std::forward<FindingsT>(value));
67 return *this;
68 }
70 m_findingsHasBeenSet = true;
71 m_findings.push_back(value);
72 return *this;
73 }
75
77
81 inline const Aws::Utils::DateTime& GetLastComputed() const { return m_lastComputed; }
82 inline bool LastComputedHasBeenSet() const { return m_lastComputedHasBeenSet; }
83 template <typename LastComputedT = Aws::Utils::DateTime>
84 void SetLastComputed(LastComputedT&& value) {
85 m_lastComputedHasBeenSet = true;
86 m_lastComputed = std::forward<LastComputedT>(value);
87 }
88 template <typename LastComputedT = Aws::Utils::DateTime>
89 AggregatedScanResult& WithLastComputed(LastComputedT&& value) {
90 SetLastComputed(std::forward<LastComputedT>(value));
91 return *this;
92 }
94 private:
95 bool m_failedScan{false};
96
97 Aws::Vector<ScanFinding> m_findings;
98
99 Aws::Utils::DateTime m_lastComputed{};
100 bool m_failedScanHasBeenSet = false;
101 bool m_findingsHasBeenSet = false;
102 bool m_lastComputedHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace Backup
107} // namespace Aws
AWS_BACKUP_API AggregatedScanResult & operator=(Aws::Utils::Json::JsonView jsonValue)
AggregatedScanResult & WithLastComputed(LastComputedT &&value)
AWS_BACKUP_API AggregatedScanResult()=default
const Aws::Vector< ScanFinding > & GetFindings() const
AggregatedScanResult & AddFindings(ScanFinding value)
AggregatedScanResult & WithFailedScan(bool value)
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastComputed() const
AWS_BACKUP_API AggregatedScanResult(Aws::Utils::Json::JsonView jsonValue)
AggregatedScanResult & WithFindings(FindingsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue