AWS SDK for C++

AWS SDK for C++ Version 1.11.925

Loading...
Searching...
No Matches
ImageFinding.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/SeverityLabel.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2 {
23namespace Model {
24
32 public:
33 AWS_EC2_API ImageFinding() = default;
34 AWS_EC2_API ImageFinding(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_EC2_API ImageFinding& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
46 inline bool GetFixAvailable() const { return m_fixAvailable; }
47 inline bool FixAvailableHasBeenSet() const { return m_fixAvailableHasBeenSet; }
48 inline void SetFixAvailable(bool value) {
49 m_fixAvailableHasBeenSet = true;
50 m_fixAvailable = value;
51 }
52 inline ImageFinding& WithFixAvailable(bool value) {
53 SetFixAvailable(value);
54 return *this;
55 }
57
59
62 inline double GetScore() const { return m_score; }
63 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
64 inline void SetScore(double value) {
65 m_scoreHasBeenSet = true;
66 m_score = value;
67 }
68 inline ImageFinding& WithScore(double value) {
69 SetScore(value);
70 return *this;
71 }
73
75
80 inline const Aws::Utils::DateTime& GetFirstObservedAt() const { return m_firstObservedAt; }
81 inline bool FirstObservedAtHasBeenSet() const { return m_firstObservedAtHasBeenSet; }
82 template <typename FirstObservedAtT = Aws::Utils::DateTime>
83 void SetFirstObservedAt(FirstObservedAtT&& value) {
84 m_firstObservedAtHasBeenSet = true;
85 m_firstObservedAt = std::forward<FirstObservedAtT>(value);
86 }
87 template <typename FirstObservedAtT = Aws::Utils::DateTime>
88 ImageFinding& WithFirstObservedAt(FirstObservedAtT&& value) {
89 SetFirstObservedAt(std::forward<FirstObservedAtT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
100 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
101 template <typename UpdatedAtT = Aws::Utils::DateTime>
102 void SetUpdatedAt(UpdatedAtT&& value) {
103 m_updatedAtHasBeenSet = true;
104 m_updatedAt = std::forward<UpdatedAtT>(value);
105 }
106 template <typename UpdatedAtT = Aws::Utils::DateTime>
107 ImageFinding& WithUpdatedAt(UpdatedAtT&& value) {
108 SetUpdatedAt(std::forward<UpdatedAtT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetTitle() const { return m_title; }
118 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
119 template <typename TitleT = Aws::String>
120 void SetTitle(TitleT&& value) {
121 m_titleHasBeenSet = true;
122 m_title = std::forward<TitleT>(value);
123 }
124 template <typename TitleT = Aws::String>
125 ImageFinding& WithTitle(TitleT&& value) {
126 SetTitle(std::forward<TitleT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::Vector<Aws::String>& GetPaths() const { return m_paths; }
137 inline bool PathsHasBeenSet() const { return m_pathsHasBeenSet; }
138 template <typename PathsT = Aws::Vector<Aws::String>>
139 void SetPaths(PathsT&& value) {
140 m_pathsHasBeenSet = true;
141 m_paths = std::forward<PathsT>(value);
142 }
143 template <typename PathsT = Aws::Vector<Aws::String>>
144 ImageFinding& WithPaths(PathsT&& value) {
145 SetPaths(std::forward<PathsT>(value));
146 return *this;
147 }
148 template <typename PathsT = Aws::String>
149 ImageFinding& AddPaths(PathsT&& value) {
150 m_pathsHasBeenSet = true;
151 m_paths.emplace_back(std::forward<PathsT>(value));
152 return *this;
153 }
155
157
170 inline SeverityLabel GetSeverityLabel() const { return m_severityLabel; }
171 inline bool SeverityLabelHasBeenSet() const { return m_severityLabelHasBeenSet; }
172 inline void SetSeverityLabel(SeverityLabel value) {
173 m_severityLabelHasBeenSet = true;
174 m_severityLabel = value;
175 }
177 SetSeverityLabel(value);
178 return *this;
179 }
181
183
187 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
188 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
189 template <typename SnapshotIdT = Aws::String>
190 void SetSnapshotId(SnapshotIdT&& value) {
191 m_snapshotIdHasBeenSet = true;
192 m_snapshotId = std::forward<SnapshotIdT>(value);
193 }
194 template <typename SnapshotIdT = Aws::String>
195 ImageFinding& WithSnapshotId(SnapshotIdT&& value) {
196 SetSnapshotId(std::forward<SnapshotIdT>(value));
197 return *this;
198 }
200 private:
201 bool m_fixAvailable{false};
202
203 double m_score{0.0};
204
205 Aws::Utils::DateTime m_firstObservedAt{};
206
207 Aws::Utils::DateTime m_updatedAt{};
208
209 Aws::String m_title;
210
212
213 SeverityLabel m_severityLabel{SeverityLabel::NOT_SET};
214
215 Aws::String m_snapshotId;
216 bool m_fixAvailableHasBeenSet = false;
217 bool m_scoreHasBeenSet = false;
218 bool m_firstObservedAtHasBeenSet = false;
219 bool m_updatedAtHasBeenSet = false;
220 bool m_titleHasBeenSet = false;
221 bool m_pathsHasBeenSet = false;
222 bool m_severityLabelHasBeenSet = false;
223 bool m_snapshotIdHasBeenSet = false;
224};
225
226} // namespace Model
227} // namespace EC2
228} // namespace Aws
AWS_EC2_API ImageFinding & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetFixAvailable(bool value)
void SetSnapshotId(SnapshotIdT &&value)
ImageFinding & WithPaths(PathsT &&value)
void SetScore(double value)
SeverityLabel GetSeverityLabel() const
AWS_EC2_API ImageFinding()=default
ImageFinding & WithFixAvailable(bool value)
ImageFinding & AddPaths(PathsT &&value)
ImageFinding & WithSnapshotId(SnapshotIdT &&value)
const Aws::Vector< Aws::String > & GetPaths() const
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetUpdatedAt(UpdatedAtT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetTitle(TitleT &&value)
ImageFinding & WithUpdatedAt(UpdatedAtT &&value)
void SetPaths(PathsT &&value)
void SetSeverityLabel(SeverityLabel value)
bool FirstObservedAtHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetSnapshotId() const
ImageFinding & WithSeverityLabel(SeverityLabel value)
const Aws::Utils::DateTime & GetFirstObservedAt() const
ImageFinding & WithFirstObservedAt(FirstObservedAtT &&value)
ImageFinding & WithScore(double value)
void SetFirstObservedAt(FirstObservedAtT &&value)
const Aws::String & GetTitle() const
ImageFinding & WithTitle(TitleT &&value)
AWS_EC2_API ImageFinding(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream
std::vector< T, Aws::Allocator< T > > Vector