AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
App.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
12#include <aws/resiliencehub/model/AppAssessmentScheduleType.h>
13#include <aws/resiliencehub/model/AppComplianceStatusType.h>
14#include <aws/resiliencehub/model/AppDriftStatusType.h>
15#include <aws/resiliencehub/model/AppStatusType.h>
16#include <aws/resiliencehub/model/EventSubscription.h>
17#include <aws/resiliencehub/model/PermissionModel.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace ResilienceHub {
29namespace Model {
30
36class App {
37 public:
38 AWS_RESILIENCEHUB_API App() = default;
39 AWS_RESILIENCEHUB_API App(Aws::Utils::Json::JsonView jsonValue);
40 AWS_RESILIENCEHUB_API App& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
53 inline const Aws::String& GetAppArn() const { return m_appArn; }
54 inline bool AppArnHasBeenSet() const { return m_appArnHasBeenSet; }
55 template <typename AppArnT = Aws::String>
56 void SetAppArn(AppArnT&& value) {
57 m_appArnHasBeenSet = true;
58 m_appArn = std::forward<AppArnT>(value);
59 }
60 template <typename AppArnT = Aws::String>
61 App& WithAppArn(AppArnT&& value) {
62 SetAppArn(std::forward<AppArnT>(value));
63 return *this;
64 }
66
68
71 inline AppAssessmentScheduleType GetAssessmentSchedule() const { return m_assessmentSchedule; }
72 inline bool AssessmentScheduleHasBeenSet() const { return m_assessmentScheduleHasBeenSet; }
74 m_assessmentScheduleHasBeenSet = true;
75 m_assessmentSchedule = value;
76 }
79 return *this;
80 }
82
84
91 inline const Aws::String& GetAwsApplicationArn() const { return m_awsApplicationArn; }
92 inline bool AwsApplicationArnHasBeenSet() const { return m_awsApplicationArnHasBeenSet; }
93 template <typename AwsApplicationArnT = Aws::String>
94 void SetAwsApplicationArn(AwsApplicationArnT&& value) {
95 m_awsApplicationArnHasBeenSet = true;
96 m_awsApplicationArn = std::forward<AwsApplicationArnT>(value);
97 }
98 template <typename AwsApplicationArnT = Aws::String>
99 App& WithAwsApplicationArn(AwsApplicationArnT&& value) {
100 SetAwsApplicationArn(std::forward<AwsApplicationArnT>(value));
101 return *this;
102 }
104
106
109 inline AppComplianceStatusType GetComplianceStatus() const { return m_complianceStatus; }
110 inline bool ComplianceStatusHasBeenSet() const { return m_complianceStatusHasBeenSet; }
112 m_complianceStatusHasBeenSet = true;
113 m_complianceStatus = value;
114 }
116 SetComplianceStatus(value);
117 return *this;
118 }
120
122
125 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
126 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
127 template <typename CreationTimeT = Aws::Utils::DateTime>
128 void SetCreationTime(CreationTimeT&& value) {
129 m_creationTimeHasBeenSet = true;
130 m_creationTime = std::forward<CreationTimeT>(value);
131 }
132 template <typename CreationTimeT = Aws::Utils::DateTime>
133 App& WithCreationTime(CreationTimeT&& value) {
134 SetCreationTime(std::forward<CreationTimeT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::String& GetDescription() const { return m_description; }
144 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
145 template <typename DescriptionT = Aws::String>
146 void SetDescription(DescriptionT&& value) {
147 m_descriptionHasBeenSet = true;
148 m_description = std::forward<DescriptionT>(value);
149 }
150 template <typename DescriptionT = Aws::String>
151 App& WithDescription(DescriptionT&& value) {
152 SetDescription(std::forward<DescriptionT>(value));
153 return *this;
154 }
156
158
162 inline AppDriftStatusType GetDriftStatus() const { return m_driftStatus; }
163 inline bool DriftStatusHasBeenSet() const { return m_driftStatusHasBeenSet; }
165 m_driftStatusHasBeenSet = true;
166 m_driftStatus = value;
167 }
169 SetDriftStatus(value);
170 return *this;
171 }
173
175
180 inline const Aws::Vector<EventSubscription>& GetEventSubscriptions() const { return m_eventSubscriptions; }
181 inline bool EventSubscriptionsHasBeenSet() const { return m_eventSubscriptionsHasBeenSet; }
182 template <typename EventSubscriptionsT = Aws::Vector<EventSubscription>>
183 void SetEventSubscriptions(EventSubscriptionsT&& value) {
184 m_eventSubscriptionsHasBeenSet = true;
185 m_eventSubscriptions = std::forward<EventSubscriptionsT>(value);
186 }
187 template <typename EventSubscriptionsT = Aws::Vector<EventSubscription>>
188 App& WithEventSubscriptions(EventSubscriptionsT&& value) {
189 SetEventSubscriptions(std::forward<EventSubscriptionsT>(value));
190 return *this;
191 }
192 template <typename EventSubscriptionsT = EventSubscription>
193 App& AddEventSubscriptions(EventSubscriptionsT&& value) {
194 m_eventSubscriptionsHasBeenSet = true;
195 m_eventSubscriptions.emplace_back(std::forward<EventSubscriptionsT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::Utils::DateTime& GetLastAppComplianceEvaluationTime() const { return m_lastAppComplianceEvaluationTime; }
205 inline bool LastAppComplianceEvaluationTimeHasBeenSet() const { return m_lastAppComplianceEvaluationTimeHasBeenSet; }
206 template <typename LastAppComplianceEvaluationTimeT = Aws::Utils::DateTime>
207 void SetLastAppComplianceEvaluationTime(LastAppComplianceEvaluationTimeT&& value) {
208 m_lastAppComplianceEvaluationTimeHasBeenSet = true;
209 m_lastAppComplianceEvaluationTime = std::forward<LastAppComplianceEvaluationTimeT>(value);
210 }
211 template <typename LastAppComplianceEvaluationTimeT = Aws::Utils::DateTime>
212 App& WithLastAppComplianceEvaluationTime(LastAppComplianceEvaluationTimeT&& value) {
213 SetLastAppComplianceEvaluationTime(std::forward<LastAppComplianceEvaluationTimeT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::Utils::DateTime& GetLastDriftEvaluationTime() const { return m_lastDriftEvaluationTime; }
223 inline bool LastDriftEvaluationTimeHasBeenSet() const { return m_lastDriftEvaluationTimeHasBeenSet; }
224 template <typename LastDriftEvaluationTimeT = Aws::Utils::DateTime>
225 void SetLastDriftEvaluationTime(LastDriftEvaluationTimeT&& value) {
226 m_lastDriftEvaluationTimeHasBeenSet = true;
227 m_lastDriftEvaluationTime = std::forward<LastDriftEvaluationTimeT>(value);
228 }
229 template <typename LastDriftEvaluationTimeT = Aws::Utils::DateTime>
230 App& WithLastDriftEvaluationTime(LastDriftEvaluationTimeT&& value) {
231 SetLastDriftEvaluationTime(std::forward<LastDriftEvaluationTimeT>(value));
232 return *this;
233 }
235
237
240 inline const Aws::Utils::DateTime& GetLastResiliencyScoreEvaluationTime() const { return m_lastResiliencyScoreEvaluationTime; }
241 inline bool LastResiliencyScoreEvaluationTimeHasBeenSet() const { return m_lastResiliencyScoreEvaluationTimeHasBeenSet; }
242 template <typename LastResiliencyScoreEvaluationTimeT = Aws::Utils::DateTime>
243 void SetLastResiliencyScoreEvaluationTime(LastResiliencyScoreEvaluationTimeT&& value) {
244 m_lastResiliencyScoreEvaluationTimeHasBeenSet = true;
245 m_lastResiliencyScoreEvaluationTime = std::forward<LastResiliencyScoreEvaluationTimeT>(value);
246 }
247 template <typename LastResiliencyScoreEvaluationTimeT = Aws::Utils::DateTime>
248 App& WithLastResiliencyScoreEvaluationTime(LastResiliencyScoreEvaluationTimeT&& value) {
249 SetLastResiliencyScoreEvaluationTime(std::forward<LastResiliencyScoreEvaluationTimeT>(value));
250 return *this;
251 }
253
255
258 inline const Aws::String& GetName() const { return m_name; }
259 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
260 template <typename NameT = Aws::String>
261 void SetName(NameT&& value) {
262 m_nameHasBeenSet = true;
263 m_name = std::forward<NameT>(value);
264 }
265 template <typename NameT = Aws::String>
266 App& WithName(NameT&& value) {
267 SetName(std::forward<NameT>(value));
268 return *this;
269 }
271
273
278 inline const PermissionModel& GetPermissionModel() const { return m_permissionModel; }
279 inline bool PermissionModelHasBeenSet() const { return m_permissionModelHasBeenSet; }
280 template <typename PermissionModelT = PermissionModel>
281 void SetPermissionModel(PermissionModelT&& value) {
282 m_permissionModelHasBeenSet = true;
283 m_permissionModel = std::forward<PermissionModelT>(value);
284 }
285 template <typename PermissionModelT = PermissionModel>
286 App& WithPermissionModel(PermissionModelT&& value) {
287 SetPermissionModel(std::forward<PermissionModelT>(value));
288 return *this;
289 }
291
293
302 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
303 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
304 template <typename PolicyArnT = Aws::String>
305 void SetPolicyArn(PolicyArnT&& value) {
306 m_policyArnHasBeenSet = true;
307 m_policyArn = std::forward<PolicyArnT>(value);
308 }
309 template <typename PolicyArnT = Aws::String>
310 App& WithPolicyArn(PolicyArnT&& value) {
311 SetPolicyArn(std::forward<PolicyArnT>(value));
312 return *this;
313 }
315
317
320 inline double GetResiliencyScore() const { return m_resiliencyScore; }
321 inline bool ResiliencyScoreHasBeenSet() const { return m_resiliencyScoreHasBeenSet; }
322 inline void SetResiliencyScore(double value) {
323 m_resiliencyScoreHasBeenSet = true;
324 m_resiliencyScore = value;
325 }
326 inline App& WithResiliencyScore(double value) {
327 SetResiliencyScore(value);
328 return *this;
329 }
331
333
336 inline int GetRpoInSecs() const { return m_rpoInSecs; }
337 inline bool RpoInSecsHasBeenSet() const { return m_rpoInSecsHasBeenSet; }
338 inline void SetRpoInSecs(int value) {
339 m_rpoInSecsHasBeenSet = true;
340 m_rpoInSecs = value;
341 }
342 inline App& WithRpoInSecs(int value) {
343 SetRpoInSecs(value);
344 return *this;
345 }
347
349
352 inline int GetRtoInSecs() const { return m_rtoInSecs; }
353 inline bool RtoInSecsHasBeenSet() const { return m_rtoInSecsHasBeenSet; }
354 inline void SetRtoInSecs(int value) {
355 m_rtoInSecsHasBeenSet = true;
356 m_rtoInSecs = value;
357 }
358 inline App& WithRtoInSecs(int value) {
359 SetRtoInSecs(value);
360 return *this;
361 }
363
365
368 inline AppStatusType GetStatus() const { return m_status; }
369 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
370 inline void SetStatus(AppStatusType value) {
371 m_statusHasBeenSet = true;
372 m_status = value;
373 }
374 inline App& WithStatus(AppStatusType value) {
375 SetStatus(value);
376 return *this;
377 }
379
381
385 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
386 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
387 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
388 void SetTags(TagsT&& value) {
389 m_tagsHasBeenSet = true;
390 m_tags = std::forward<TagsT>(value);
391 }
392 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
393 App& WithTags(TagsT&& value) {
394 SetTags(std::forward<TagsT>(value));
395 return *this;
396 }
397 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
398 App& AddTags(TagsKeyT&& key, TagsValueT&& value) {
399 m_tagsHasBeenSet = true;
400 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
401 return *this;
402 }
404 private:
405 Aws::String m_appArn;
406
408
409 Aws::String m_awsApplicationArn;
410
412
413 Aws::Utils::DateTime m_creationTime{};
414
415 Aws::String m_description;
416
418
419 Aws::Vector<EventSubscription> m_eventSubscriptions;
420
421 Aws::Utils::DateTime m_lastAppComplianceEvaluationTime{};
422
423 Aws::Utils::DateTime m_lastDriftEvaluationTime{};
424
425 Aws::Utils::DateTime m_lastResiliencyScoreEvaluationTime{};
426
427 Aws::String m_name;
428
429 PermissionModel m_permissionModel;
430
431 Aws::String m_policyArn;
432
433 double m_resiliencyScore{0.0};
434
435 int m_rpoInSecs{0};
436
437 int m_rtoInSecs{0};
438
440
442 bool m_appArnHasBeenSet = false;
443 bool m_assessmentScheduleHasBeenSet = false;
444 bool m_awsApplicationArnHasBeenSet = false;
445 bool m_complianceStatusHasBeenSet = false;
446 bool m_creationTimeHasBeenSet = false;
447 bool m_descriptionHasBeenSet = false;
448 bool m_driftStatusHasBeenSet = false;
449 bool m_eventSubscriptionsHasBeenSet = false;
450 bool m_lastAppComplianceEvaluationTimeHasBeenSet = false;
451 bool m_lastDriftEvaluationTimeHasBeenSet = false;
452 bool m_lastResiliencyScoreEvaluationTimeHasBeenSet = false;
453 bool m_nameHasBeenSet = false;
454 bool m_permissionModelHasBeenSet = false;
455 bool m_policyArnHasBeenSet = false;
456 bool m_resiliencyScoreHasBeenSet = false;
457 bool m_rpoInSecsHasBeenSet = false;
458 bool m_rtoInSecsHasBeenSet = false;
459 bool m_statusHasBeenSet = false;
460 bool m_tagsHasBeenSet = false;
461};
462
463} // namespace Model
464} // namespace ResilienceHub
465} // namespace Aws
AppStatusType GetStatus() const
Definition App.h:368
App & AddEventSubscriptions(EventSubscriptionsT &&value)
Definition App.h:193
const Aws::String & GetAppArn() const
Definition App.h:53
void SetLastAppComplianceEvaluationTime(LastAppComplianceEvaluationTimeT &&value)
Definition App.h:207
App & WithDriftStatus(AppDriftStatusType value)
Definition App.h:168
bool ComplianceStatusHasBeenSet() const
Definition App.h:110
const Aws::String & GetName() const
Definition App.h:258
AWS_RESILIENCEHUB_API App()=default
AppDriftStatusType GetDriftStatus() const
Definition App.h:162
App & WithResiliencyScore(double value)
Definition App.h:326
bool RpoInSecsHasBeenSet() const
Definition App.h:337
App & WithRtoInSecs(int value)
Definition App.h:358
void SetAssessmentSchedule(AppAssessmentScheduleType value)
Definition App.h:73
const Aws::Utils::DateTime & GetCreationTime() const
Definition App.h:125
bool TagsHasBeenSet() const
Definition App.h:386
const Aws::String & GetPolicyArn() const
Definition App.h:302
void SetTags(TagsT &&value)
Definition App.h:388
void SetAppArn(AppArnT &&value)
Definition App.h:56
void SetResiliencyScore(double value)
Definition App.h:322
const Aws::Utils::DateTime & GetLastAppComplianceEvaluationTime() const
Definition App.h:204
App & WithCreationTime(CreationTimeT &&value)
Definition App.h:133
void SetRpoInSecs(int value)
Definition App.h:338
App & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition App.h:398
App & WithPermissionModel(PermissionModelT &&value)
Definition App.h:286
bool EventSubscriptionsHasBeenSet() const
Definition App.h:181
void SetDriftStatus(AppDriftStatusType value)
Definition App.h:164
AWS_RESILIENCEHUB_API App & operator=(Aws::Utils::Json::JsonView jsonValue)
App & WithLastResiliencyScoreEvaluationTime(LastResiliencyScoreEvaluationTimeT &&value)
Definition App.h:248
App & WithDescription(DescriptionT &&value)
Definition App.h:151
const Aws::Utils::DateTime & GetLastResiliencyScoreEvaluationTime() const
Definition App.h:240
const Aws::Utils::DateTime & GetLastDriftEvaluationTime() const
Definition App.h:222
bool StatusHasBeenSet() const
Definition App.h:369
void SetComplianceStatus(AppComplianceStatusType value)
Definition App.h:111
void SetName(NameT &&value)
Definition App.h:261
void SetRtoInSecs(int value)
Definition App.h:354
AWS_RESILIENCEHUB_API App(Aws::Utils::Json::JsonView jsonValue)
App & WithComplianceStatus(AppComplianceStatusType value)
Definition App.h:115
void SetCreationTime(CreationTimeT &&value)
Definition App.h:128
App & WithPolicyArn(PolicyArnT &&value)
Definition App.h:310
const Aws::Vector< EventSubscription > & GetEventSubscriptions() const
Definition App.h:180
bool RtoInSecsHasBeenSet() const
Definition App.h:353
void SetLastDriftEvaluationTime(LastDriftEvaluationTimeT &&value)
Definition App.h:225
App & WithLastAppComplianceEvaluationTime(LastAppComplianceEvaluationTimeT &&value)
Definition App.h:212
App & WithEventSubscriptions(EventSubscriptionsT &&value)
Definition App.h:188
void SetDescription(DescriptionT &&value)
Definition App.h:146
bool NameHasBeenSet() const
Definition App.h:259
bool ResiliencyScoreHasBeenSet() const
Definition App.h:321
bool LastAppComplianceEvaluationTimeHasBeenSet() const
Definition App.h:205
App & WithStatus(AppStatusType value)
Definition App.h:374
AppComplianceStatusType GetComplianceStatus() const
Definition App.h:109
bool AssessmentScheduleHasBeenSet() const
Definition App.h:72
App & WithAppArn(AppArnT &&value)
Definition App.h:61
const PermissionModel & GetPermissionModel() const
Definition App.h:278
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
bool LastResiliencyScoreEvaluationTimeHasBeenSet() const
Definition App.h:241
bool AppArnHasBeenSet() const
Definition App.h:54
App & WithRpoInSecs(int value)
Definition App.h:342
void SetStatus(AppStatusType value)
Definition App.h:370
const Aws::String & GetAwsApplicationArn() const
Definition App.h:91
App & WithLastDriftEvaluationTime(LastDriftEvaluationTimeT &&value)
Definition App.h:230
App & WithName(NameT &&value)
Definition App.h:266
double GetResiliencyScore() const
Definition App.h:320
bool DriftStatusHasBeenSet() const
Definition App.h:163
bool DescriptionHasBeenSet() const
Definition App.h:144
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition App.h:385
void SetAwsApplicationArn(AwsApplicationArnT &&value)
Definition App.h:94
bool PolicyArnHasBeenSet() const
Definition App.h:303
bool AwsApplicationArnHasBeenSet() const
Definition App.h:92
void SetPolicyArn(PolicyArnT &&value)
Definition App.h:305
App & WithAwsApplicationArn(AwsApplicationArnT &&value)
Definition App.h:99
const Aws::String & GetDescription() const
Definition App.h:143
void SetEventSubscriptions(EventSubscriptionsT &&value)
Definition App.h:183
bool LastDriftEvaluationTimeHasBeenSet() const
Definition App.h:223
void SetPermissionModel(PermissionModelT &&value)
Definition App.h:281
void SetLastResiliencyScoreEvaluationTime(LastResiliencyScoreEvaluationTimeT &&value)
Definition App.h:243
AppAssessmentScheduleType GetAssessmentSchedule() const
Definition App.h:71
App & WithTags(TagsT &&value)
Definition App.h:393
App & WithAssessmentSchedule(AppAssessmentScheduleType value)
Definition App.h:77
bool PermissionModelHasBeenSet() const
Definition App.h:279
bool CreationTimeHasBeenSet() const
Definition App.h:126
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue