AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
GetAssessmentResult.h
1
6#pragma once
7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/assurance/model/AssessmentStatus.h>
9#include <aws/assurance/model/AssessmentTrigger.h>
10#include <aws/assurance/model/OrganizationSummary.h>
11#include <aws/core/http/HttpResponse.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/crt/cbor/Cbor.h>
15
16#include <utility>
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Cbor {
23class CborValue;
24} // namespace Cbor
25} // namespace Utils
26namespace Assurance {
27namespace Model {
29 public:
30 AWS_ASSURANCE_API GetAssessmentResult() = default;
33
35
38 inline const Aws::String& GetAssessmentId() const { return m_assessmentId; }
39 template <typename AssessmentIdT = Aws::String>
40 void SetAssessmentId(AssessmentIdT&& value) {
41 m_assessmentIdHasBeenSet = true;
42 m_assessmentId = std::forward<AssessmentIdT>(value);
43 }
44 template <typename AssessmentIdT = Aws::String>
45 GetAssessmentResult& WithAssessmentId(AssessmentIdT&& value) {
46 SetAssessmentId(std::forward<AssessmentIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetEnvironment() const { return m_environment; }
56 template <typename EnvironmentT = Aws::String>
57 void SetEnvironment(EnvironmentT&& value) {
58 m_environmentHasBeenSet = true;
59 m_environment = std::forward<EnvironmentT>(value);
60 }
61 template <typename EnvironmentT = Aws::String>
62 GetAssessmentResult& WithEnvironment(EnvironmentT&& value) {
63 SetEnvironment(std::forward<EnvironmentT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetFramework() const { return m_framework; }
73 template <typename FrameworkT = Aws::String>
74 void SetFramework(FrameworkT&& value) {
75 m_frameworkHasBeenSet = true;
76 m_framework = std::forward<FrameworkT>(value);
77 }
78 template <typename FrameworkT = Aws::String>
79 GetAssessmentResult& WithFramework(FrameworkT&& value) {
80 SetFramework(std::forward<FrameworkT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetFrameworkVersion() const { return m_frameworkVersion; }
90 template <typename FrameworkVersionT = Aws::String>
91 void SetFrameworkVersion(FrameworkVersionT&& value) {
92 m_frameworkVersionHasBeenSet = true;
93 m_frameworkVersion = std::forward<FrameworkVersionT>(value);
94 }
95 template <typename FrameworkVersionT = Aws::String>
96 GetAssessmentResult& WithFrameworkVersion(FrameworkVersionT&& value) {
97 SetFrameworkVersion(std::forward<FrameworkVersionT>(value));
98 return *this;
99 }
101
103
107 inline const Aws::String& GetControlId() const { return m_controlId; }
108 template <typename ControlIdT = Aws::String>
109 void SetControlId(ControlIdT&& value) {
110 m_controlIdHasBeenSet = true;
111 m_controlId = std::forward<ControlIdT>(value);
112 }
113 template <typename ControlIdT = Aws::String>
114 GetAssessmentResult& WithControlId(ControlIdT&& value) {
115 SetControlId(std::forward<ControlIdT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::String& GetProject() const { return m_project; }
125 template <typename ProjectT = Aws::String>
126 void SetProject(ProjectT&& value) {
127 m_projectHasBeenSet = true;
128 m_project = std::forward<ProjectT>(value);
129 }
130 template <typename ProjectT = Aws::String>
131 GetAssessmentResult& WithProject(ProjectT&& value) {
132 SetProject(std::forward<ProjectT>(value));
133 return *this;
134 }
136
138
141 inline AssessmentStatus GetStatus() const { return m_status; }
142 inline void SetStatus(AssessmentStatus value) {
143 m_statusHasBeenSet = true;
144 m_status = value;
145 }
147 SetStatus(value);
148 return *this;
149 }
151
153
156 inline const Aws::String& GetResult() const { return m_result; }
157 template <typename ResultT = Aws::String>
158 void SetResult(ResultT&& value) {
159 m_resultHasBeenSet = true;
160 m_result = std::forward<ResultT>(value);
161 }
162 template <typename ResultT = Aws::String>
163 GetAssessmentResult& WithResult(ResultT&& value) {
164 SetResult(std::forward<ResultT>(value));
165 return *this;
166 }
168
170
173 inline double GetOutcomePercentage() const { return m_outcomePercentage; }
174 inline void SetOutcomePercentage(double value) {
175 m_outcomePercentageHasBeenSet = true;
176 m_outcomePercentage = value;
177 }
180 return *this;
181 }
183
185
189 inline const Aws::String& GetContext() const { return m_context; }
190 template <typename ContextT = Aws::String>
191 void SetContext(ContextT&& value) {
192 m_contextHasBeenSet = true;
193 m_context = std::forward<ContextT>(value);
194 }
195 template <typename ContextT = Aws::String>
196 GetAssessmentResult& WithContext(ContextT&& value) {
197 SetContext(std::forward<ContextT>(value));
198 return *this;
199 }
201
203
206 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
207 template <typename CreatedAtT = Aws::Utils::DateTime>
208 void SetCreatedAt(CreatedAtT&& value) {
209 m_createdAtHasBeenSet = true;
210 m_createdAt = std::forward<CreatedAtT>(value);
211 }
212 template <typename CreatedAtT = Aws::Utils::DateTime>
213 GetAssessmentResult& WithCreatedAt(CreatedAtT&& value) {
214 SetCreatedAt(std::forward<CreatedAtT>(value));
215 return *this;
216 }
218
220
223 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
224 template <typename UpdatedAtT = Aws::Utils::DateTime>
225 void SetUpdatedAt(UpdatedAtT&& value) {
226 m_updatedAtHasBeenSet = true;
227 m_updatedAt = std::forward<UpdatedAtT>(value);
228 }
229 template <typename UpdatedAtT = Aws::Utils::DateTime>
230 GetAssessmentResult& WithUpdatedAt(UpdatedAtT&& value) {
231 SetUpdatedAt(std::forward<UpdatedAtT>(value));
232 return *this;
233 }
235
237
243 inline const OrganizationSummary& GetOrganizationSummary() const { return m_organizationSummary; }
244 template <typename OrganizationSummaryT = OrganizationSummary>
245 void SetOrganizationSummary(OrganizationSummaryT&& value) {
246 m_organizationSummaryHasBeenSet = true;
247 m_organizationSummary = std::forward<OrganizationSummaryT>(value);
248 }
249 template <typename OrganizationSummaryT = OrganizationSummary>
250 GetAssessmentResult& WithOrganizationSummary(OrganizationSummaryT&& value) {
251 SetOrganizationSummary(std::forward<OrganizationSummaryT>(value));
252 return *this;
253 }
255
257
267 inline AssessmentTrigger GetTrigger() const { return m_trigger; }
268 inline void SetTrigger(AssessmentTrigger value) {
269 m_triggerHasBeenSet = true;
270 m_trigger = value;
271 }
273 SetTrigger(value);
274 return *this;
275 }
277
279
280 inline const Aws::String& GetRequestId() const { return m_requestId; }
281 template <typename RequestIdT = Aws::String>
282 void SetRequestId(RequestIdT&& value) {
283 m_requestIdHasBeenSet = true;
284 m_requestId = std::forward<RequestIdT>(value);
285 }
286 template <typename RequestIdT = Aws::String>
287 GetAssessmentResult& WithRequestId(RequestIdT&& value) {
288 SetRequestId(std::forward<RequestIdT>(value));
289 return *this;
290 }
292 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
293
294 private:
295 Aws::String m_assessmentId;
296
297 Aws::String m_environment;
298
299 Aws::String m_framework;
300
301 Aws::String m_frameworkVersion;
302
303 Aws::String m_controlId;
304
305 Aws::String m_project;
306
308
309 Aws::String m_result;
310
311 double m_outcomePercentage{0.0};
312
313 Aws::String m_context;
314
315 Aws::Utils::DateTime m_createdAt{};
316
317 Aws::Utils::DateTime m_updatedAt{};
318
319 OrganizationSummary m_organizationSummary;
320
322
323 Aws::String m_requestId;
324 Aws::Http::HttpResponseCode m_HttpResponseCode;
325 bool m_assessmentIdHasBeenSet = false;
326 bool m_environmentHasBeenSet = false;
327 bool m_frameworkHasBeenSet = false;
328 bool m_frameworkVersionHasBeenSet = false;
329 bool m_controlIdHasBeenSet = false;
330 bool m_projectHasBeenSet = false;
331 bool m_statusHasBeenSet = false;
332 bool m_resultHasBeenSet = false;
333 bool m_outcomePercentageHasBeenSet = false;
334 bool m_contextHasBeenSet = false;
335 bool m_createdAtHasBeenSet = false;
336 bool m_updatedAtHasBeenSet = false;
337 bool m_organizationSummaryHasBeenSet = false;
338 bool m_triggerHasBeenSet = false;
339 bool m_requestIdHasBeenSet = false;
340};
341
342} // namespace Model
343} // namespace Assurance
344} // namespace Aws
GetAssessmentResult & WithAssessmentId(AssessmentIdT &&value)
const Aws::String & GetFrameworkVersion() const
const Aws::Utils::DateTime & GetUpdatedAt() const
GetAssessmentResult & WithFrameworkVersion(FrameworkVersionT &&value)
GetAssessmentResult & WithStatus(AssessmentStatus value)
const OrganizationSummary & GetOrganizationSummary() const
GetAssessmentResult & WithFramework(FrameworkT &&value)
void SetFrameworkVersion(FrameworkVersionT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetAssessmentResult & WithEnvironment(EnvironmentT &&value)
AWS_ASSURANCE_API GetAssessmentResult()=default
GetAssessmentResult & WithRequestId(RequestIdT &&value)
GetAssessmentResult & WithOutcomePercentage(double value)
AWS_ASSURANCE_API GetAssessmentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
GetAssessmentResult & WithContext(ContextT &&value)
GetAssessmentResult & WithOrganizationSummary(OrganizationSummaryT &&value)
GetAssessmentResult & WithTrigger(AssessmentTrigger value)
GetAssessmentResult & WithCreatedAt(CreatedAtT &&value)
void SetOrganizationSummary(OrganizationSummaryT &&value)
GetAssessmentResult & WithResult(ResultT &&value)
GetAssessmentResult & WithUpdatedAt(UpdatedAtT &&value)
GetAssessmentResult & WithControlId(ControlIdT &&value)
GetAssessmentResult & WithProject(ProjectT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_ASSURANCE_API GetAssessmentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String