AWS SDK for C++

AWS SDK for C++ Version 1.11.820

Loading...
Searching...
No Matches
AssessmentSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
10#include <aws/resiliencehubv2/model/Achievability.h>
11#include <aws/resiliencehubv2/model/AssessmentCost.h>
12#include <aws/resiliencehubv2/model/AssessmentErrorCode.h>
13#include <aws/resiliencehubv2/model/AssessmentStatus.h>
14#include <aws/resiliencehubv2/model/AssessmentStep.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace resiliencehubv2 {
26namespace Model {
27
35 public:
36 AWS_RESILIENCEHUBV2_API AssessmentSummary() = default;
37 AWS_RESILIENCEHUBV2_API AssessmentSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_RESILIENCEHUBV2_API AssessmentSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetAssessmentId() const { return m_assessmentId; }
46 inline bool AssessmentIdHasBeenSet() const { return m_assessmentIdHasBeenSet; }
47 template <typename AssessmentIdT = Aws::String>
48 void SetAssessmentId(AssessmentIdT&& value) {
49 m_assessmentIdHasBeenSet = true;
50 m_assessmentId = std::forward<AssessmentIdT>(value);
51 }
52 template <typename AssessmentIdT = Aws::String>
53 AssessmentSummary& WithAssessmentId(AssessmentIdT&& value) {
54 SetAssessmentId(std::forward<AssessmentIdT>(value));
55 return *this;
56 }
58
60
61 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
62 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
63 template <typename ServiceArnT = Aws::String>
64 void SetServiceArn(ServiceArnT&& value) {
65 m_serviceArnHasBeenSet = true;
66 m_serviceArn = std::forward<ServiceArnT>(value);
67 }
68 template <typename ServiceArnT = Aws::String>
69 AssessmentSummary& WithServiceArn(ServiceArnT&& value) {
70 SetServiceArn(std::forward<ServiceArnT>(value));
71 return *this;
72 }
74
76
79 inline AssessmentStatus GetAssessmentStatus() const { return m_assessmentStatus; }
80 inline bool AssessmentStatusHasBeenSet() const { return m_assessmentStatusHasBeenSet; }
82 m_assessmentStatusHasBeenSet = true;
83 m_assessmentStatus = value;
84 }
87 return *this;
88 }
90
92
95 inline AssessmentStep GetAssessmentStep() const { return m_assessmentStep; }
96 inline bool AssessmentStepHasBeenSet() const { return m_assessmentStepHasBeenSet; }
97 inline void SetAssessmentStep(AssessmentStep value) {
98 m_assessmentStepHasBeenSet = true;
99 m_assessmentStep = value;
100 }
102 SetAssessmentStep(value);
103 return *this;
104 }
106
108
111 inline int GetTotalFindings() const { return m_totalFindings; }
112 inline bool TotalFindingsHasBeenSet() const { return m_totalFindingsHasBeenSet; }
113 inline void SetTotalFindings(int value) {
114 m_totalFindingsHasBeenSet = true;
115 m_totalFindings = value;
116 }
118 SetTotalFindings(value);
119 return *this;
120 }
122
124
127 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
128 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
129 template <typename StartedAtT = Aws::Utils::DateTime>
130 void SetStartedAt(StartedAtT&& value) {
131 m_startedAtHasBeenSet = true;
132 m_startedAt = std::forward<StartedAtT>(value);
133 }
134 template <typename StartedAtT = Aws::Utils::DateTime>
135 AssessmentSummary& WithStartedAt(StartedAtT&& value) {
136 SetStartedAt(std::forward<StartedAtT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
146 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
147 template <typename EndedAtT = Aws::Utils::DateTime>
148 void SetEndedAt(EndedAtT&& value) {
149 m_endedAtHasBeenSet = true;
150 m_endedAt = std::forward<EndedAtT>(value);
151 }
152 template <typename EndedAtT = Aws::Utils::DateTime>
153 AssessmentSummary& WithEndedAt(EndedAtT&& value) {
154 SetEndedAt(std::forward<EndedAtT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
164 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
165 template <typename ErrorMessageT = Aws::String>
166 void SetErrorMessage(ErrorMessageT&& value) {
167 m_errorMessageHasBeenSet = true;
168 m_errorMessage = std::forward<ErrorMessageT>(value);
169 }
170 template <typename ErrorMessageT = Aws::String>
171 AssessmentSummary& WithErrorMessage(ErrorMessageT&& value) {
172 SetErrorMessage(std::forward<ErrorMessageT>(value));
173 return *this;
174 }
176
178
181 inline AssessmentErrorCode GetErrorCode() const { return m_errorCode; }
182 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
184 m_errorCodeHasBeenSet = true;
185 m_errorCode = value;
186 }
188 SetErrorCode(value);
189 return *this;
190 }
192
194
197 inline const AssessmentCost& GetAssessmentCost() const { return m_assessmentCost; }
198 inline bool AssessmentCostHasBeenSet() const { return m_assessmentCostHasBeenSet; }
199 template <typename AssessmentCostT = AssessmentCost>
200 void SetAssessmentCost(AssessmentCostT&& value) {
201 m_assessmentCostHasBeenSet = true;
202 m_assessmentCost = std::forward<AssessmentCostT>(value);
203 }
204 template <typename AssessmentCostT = AssessmentCost>
205 AssessmentSummary& WithAssessmentCost(AssessmentCostT&& value) {
206 SetAssessmentCost(std::forward<AssessmentCostT>(value));
207 return *this;
208 }
210
212
215 inline int GetBillableAssessmentUnitCount() const { return m_billableAssessmentUnitCount; }
216 inline bool BillableAssessmentUnitCountHasBeenSet() const { return m_billableAssessmentUnitCountHasBeenSet; }
217 inline void SetBillableAssessmentUnitCount(int value) {
218 m_billableAssessmentUnitCountHasBeenSet = true;
219 m_billableAssessmentUnitCount = value;
220 }
223 return *this;
224 }
226
228
231 inline const Achievability& GetAchievability() const { return m_achievability; }
232 inline bool AchievabilityHasBeenSet() const { return m_achievabilityHasBeenSet; }
233 template <typename AchievabilityT = Achievability>
234 void SetAchievability(AchievabilityT&& value) {
235 m_achievabilityHasBeenSet = true;
236 m_achievability = std::forward<AchievabilityT>(value);
237 }
238 template <typename AchievabilityT = Achievability>
239 AssessmentSummary& WithAchievability(AchievabilityT&& value) {
240 SetAchievability(std::forward<AchievabilityT>(value));
241 return *this;
242 }
244 private:
245 Aws::String m_assessmentId;
246
247 Aws::String m_serviceArn;
248
250
251 AssessmentStep m_assessmentStep{AssessmentStep::NOT_SET};
252
253 int m_totalFindings{0};
254
255 Aws::Utils::DateTime m_startedAt{};
256
257 Aws::Utils::DateTime m_endedAt{};
258
259 Aws::String m_errorMessage;
260
262
263 AssessmentCost m_assessmentCost;
264
265 int m_billableAssessmentUnitCount{0};
266
267 Achievability m_achievability;
268 bool m_assessmentIdHasBeenSet = false;
269 bool m_serviceArnHasBeenSet = false;
270 bool m_assessmentStatusHasBeenSet = false;
271 bool m_assessmentStepHasBeenSet = false;
272 bool m_totalFindingsHasBeenSet = false;
273 bool m_startedAtHasBeenSet = false;
274 bool m_endedAtHasBeenSet = false;
275 bool m_errorMessageHasBeenSet = false;
276 bool m_errorCodeHasBeenSet = false;
277 bool m_assessmentCostHasBeenSet = false;
278 bool m_billableAssessmentUnitCountHasBeenSet = false;
279 bool m_achievabilityHasBeenSet = false;
280};
281
282} // namespace Model
283} // namespace resiliencehubv2
284} // namespace Aws
AssessmentSummary & WithAssessmentStatus(AssessmentStatus value)
AssessmentSummary & WithAssessmentCost(AssessmentCostT &&value)
AssessmentSummary & WithTotalFindings(int value)
AssessmentSummary & WithAssessmentId(AssessmentIdT &&value)
AssessmentSummary & WithBillableAssessmentUnitCount(int value)
AssessmentSummary & WithAssessmentStep(AssessmentStep value)
AssessmentSummary & WithErrorMessage(ErrorMessageT &&value)
AssessmentSummary & WithErrorCode(AssessmentErrorCode value)
const Aws::Utils::DateTime & GetStartedAt() const
AWS_RESILIENCEHUBV2_API AssessmentSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUBV2_API AssessmentSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AssessmentSummary & WithAchievability(AchievabilityT &&value)
AssessmentSummary & WithServiceArn(ServiceArnT &&value)
const Aws::Utils::DateTime & GetEndedAt() const
AssessmentSummary & WithEndedAt(EndedAtT &&value)
const AssessmentCost & GetAssessmentCost() const
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
AssessmentSummary & WithStartedAt(StartedAtT &&value)
AWS_RESILIENCEHUBV2_API AssessmentSummary()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue