AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AppAssessmentSummary.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/resiliencehub/model/AssessmentStatus.h>
10#include <aws/resiliencehub/model/ComplianceStatus.h>
11#include <aws/resiliencehub/model/Cost.h>
12#include <aws/resiliencehub/model/DriftStatus.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/resiliencehub/model/AssessmentInvoker.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace ResilienceHub
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_RESILIENCEHUB_API AppAssessmentSummary();
41 AWS_RESILIENCEHUB_API AppAssessmentSummary(Aws::Utils::Json::JsonView jsonValue);
43 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
56 inline const Aws::String& GetAppArn() const{ return m_appArn; }
57 inline bool AppArnHasBeenSet() const { return m_appArnHasBeenSet; }
58 inline void SetAppArn(const Aws::String& value) { m_appArnHasBeenSet = true; m_appArn = value; }
59 inline void SetAppArn(Aws::String&& value) { m_appArnHasBeenSet = true; m_appArn = std::move(value); }
60 inline void SetAppArn(const char* value) { m_appArnHasBeenSet = true; m_appArn.assign(value); }
61 inline AppAssessmentSummary& WithAppArn(const Aws::String& value) { SetAppArn(value); return *this;}
62 inline AppAssessmentSummary& WithAppArn(Aws::String&& value) { SetAppArn(std::move(value)); return *this;}
63 inline AppAssessmentSummary& WithAppArn(const char* value) { SetAppArn(value); return *this;}
65
67
70 inline const Aws::String& GetAppVersion() const{ return m_appVersion; }
71 inline bool AppVersionHasBeenSet() const { return m_appVersionHasBeenSet; }
72 inline void SetAppVersion(const Aws::String& value) { m_appVersionHasBeenSet = true; m_appVersion = value; }
73 inline void SetAppVersion(Aws::String&& value) { m_appVersionHasBeenSet = true; m_appVersion = std::move(value); }
74 inline void SetAppVersion(const char* value) { m_appVersionHasBeenSet = true; m_appVersion.assign(value); }
75 inline AppAssessmentSummary& WithAppVersion(const Aws::String& value) { SetAppVersion(value); return *this;}
76 inline AppAssessmentSummary& WithAppVersion(Aws::String&& value) { SetAppVersion(std::move(value)); return *this;}
77 inline AppAssessmentSummary& WithAppVersion(const char* value) { SetAppVersion(value); return *this;}
79
81
89 inline const Aws::String& GetAssessmentArn() const{ return m_assessmentArn; }
90 inline bool AssessmentArnHasBeenSet() const { return m_assessmentArnHasBeenSet; }
91 inline void SetAssessmentArn(const Aws::String& value) { m_assessmentArnHasBeenSet = true; m_assessmentArn = value; }
92 inline void SetAssessmentArn(Aws::String&& value) { m_assessmentArnHasBeenSet = true; m_assessmentArn = std::move(value); }
93 inline void SetAssessmentArn(const char* value) { m_assessmentArnHasBeenSet = true; m_assessmentArn.assign(value); }
94 inline AppAssessmentSummary& WithAssessmentArn(const Aws::String& value) { SetAssessmentArn(value); return *this;}
95 inline AppAssessmentSummary& WithAssessmentArn(Aws::String&& value) { SetAssessmentArn(std::move(value)); return *this;}
96 inline AppAssessmentSummary& WithAssessmentArn(const char* value) { SetAssessmentArn(value); return *this;}
98
100
103 inline const Aws::String& GetAssessmentName() const{ return m_assessmentName; }
104 inline bool AssessmentNameHasBeenSet() const { return m_assessmentNameHasBeenSet; }
105 inline void SetAssessmentName(const Aws::String& value) { m_assessmentNameHasBeenSet = true; m_assessmentName = value; }
106 inline void SetAssessmentName(Aws::String&& value) { m_assessmentNameHasBeenSet = true; m_assessmentName = std::move(value); }
107 inline void SetAssessmentName(const char* value) { m_assessmentNameHasBeenSet = true; m_assessmentName.assign(value); }
108 inline AppAssessmentSummary& WithAssessmentName(const Aws::String& value) { SetAssessmentName(value); return *this;}
109 inline AppAssessmentSummary& WithAssessmentName(Aws::String&& value) { SetAssessmentName(std::move(value)); return *this;}
110 inline AppAssessmentSummary& WithAssessmentName(const char* value) { SetAssessmentName(value); return *this;}
112
114
117 inline const AssessmentStatus& GetAssessmentStatus() const{ return m_assessmentStatus; }
118 inline bool AssessmentStatusHasBeenSet() const { return m_assessmentStatusHasBeenSet; }
119 inline void SetAssessmentStatus(const AssessmentStatus& value) { m_assessmentStatusHasBeenSet = true; m_assessmentStatus = value; }
120 inline void SetAssessmentStatus(AssessmentStatus&& value) { m_assessmentStatusHasBeenSet = true; m_assessmentStatus = std::move(value); }
122 inline AppAssessmentSummary& WithAssessmentStatus(AssessmentStatus&& value) { SetAssessmentStatus(std::move(value)); return *this;}
124
126
129 inline const ComplianceStatus& GetComplianceStatus() const{ return m_complianceStatus; }
130 inline bool ComplianceStatusHasBeenSet() const { return m_complianceStatusHasBeenSet; }
131 inline void SetComplianceStatus(const ComplianceStatus& value) { m_complianceStatusHasBeenSet = true; m_complianceStatus = value; }
132 inline void SetComplianceStatus(ComplianceStatus&& value) { m_complianceStatusHasBeenSet = true; m_complianceStatus = std::move(value); }
134 inline AppAssessmentSummary& WithComplianceStatus(ComplianceStatus&& value) { SetComplianceStatus(std::move(value)); return *this;}
136
138
141 inline const Cost& GetCost() const{ return m_cost; }
142 inline bool CostHasBeenSet() const { return m_costHasBeenSet; }
143 inline void SetCost(const Cost& value) { m_costHasBeenSet = true; m_cost = value; }
144 inline void SetCost(Cost&& value) { m_costHasBeenSet = true; m_cost = std::move(value); }
145 inline AppAssessmentSummary& WithCost(const Cost& value) { SetCost(value); return *this;}
146 inline AppAssessmentSummary& WithCost(Cost&& value) { SetCost(std::move(value)); return *this;}
148
150
154 inline const DriftStatus& GetDriftStatus() const{ return m_driftStatus; }
155 inline bool DriftStatusHasBeenSet() const { return m_driftStatusHasBeenSet; }
156 inline void SetDriftStatus(const DriftStatus& value) { m_driftStatusHasBeenSet = true; m_driftStatus = value; }
157 inline void SetDriftStatus(DriftStatus&& value) { m_driftStatusHasBeenSet = true; m_driftStatus = std::move(value); }
158 inline AppAssessmentSummary& WithDriftStatus(const DriftStatus& value) { SetDriftStatus(value); return *this;}
159 inline AppAssessmentSummary& WithDriftStatus(DriftStatus&& value) { SetDriftStatus(std::move(value)); return *this;}
161
163
166 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
167 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
168 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
169 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
170 inline AppAssessmentSummary& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
171 inline AppAssessmentSummary& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
173
175
178 inline const AssessmentInvoker& GetInvoker() const{ return m_invoker; }
179 inline bool InvokerHasBeenSet() const { return m_invokerHasBeenSet; }
180 inline void SetInvoker(const AssessmentInvoker& value) { m_invokerHasBeenSet = true; m_invoker = value; }
181 inline void SetInvoker(AssessmentInvoker&& value) { m_invokerHasBeenSet = true; m_invoker = std::move(value); }
182 inline AppAssessmentSummary& WithInvoker(const AssessmentInvoker& value) { SetInvoker(value); return *this;}
183 inline AppAssessmentSummary& WithInvoker(AssessmentInvoker&& value) { SetInvoker(std::move(value)); return *this;}
185
187
190 inline const Aws::String& GetMessage() const{ return m_message; }
191 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
192 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
193 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
194 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
195 inline AppAssessmentSummary& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
196 inline AppAssessmentSummary& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
197 inline AppAssessmentSummary& WithMessage(const char* value) { SetMessage(value); return *this;}
199
201
204 inline double GetResiliencyScore() const{ return m_resiliencyScore; }
205 inline bool ResiliencyScoreHasBeenSet() const { return m_resiliencyScoreHasBeenSet; }
206 inline void SetResiliencyScore(double value) { m_resiliencyScoreHasBeenSet = true; m_resiliencyScore = value; }
207 inline AppAssessmentSummary& WithResiliencyScore(double value) { SetResiliencyScore(value); return *this;}
209
211
214 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
215 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
216 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
217 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
218 inline AppAssessmentSummary& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
219 inline AppAssessmentSummary& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
221
223
226 inline const Aws::String& GetVersionName() const{ return m_versionName; }
227 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
228 inline void SetVersionName(const Aws::String& value) { m_versionNameHasBeenSet = true; m_versionName = value; }
229 inline void SetVersionName(Aws::String&& value) { m_versionNameHasBeenSet = true; m_versionName = std::move(value); }
230 inline void SetVersionName(const char* value) { m_versionNameHasBeenSet = true; m_versionName.assign(value); }
231 inline AppAssessmentSummary& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;}
232 inline AppAssessmentSummary& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;}
233 inline AppAssessmentSummary& WithVersionName(const char* value) { SetVersionName(value); return *this;}
235 private:
236
237 Aws::String m_appArn;
238 bool m_appArnHasBeenSet = false;
239
240 Aws::String m_appVersion;
241 bool m_appVersionHasBeenSet = false;
242
243 Aws::String m_assessmentArn;
244 bool m_assessmentArnHasBeenSet = false;
245
246 Aws::String m_assessmentName;
247 bool m_assessmentNameHasBeenSet = false;
248
249 AssessmentStatus m_assessmentStatus;
250 bool m_assessmentStatusHasBeenSet = false;
251
252 ComplianceStatus m_complianceStatus;
253 bool m_complianceStatusHasBeenSet = false;
254
255 Cost m_cost;
256 bool m_costHasBeenSet = false;
257
258 DriftStatus m_driftStatus;
259 bool m_driftStatusHasBeenSet = false;
260
261 Aws::Utils::DateTime m_endTime;
262 bool m_endTimeHasBeenSet = false;
263
264 AssessmentInvoker m_invoker;
265 bool m_invokerHasBeenSet = false;
266
267 Aws::String m_message;
268 bool m_messageHasBeenSet = false;
269
270 double m_resiliencyScore;
271 bool m_resiliencyScoreHasBeenSet = false;
272
273 Aws::Utils::DateTime m_startTime;
274 bool m_startTimeHasBeenSet = false;
275
276 Aws::String m_versionName;
277 bool m_versionNameHasBeenSet = false;
278 };
279
280} // namespace Model
281} // namespace ResilienceHub
282} // namespace Aws
AWS_RESILIENCEHUB_API AppAssessmentSummary(Aws::Utils::Json::JsonView jsonValue)
AppAssessmentSummary & WithCost(Cost &&value)
AppAssessmentSummary & WithAppVersion(const Aws::String &value)
AppAssessmentSummary & WithAssessmentName(Aws::String &&value)
AppAssessmentSummary & WithMessage(const char *value)
void SetStartTime(Aws::Utils::DateTime &&value)
AppAssessmentSummary & WithInvoker(AssessmentInvoker &&value)
AppAssessmentSummary & WithVersionName(Aws::String &&value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AppAssessmentSummary & WithEndTime(const Aws::Utils::DateTime &value)
AppAssessmentSummary & WithAppArn(Aws::String &&value)
void SetComplianceStatus(const ComplianceStatus &value)
AppAssessmentSummary & WithAssessmentArn(const Aws::String &value)
AppAssessmentSummary & WithInvoker(const AssessmentInvoker &value)
AppAssessmentSummary & WithDriftStatus(const DriftStatus &value)
AppAssessmentSummary & WithMessage(const Aws::String &value)
AppAssessmentSummary & WithVersionName(const Aws::String &value)
const ComplianceStatus & GetComplianceStatus() const
AppAssessmentSummary & WithCost(const Cost &value)
AppAssessmentSummary & WithAssessmentName(const char *value)
void SetEndTime(const Aws::Utils::DateTime &value)
AppAssessmentSummary & WithAppArn(const Aws::String &value)
AppAssessmentSummary & WithAssessmentStatus(AssessmentStatus &&value)
AppAssessmentSummary & WithAppArn(const char *value)
AppAssessmentSummary & WithStartTime(Aws::Utils::DateTime &&value)
AppAssessmentSummary & WithComplianceStatus(ComplianceStatus &&value)
void SetInvoker(const AssessmentInvoker &value)
AppAssessmentSummary & WithAssessmentArn(const char *value)
AppAssessmentSummary & WithEndTime(Aws::Utils::DateTime &&value)
AppAssessmentSummary & WithAssessmentArn(Aws::String &&value)
AppAssessmentSummary & WithMessage(Aws::String &&value)
AWS_RESILIENCEHUB_API AppAssessmentSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AppAssessmentSummary & WithStartTime(const Aws::Utils::DateTime &value)
AppAssessmentSummary & WithComplianceStatus(const ComplianceStatus &value)
AppAssessmentSummary & WithAssessmentName(const Aws::String &value)
AppAssessmentSummary & WithAppVersion(Aws::String &&value)
AppAssessmentSummary & WithDriftStatus(DriftStatus &&value)
const Aws::Utils::DateTime & GetStartTime() const
AppAssessmentSummary & WithAppVersion(const char *value)
AppAssessmentSummary & WithVersionName(const char *value)
const Aws::Utils::DateTime & GetEndTime() const
AppAssessmentSummary & WithAssessmentStatus(const AssessmentStatus &value)
void SetStartTime(const Aws::Utils::DateTime &value)
void SetAssessmentStatus(const AssessmentStatus &value)
const AssessmentStatus & GetAssessmentStatus() const
AppAssessmentSummary & WithResiliencyScore(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue