AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
EbsVolumeScanDetails.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/guardduty/model/ScanDetections.h>
12#include <aws/guardduty/model/ScanType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace GuardDuty
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_GUARDDUTY_API EbsVolumeScanDetails() = default;
42 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetScanId() const { return m_scanId; }
50 inline bool ScanIdHasBeenSet() const { return m_scanIdHasBeenSet; }
51 template<typename ScanIdT = Aws::String>
52 void SetScanId(ScanIdT&& value) { m_scanIdHasBeenSet = true; m_scanId = std::forward<ScanIdT>(value); }
53 template<typename ScanIdT = Aws::String>
54 EbsVolumeScanDetails& WithScanId(ScanIdT&& value) { SetScanId(std::forward<ScanIdT>(value)); return *this;}
56
58
61 inline const Aws::Utils::DateTime& GetScanStartedAt() const { return m_scanStartedAt; }
62 inline bool ScanStartedAtHasBeenSet() const { return m_scanStartedAtHasBeenSet; }
63 template<typename ScanStartedAtT = Aws::Utils::DateTime>
64 void SetScanStartedAt(ScanStartedAtT&& value) { m_scanStartedAtHasBeenSet = true; m_scanStartedAt = std::forward<ScanStartedAtT>(value); }
65 template<typename ScanStartedAtT = Aws::Utils::DateTime>
66 EbsVolumeScanDetails& WithScanStartedAt(ScanStartedAtT&& value) { SetScanStartedAt(std::forward<ScanStartedAtT>(value)); return *this;}
68
70
73 inline const Aws::Utils::DateTime& GetScanCompletedAt() const { return m_scanCompletedAt; }
74 inline bool ScanCompletedAtHasBeenSet() const { return m_scanCompletedAtHasBeenSet; }
75 template<typename ScanCompletedAtT = Aws::Utils::DateTime>
76 void SetScanCompletedAt(ScanCompletedAtT&& value) { m_scanCompletedAtHasBeenSet = true; m_scanCompletedAt = std::forward<ScanCompletedAtT>(value); }
77 template<typename ScanCompletedAtT = Aws::Utils::DateTime>
78 EbsVolumeScanDetails& WithScanCompletedAt(ScanCompletedAtT&& value) { SetScanCompletedAt(std::forward<ScanCompletedAtT>(value)); return *this;}
80
82
85 inline const Aws::String& GetTriggerFindingId() const { return m_triggerFindingId; }
86 inline bool TriggerFindingIdHasBeenSet() const { return m_triggerFindingIdHasBeenSet; }
87 template<typename TriggerFindingIdT = Aws::String>
88 void SetTriggerFindingId(TriggerFindingIdT&& value) { m_triggerFindingIdHasBeenSet = true; m_triggerFindingId = std::forward<TriggerFindingIdT>(value); }
89 template<typename TriggerFindingIdT = Aws::String>
90 EbsVolumeScanDetails& WithTriggerFindingId(TriggerFindingIdT&& value) { SetTriggerFindingId(std::forward<TriggerFindingIdT>(value)); return *this;}
92
94
97 inline const Aws::Vector<Aws::String>& GetSources() const { return m_sources; }
98 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
99 template<typename SourcesT = Aws::Vector<Aws::String>>
100 void SetSources(SourcesT&& value) { m_sourcesHasBeenSet = true; m_sources = std::forward<SourcesT>(value); }
101 template<typename SourcesT = Aws::Vector<Aws::String>>
102 EbsVolumeScanDetails& WithSources(SourcesT&& value) { SetSources(std::forward<SourcesT>(value)); return *this;}
103 template<typename SourcesT = Aws::String>
104 EbsVolumeScanDetails& AddSources(SourcesT&& value) { m_sourcesHasBeenSet = true; m_sources.emplace_back(std::forward<SourcesT>(value)); return *this; }
106
108
111 inline const ScanDetections& GetScanDetections() const { return m_scanDetections; }
112 inline bool ScanDetectionsHasBeenSet() const { return m_scanDetectionsHasBeenSet; }
113 template<typename ScanDetectionsT = ScanDetections>
114 void SetScanDetections(ScanDetectionsT&& value) { m_scanDetectionsHasBeenSet = true; m_scanDetections = std::forward<ScanDetectionsT>(value); }
115 template<typename ScanDetectionsT = ScanDetections>
116 EbsVolumeScanDetails& WithScanDetections(ScanDetectionsT&& value) { SetScanDetections(std::forward<ScanDetectionsT>(value)); return *this;}
118
120
123 inline ScanType GetScanType() const { return m_scanType; }
124 inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; }
125 inline void SetScanType(ScanType value) { m_scanTypeHasBeenSet = true; m_scanType = value; }
126 inline EbsVolumeScanDetails& WithScanType(ScanType value) { SetScanType(value); return *this;}
128 private:
129
130 Aws::String m_scanId;
131 bool m_scanIdHasBeenSet = false;
132
133 Aws::Utils::DateTime m_scanStartedAt{};
134 bool m_scanStartedAtHasBeenSet = false;
135
136 Aws::Utils::DateTime m_scanCompletedAt{};
137 bool m_scanCompletedAtHasBeenSet = false;
138
139 Aws::String m_triggerFindingId;
140 bool m_triggerFindingIdHasBeenSet = false;
141
142 Aws::Vector<Aws::String> m_sources;
143 bool m_sourcesHasBeenSet = false;
144
145 ScanDetections m_scanDetections;
146 bool m_scanDetectionsHasBeenSet = false;
147
148 ScanType m_scanType{ScanType::NOT_SET};
149 bool m_scanTypeHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace GuardDuty
154} // namespace Aws
AWS_GUARDDUTY_API EbsVolumeScanDetails()=default
void SetTriggerFindingId(TriggerFindingIdT &&value)
EbsVolumeScanDetails & WithSources(SourcesT &&value)
const ScanDetections & GetScanDetections() const
const Aws::Utils::DateTime & GetScanStartedAt() const
EbsVolumeScanDetails & WithTriggerFindingId(TriggerFindingIdT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
EbsVolumeScanDetails & WithScanType(ScanType value)
void SetScanCompletedAt(ScanCompletedAtT &&value)
const Aws::Vector< Aws::String > & GetSources() const
EbsVolumeScanDetails & WithScanId(ScanIdT &&value)
AWS_GUARDDUTY_API EbsVolumeScanDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
EbsVolumeScanDetails & WithScanCompletedAt(ScanCompletedAtT &&value)
const Aws::Utils::DateTime & GetScanCompletedAt() const
AWS_GUARDDUTY_API EbsVolumeScanDetails(Aws::Utils::Json::JsonView jsonValue)
EbsVolumeScanDetails & WithScanDetections(ScanDetectionsT &&value)
EbsVolumeScanDetails & WithScanStartedAt(ScanStartedAtT &&value)
EbsVolumeScanDetails & AddSources(SourcesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue