AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
EvidenceSummary.h
1
6#pragma once
7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/assurance/model/ConnectionType.h>
9#include <aws/assurance/model/ControlReferenceDetail.h>
10#include <aws/assurance/model/EvidencePurpose.h>
11#include <aws/assurance/model/EvidenceStatus.h>
12#include <aws/assurance/model/LinkMode.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16#include <aws/crt/cbor/Cbor.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Cbor {
23class CborValue;
24} // namespace Cbor
25} // namespace Utils
26namespace Assurance {
27namespace Model {
28
36 public:
37 AWS_ASSURANCE_API EvidenceSummary() = default;
38 AWS_ASSURANCE_API EvidenceSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_ASSURANCE_API EvidenceSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
41
43
46 inline const Aws::String& GetEvidenceId() const { return m_evidenceId; }
47 inline bool EvidenceIdHasBeenSet() const { return m_evidenceIdHasBeenSet; }
48 template <typename EvidenceIdT = Aws::String>
49 void SetEvidenceId(EvidenceIdT&& value) {
50 m_evidenceIdHasBeenSet = true;
51 m_evidenceId = std::forward<EvidenceIdT>(value);
52 }
53 template <typename EvidenceIdT = Aws::String>
54 EvidenceSummary& WithEvidenceId(EvidenceIdT&& value) {
55 SetEvidenceId(std::forward<EvidenceIdT>(value));
56 return *this;
57 }
59
61
64 inline int64_t GetVersion() const { return m_version; }
65 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
66 inline void SetVersion(int64_t value) {
67 m_versionHasBeenSet = true;
68 m_version = value;
69 }
70 inline EvidenceSummary& WithVersion(int64_t value) {
71 SetVersion(value);
72 return *this;
73 }
75
77
80 inline const Aws::String& GetTitle() const { return m_title; }
81 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
82 template <typename TitleT = Aws::String>
83 void SetTitle(TitleT&& value) {
84 m_titleHasBeenSet = true;
85 m_title = std::forward<TitleT>(value);
86 }
87 template <typename TitleT = Aws::String>
88 EvidenceSummary& WithTitle(TitleT&& value) {
89 SetTitle(std::forward<TitleT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetProject() const { return m_project; }
99 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
100 template <typename ProjectT = Aws::String>
101 void SetProject(ProjectT&& value) {
102 m_projectHasBeenSet = true;
103 m_project = std::forward<ProjectT>(value);
104 }
105 template <typename ProjectT = Aws::String>
106 EvidenceSummary& WithProject(ProjectT&& value) {
107 SetProject(std::forward<ProjectT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
117 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
118 template <typename CreatedAtT = Aws::Utils::DateTime>
119 void SetCreatedAt(CreatedAtT&& value) {
120 m_createdAtHasBeenSet = true;
121 m_createdAt = std::forward<CreatedAtT>(value);
122 }
123 template <typename CreatedAtT = Aws::Utils::DateTime>
124 EvidenceSummary& WithCreatedAt(CreatedAtT&& value) {
125 SetCreatedAt(std::forward<CreatedAtT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
135 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
136 template <typename UpdatedAtT = Aws::Utils::DateTime>
137 void SetUpdatedAt(UpdatedAtT&& value) {
138 m_updatedAtHasBeenSet = true;
139 m_updatedAt = std::forward<UpdatedAtT>(value);
140 }
141 template <typename UpdatedAtT = Aws::Utils::DateTime>
142 EvidenceSummary& WithUpdatedAt(UpdatedAtT&& value) {
143 SetUpdatedAt(std::forward<UpdatedAtT>(value));
144 return *this;
145 }
147
149
152 inline EvidenceStatus GetStatus() const { return m_status; }
153 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
154 inline void SetStatus(EvidenceStatus value) {
155 m_statusHasBeenSet = true;
156 m_status = value;
157 }
159 SetStatus(value);
160 return *this;
161 }
163
165
168 inline const Aws::Vector<ControlReferenceDetail>& GetLinkedControls() const { return m_linkedControls; }
169 inline bool LinkedControlsHasBeenSet() const { return m_linkedControlsHasBeenSet; }
170 template <typename LinkedControlsT = Aws::Vector<ControlReferenceDetail>>
171 void SetLinkedControls(LinkedControlsT&& value) {
172 m_linkedControlsHasBeenSet = true;
173 m_linkedControls = std::forward<LinkedControlsT>(value);
174 }
175 template <typename LinkedControlsT = Aws::Vector<ControlReferenceDetail>>
176 EvidenceSummary& WithLinkedControls(LinkedControlsT&& value) {
177 SetLinkedControls(std::forward<LinkedControlsT>(value));
178 return *this;
179 }
180 template <typename LinkedControlsT = ControlReferenceDetail>
181 EvidenceSummary& AddLinkedControls(LinkedControlsT&& value) {
182 m_linkedControlsHasBeenSet = true;
183 m_linkedControls.emplace_back(std::forward<LinkedControlsT>(value));
184 return *this;
185 }
187
189
192 inline const Aws::String& GetUploadedBy() const { return m_uploadedBy; }
193 inline bool UploadedByHasBeenSet() const { return m_uploadedByHasBeenSet; }
194 template <typename UploadedByT = Aws::String>
195 void SetUploadedBy(UploadedByT&& value) {
196 m_uploadedByHasBeenSet = true;
197 m_uploadedBy = std::forward<UploadedByT>(value);
198 }
199 template <typename UploadedByT = Aws::String>
200 EvidenceSummary& WithUploadedBy(UploadedByT&& value) {
201 SetUploadedBy(std::forward<UploadedByT>(value));
202 return *this;
203 }
205
207
211 inline ConnectionType GetConnectionType() const { return m_connectionType; }
212 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
214 m_connectionTypeHasBeenSet = true;
215 m_connectionType = value;
216 }
218 SetConnectionType(value);
219 return *this;
220 }
222
224
229 inline LinkMode GetLinkMode() const { return m_linkMode; }
230 inline bool LinkModeHasBeenSet() const { return m_linkModeHasBeenSet; }
231 inline void SetLinkMode(LinkMode value) {
232 m_linkModeHasBeenSet = true;
233 m_linkMode = value;
234 }
236 SetLinkMode(value);
237 return *this;
238 }
240
242
246 inline EvidencePurpose GetPurpose() const { return m_purpose; }
247 inline bool PurposeHasBeenSet() const { return m_purposeHasBeenSet; }
248 inline void SetPurpose(EvidencePurpose value) {
249 m_purposeHasBeenSet = true;
250 m_purpose = value;
251 }
253 SetPurpose(value);
254 return *this;
255 }
257
259
264 inline const Aws::Utils::DateTime& GetLastAutoAnalysisStartedAt() const { return m_lastAutoAnalysisStartedAt; }
265 inline bool LastAutoAnalysisStartedAtHasBeenSet() const { return m_lastAutoAnalysisStartedAtHasBeenSet; }
266 template <typename LastAutoAnalysisStartedAtT = Aws::Utils::DateTime>
267 void SetLastAutoAnalysisStartedAt(LastAutoAnalysisStartedAtT&& value) {
268 m_lastAutoAnalysisStartedAtHasBeenSet = true;
269 m_lastAutoAnalysisStartedAt = std::forward<LastAutoAnalysisStartedAtT>(value);
270 }
271 template <typename LastAutoAnalysisStartedAtT = Aws::Utils::DateTime>
272 EvidenceSummary& WithLastAutoAnalysisStartedAt(LastAutoAnalysisStartedAtT&& value) {
273 SetLastAutoAnalysisStartedAt(std::forward<LastAutoAnalysisStartedAtT>(value));
274 return *this;
275 }
277 private:
278 Aws::String m_evidenceId;
279
280 int64_t m_version{0};
281
282 Aws::String m_title;
283
284 Aws::String m_project;
285
286 Aws::Utils::DateTime m_createdAt{};
287
288 Aws::Utils::DateTime m_updatedAt{};
289
291
293
294 Aws::String m_uploadedBy;
295
296 ConnectionType m_connectionType{ConnectionType::NOT_SET};
297
298 LinkMode m_linkMode{LinkMode::NOT_SET};
299
301
302 Aws::Utils::DateTime m_lastAutoAnalysisStartedAt{};
303 bool m_evidenceIdHasBeenSet = false;
304 bool m_versionHasBeenSet = false;
305 bool m_titleHasBeenSet = false;
306 bool m_projectHasBeenSet = false;
307 bool m_createdAtHasBeenSet = false;
308 bool m_updatedAtHasBeenSet = false;
309 bool m_statusHasBeenSet = false;
310 bool m_linkedControlsHasBeenSet = false;
311 bool m_uploadedByHasBeenSet = false;
312 bool m_connectionTypeHasBeenSet = false;
313 bool m_linkModeHasBeenSet = false;
314 bool m_purposeHasBeenSet = false;
315 bool m_lastAutoAnalysisStartedAtHasBeenSet = false;
316};
317
318} // namespace Model
319} // namespace Assurance
320} // namespace Aws
EvidenceSummary & WithConnectionType(ConnectionType value)
void SetLastAutoAnalysisStartedAt(LastAutoAnalysisStartedAtT &&value)
EvidenceSummary & WithCreatedAt(CreatedAtT &&value)
void SetUploadedBy(UploadedByT &&value)
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_ASSURANCE_API EvidenceSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
EvidenceSummary & WithProject(ProjectT &&value)
const Aws::Utils::DateTime & GetLastAutoAnalysisStartedAt() const
const Aws::String & GetTitle() const
void SetLinkedControls(LinkedControlsT &&value)
EvidenceSummary & AddLinkedControls(LinkedControlsT &&value)
AWS_ASSURANCE_API EvidenceSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetPurpose(EvidencePurpose value)
void SetStatus(EvidenceStatus value)
EvidenceSummary & WithTitle(TitleT &&value)
EvidenceSummary & WithUpdatedAt(UpdatedAtT &&value)
EvidenceSummary & WithEvidenceId(EvidenceIdT &&value)
EvidenceSummary & WithPurpose(EvidencePurpose value)
void SetConnectionType(ConnectionType value)
const Aws::String & GetEvidenceId() const
EvidenceSummary & WithVersion(int64_t value)
EvidenceSummary & WithLastAutoAnalysisStartedAt(LastAutoAnalysisStartedAtT &&value)
AWS_ASSURANCE_API EvidenceSummary()=default
const Aws::String & GetProject() const
EvidenceSummary & WithLinkMode(LinkMode value)
const Aws::Vector< ControlReferenceDetail > & GetLinkedControls() const
const Aws::Utils::DateTime & GetUpdatedAt() const
EvidenceSummary & WithUploadedBy(UploadedByT &&value)
EvidenceSummary & WithStatus(EvidenceStatus value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetUploadedBy() const
void SetEvidenceId(EvidenceIdT &&value)
EvidenceSummary & WithLinkedControls(LinkedControlsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector