AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
EbsVolumeScanDetails.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/guardduty/GuardDuty_EXPORTS.h>
11#include <aws/guardduty/model/ScanDetections.h>
12#include <aws/guardduty/model/ScanType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GuardDuty {
24namespace Model {
25
33 public:
34 AWS_GUARDDUTY_API EbsVolumeScanDetails() = default;
37 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetScanId() const { return m_scanId; }
44 inline bool ScanIdHasBeenSet() const { return m_scanIdHasBeenSet; }
45 template <typename ScanIdT = Aws::String>
46 void SetScanId(ScanIdT&& value) {
47 m_scanIdHasBeenSet = true;
48 m_scanId = std::forward<ScanIdT>(value);
49 }
50 template <typename ScanIdT = Aws::String>
51 EbsVolumeScanDetails& WithScanId(ScanIdT&& value) {
52 SetScanId(std::forward<ScanIdT>(value));
53 return *this;
54 }
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) {
65 m_scanStartedAtHasBeenSet = true;
66 m_scanStartedAt = std::forward<ScanStartedAtT>(value);
67 }
68 template <typename ScanStartedAtT = Aws::Utils::DateTime>
69 EbsVolumeScanDetails& WithScanStartedAt(ScanStartedAtT&& value) {
70 SetScanStartedAt(std::forward<ScanStartedAtT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Utils::DateTime& GetScanCompletedAt() const { return m_scanCompletedAt; }
80 inline bool ScanCompletedAtHasBeenSet() const { return m_scanCompletedAtHasBeenSet; }
81 template <typename ScanCompletedAtT = Aws::Utils::DateTime>
82 void SetScanCompletedAt(ScanCompletedAtT&& value) {
83 m_scanCompletedAtHasBeenSet = true;
84 m_scanCompletedAt = std::forward<ScanCompletedAtT>(value);
85 }
86 template <typename ScanCompletedAtT = Aws::Utils::DateTime>
87 EbsVolumeScanDetails& WithScanCompletedAt(ScanCompletedAtT&& value) {
88 SetScanCompletedAt(std::forward<ScanCompletedAtT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetTriggerFindingId() const { return m_triggerFindingId; }
98 inline bool TriggerFindingIdHasBeenSet() const { return m_triggerFindingIdHasBeenSet; }
99 template <typename TriggerFindingIdT = Aws::String>
100 void SetTriggerFindingId(TriggerFindingIdT&& value) {
101 m_triggerFindingIdHasBeenSet = true;
102 m_triggerFindingId = std::forward<TriggerFindingIdT>(value);
103 }
104 template <typename TriggerFindingIdT = Aws::String>
105 EbsVolumeScanDetails& WithTriggerFindingId(TriggerFindingIdT&& value) {
106 SetTriggerFindingId(std::forward<TriggerFindingIdT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Vector<Aws::String>& GetSources() const { return m_sources; }
116 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
117 template <typename SourcesT = Aws::Vector<Aws::String>>
118 void SetSources(SourcesT&& value) {
119 m_sourcesHasBeenSet = true;
120 m_sources = std::forward<SourcesT>(value);
121 }
122 template <typename SourcesT = Aws::Vector<Aws::String>>
124 SetSources(std::forward<SourcesT>(value));
125 return *this;
126 }
127 template <typename SourcesT = Aws::String>
128 EbsVolumeScanDetails& AddSources(SourcesT&& value) {
129 m_sourcesHasBeenSet = true;
130 m_sources.emplace_back(std::forward<SourcesT>(value));
131 return *this;
132 }
134
136
139 inline const ScanDetections& GetScanDetections() const { return m_scanDetections; }
140 inline bool ScanDetectionsHasBeenSet() const { return m_scanDetectionsHasBeenSet; }
141 template <typename ScanDetectionsT = ScanDetections>
142 void SetScanDetections(ScanDetectionsT&& value) {
143 m_scanDetectionsHasBeenSet = true;
144 m_scanDetections = std::forward<ScanDetectionsT>(value);
145 }
146 template <typename ScanDetectionsT = ScanDetections>
147 EbsVolumeScanDetails& WithScanDetections(ScanDetectionsT&& value) {
148 SetScanDetections(std::forward<ScanDetectionsT>(value));
149 return *this;
150 }
152
154
157 inline ScanType GetScanType() const { return m_scanType; }
158 inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; }
159 inline void SetScanType(ScanType value) {
160 m_scanTypeHasBeenSet = true;
161 m_scanType = value;
162 }
164 SetScanType(value);
165 return *this;
166 }
168 private:
169 Aws::String m_scanId;
170
171 Aws::Utils::DateTime m_scanStartedAt{};
172
173 Aws::Utils::DateTime m_scanCompletedAt{};
174
175 Aws::String m_triggerFindingId;
176
177 Aws::Vector<Aws::String> m_sources;
178
179 ScanDetections m_scanDetections;
180
181 ScanType m_scanType{ScanType::NOT_SET};
182 bool m_scanIdHasBeenSet = false;
183 bool m_scanStartedAtHasBeenSet = false;
184 bool m_scanCompletedAtHasBeenSet = false;
185 bool m_triggerFindingIdHasBeenSet = false;
186 bool m_sourcesHasBeenSet = false;
187 bool m_scanDetectionsHasBeenSet = false;
188 bool m_scanTypeHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace GuardDuty
193} // 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