AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AppSummary.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/AppAssessmentScheduleType.h>
10#include <aws/resiliencehub/model/AppComplianceStatusType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/resiliencehub/model/AppDriftStatusType.h>
13#include <aws/resiliencehub/model/AppStatusType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ResilienceHub
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_RESILIENCEHUB_API AppSummary();
40 AWS_RESILIENCEHUB_API AppSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_RESILIENCEHUB_API AppSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
55 inline const Aws::String& GetAppArn() const{ return m_appArn; }
56 inline bool AppArnHasBeenSet() const { return m_appArnHasBeenSet; }
57 inline void SetAppArn(const Aws::String& value) { m_appArnHasBeenSet = true; m_appArn = value; }
58 inline void SetAppArn(Aws::String&& value) { m_appArnHasBeenSet = true; m_appArn = std::move(value); }
59 inline void SetAppArn(const char* value) { m_appArnHasBeenSet = true; m_appArn.assign(value); }
60 inline AppSummary& WithAppArn(const Aws::String& value) { SetAppArn(value); return *this;}
61 inline AppSummary& WithAppArn(Aws::String&& value) { SetAppArn(std::move(value)); return *this;}
62 inline AppSummary& WithAppArn(const char* value) { SetAppArn(value); return *this;}
64
66
69 inline const AppAssessmentScheduleType& GetAssessmentSchedule() const{ return m_assessmentSchedule; }
70 inline bool AssessmentScheduleHasBeenSet() const { return m_assessmentScheduleHasBeenSet; }
71 inline void SetAssessmentSchedule(const AppAssessmentScheduleType& value) { m_assessmentScheduleHasBeenSet = true; m_assessmentSchedule = value; }
72 inline void SetAssessmentSchedule(AppAssessmentScheduleType&& value) { m_assessmentScheduleHasBeenSet = true; m_assessmentSchedule = std::move(value); }
74 inline AppSummary& WithAssessmentSchedule(AppAssessmentScheduleType&& value) { SetAssessmentSchedule(std::move(value)); return *this;}
76
78
85 inline const Aws::String& GetAwsApplicationArn() const{ return m_awsApplicationArn; }
86 inline bool AwsApplicationArnHasBeenSet() const { return m_awsApplicationArnHasBeenSet; }
87 inline void SetAwsApplicationArn(const Aws::String& value) { m_awsApplicationArnHasBeenSet = true; m_awsApplicationArn = value; }
88 inline void SetAwsApplicationArn(Aws::String&& value) { m_awsApplicationArnHasBeenSet = true; m_awsApplicationArn = std::move(value); }
89 inline void SetAwsApplicationArn(const char* value) { m_awsApplicationArnHasBeenSet = true; m_awsApplicationArn.assign(value); }
90 inline AppSummary& WithAwsApplicationArn(const Aws::String& value) { SetAwsApplicationArn(value); return *this;}
91 inline AppSummary& WithAwsApplicationArn(Aws::String&& value) { SetAwsApplicationArn(std::move(value)); return *this;}
92 inline AppSummary& WithAwsApplicationArn(const char* value) { SetAwsApplicationArn(value); return *this;}
94
96
99 inline const AppComplianceStatusType& GetComplianceStatus() const{ return m_complianceStatus; }
100 inline bool ComplianceStatusHasBeenSet() const { return m_complianceStatusHasBeenSet; }
101 inline void SetComplianceStatus(const AppComplianceStatusType& value) { m_complianceStatusHasBeenSet = true; m_complianceStatus = value; }
102 inline void SetComplianceStatus(AppComplianceStatusType&& value) { m_complianceStatusHasBeenSet = true; m_complianceStatus = std::move(value); }
103 inline AppSummary& WithComplianceStatus(const AppComplianceStatusType& value) { SetComplianceStatus(value); return *this;}
104 inline AppSummary& WithComplianceStatus(AppComplianceStatusType&& value) { SetComplianceStatus(std::move(value)); return *this;}
106
108
111 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
112 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
113 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
114 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
115 inline AppSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
116 inline AppSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
118
120
123 inline const Aws::String& GetDescription() const{ return m_description; }
124 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
125 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
126 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
127 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
128 inline AppSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
129 inline AppSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
130 inline AppSummary& WithDescription(const char* value) { SetDescription(value); return *this;}
132
134
138 inline const AppDriftStatusType& GetDriftStatus() const{ return m_driftStatus; }
139 inline bool DriftStatusHasBeenSet() const { return m_driftStatusHasBeenSet; }
140 inline void SetDriftStatus(const AppDriftStatusType& value) { m_driftStatusHasBeenSet = true; m_driftStatus = value; }
141 inline void SetDriftStatus(AppDriftStatusType&& value) { m_driftStatusHasBeenSet = true; m_driftStatus = std::move(value); }
142 inline AppSummary& WithDriftStatus(const AppDriftStatusType& value) { SetDriftStatus(value); return *this;}
143 inline AppSummary& WithDriftStatus(AppDriftStatusType&& value) { SetDriftStatus(std::move(value)); return *this;}
145
147
150 inline const Aws::Utils::DateTime& GetLastAppComplianceEvaluationTime() const{ return m_lastAppComplianceEvaluationTime; }
151 inline bool LastAppComplianceEvaluationTimeHasBeenSet() const { return m_lastAppComplianceEvaluationTimeHasBeenSet; }
152 inline void SetLastAppComplianceEvaluationTime(const Aws::Utils::DateTime& value) { m_lastAppComplianceEvaluationTimeHasBeenSet = true; m_lastAppComplianceEvaluationTime = value; }
153 inline void SetLastAppComplianceEvaluationTime(Aws::Utils::DateTime&& value) { m_lastAppComplianceEvaluationTimeHasBeenSet = true; m_lastAppComplianceEvaluationTime = std::move(value); }
157
159
162 inline const Aws::String& GetName() const{ return m_name; }
163 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
164 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
165 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
166 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
167 inline AppSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
168 inline AppSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
169 inline AppSummary& WithName(const char* value) { SetName(value); return *this;}
171
173
176 inline double GetResiliencyScore() const{ return m_resiliencyScore; }
177 inline bool ResiliencyScoreHasBeenSet() const { return m_resiliencyScoreHasBeenSet; }
178 inline void SetResiliencyScore(double value) { m_resiliencyScoreHasBeenSet = true; m_resiliencyScore = value; }
179 inline AppSummary& WithResiliencyScore(double value) { SetResiliencyScore(value); return *this;}
181
183
186 inline int GetRpoInSecs() const{ return m_rpoInSecs; }
187 inline bool RpoInSecsHasBeenSet() const { return m_rpoInSecsHasBeenSet; }
188 inline void SetRpoInSecs(int value) { m_rpoInSecsHasBeenSet = true; m_rpoInSecs = value; }
189 inline AppSummary& WithRpoInSecs(int value) { SetRpoInSecs(value); return *this;}
191
193
196 inline int GetRtoInSecs() const{ return m_rtoInSecs; }
197 inline bool RtoInSecsHasBeenSet() const { return m_rtoInSecsHasBeenSet; }
198 inline void SetRtoInSecs(int value) { m_rtoInSecsHasBeenSet = true; m_rtoInSecs = value; }
199 inline AppSummary& WithRtoInSecs(int value) { SetRtoInSecs(value); return *this;}
201
203
206 inline const AppStatusType& GetStatus() const{ return m_status; }
207 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
208 inline void SetStatus(const AppStatusType& value) { m_statusHasBeenSet = true; m_status = value; }
209 inline void SetStatus(AppStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
210 inline AppSummary& WithStatus(const AppStatusType& value) { SetStatus(value); return *this;}
211 inline AppSummary& WithStatus(AppStatusType&& value) { SetStatus(std::move(value)); return *this;}
213 private:
214
215 Aws::String m_appArn;
216 bool m_appArnHasBeenSet = false;
217
218 AppAssessmentScheduleType m_assessmentSchedule;
219 bool m_assessmentScheduleHasBeenSet = false;
220
221 Aws::String m_awsApplicationArn;
222 bool m_awsApplicationArnHasBeenSet = false;
223
224 AppComplianceStatusType m_complianceStatus;
225 bool m_complianceStatusHasBeenSet = false;
226
227 Aws::Utils::DateTime m_creationTime;
228 bool m_creationTimeHasBeenSet = false;
229
230 Aws::String m_description;
231 bool m_descriptionHasBeenSet = false;
232
233 AppDriftStatusType m_driftStatus;
234 bool m_driftStatusHasBeenSet = false;
235
236 Aws::Utils::DateTime m_lastAppComplianceEvaluationTime;
237 bool m_lastAppComplianceEvaluationTimeHasBeenSet = false;
238
239 Aws::String m_name;
240 bool m_nameHasBeenSet = false;
241
242 double m_resiliencyScore;
243 bool m_resiliencyScoreHasBeenSet = false;
244
245 int m_rpoInSecs;
246 bool m_rpoInSecsHasBeenSet = false;
247
248 int m_rtoInSecs;
249 bool m_rtoInSecsHasBeenSet = false;
250
251 AppStatusType m_status;
252 bool m_statusHasBeenSet = false;
253 };
254
255} // namespace Model
256} // namespace ResilienceHub
257} // namespace Aws
void SetAppArn(const Aws::String &value)
Definition AppSummary.h:57
AppSummary & WithAwsApplicationArn(const Aws::String &value)
Definition AppSummary.h:90
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition AppSummary.h:114
void SetDriftStatus(const AppDriftStatusType &value)
Definition AppSummary.h:140
AppSummary & WithAppArn(const char *value)
Definition AppSummary.h:62
AppSummary & WithAssessmentSchedule(AppAssessmentScheduleType &&value)
Definition AppSummary.h:74
void SetStatus(AppStatusType &&value)
Definition AppSummary.h:209
const Aws::Utils::DateTime & GetLastAppComplianceEvaluationTime() const
Definition AppSummary.h:150
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition AppSummary.h:113
const Aws::Utils::DateTime & GetCreationTime() const
Definition AppSummary.h:111
AppSummary & WithLastAppComplianceEvaluationTime(const Aws::Utils::DateTime &value)
Definition AppSummary.h:154
void SetLastAppComplianceEvaluationTime(const Aws::Utils::DateTime &value)
Definition AppSummary.h:152
const Aws::String & GetAppArn() const
Definition AppSummary.h:55
const Aws::String & GetAwsApplicationArn() const
Definition AppSummary.h:85
void SetAppArn(Aws::String &&value)
Definition AppSummary.h:58
AppSummary & WithRtoInSecs(int value)
Definition AppSummary.h:199
AppSummary & WithName(Aws::String &&value)
Definition AppSummary.h:168
AppSummary & WithRpoInSecs(int value)
Definition AppSummary.h:189
AppSummary & WithAwsApplicationArn(Aws::String &&value)
Definition AppSummary.h:91
AppSummary & WithStatus(const AppStatusType &value)
Definition AppSummary.h:210
AppSummary & WithDescription(const char *value)
Definition AppSummary.h:130
AppSummary & WithComplianceStatus(AppComplianceStatusType &&value)
Definition AppSummary.h:104
void SetAppArn(const char *value)
Definition AppSummary.h:59
AWS_RESILIENCEHUB_API AppSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AppSummary & WithAssessmentSchedule(const AppAssessmentScheduleType &value)
Definition AppSummary.h:73
void SetAwsApplicationArn(Aws::String &&value)
Definition AppSummary.h:88
AppSummary & WithAppArn(const Aws::String &value)
Definition AppSummary.h:60
const AppAssessmentScheduleType & GetAssessmentSchedule() const
Definition AppSummary.h:69
void SetAssessmentSchedule(const AppAssessmentScheduleType &value)
Definition AppSummary.h:71
const AppDriftStatusType & GetDriftStatus() const
Definition AppSummary.h:138
void SetComplianceStatus(const AppComplianceStatusType &value)
Definition AppSummary.h:101
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AppSummary & WithCreationTime(const Aws::Utils::DateTime &value)
Definition AppSummary.h:115
void SetLastAppComplianceEvaluationTime(Aws::Utils::DateTime &&value)
Definition AppSummary.h:153
void SetDescription(const Aws::String &value)
Definition AppSummary.h:125
AppSummary & WithLastAppComplianceEvaluationTime(Aws::Utils::DateTime &&value)
Definition AppSummary.h:155
AppSummary & WithName(const Aws::String &value)
Definition AppSummary.h:167
void SetStatus(const AppStatusType &value)
Definition AppSummary.h:208
void SetName(const Aws::String &value)
Definition AppSummary.h:164
const AppStatusType & GetStatus() const
Definition AppSummary.h:206
AppSummary & WithComplianceStatus(const AppComplianceStatusType &value)
Definition AppSummary.h:103
AppSummary & WithStatus(AppStatusType &&value)
Definition AppSummary.h:211
AppSummary & WithDescription(const Aws::String &value)
Definition AppSummary.h:128
void SetDriftStatus(AppDriftStatusType &&value)
Definition AppSummary.h:141
void SetAwsApplicationArn(const char *value)
Definition AppSummary.h:89
AppSummary & WithAppArn(Aws::String &&value)
Definition AppSummary.h:61
bool LastAppComplianceEvaluationTimeHasBeenSet() const
Definition AppSummary.h:151
void SetAssessmentSchedule(AppAssessmentScheduleType &&value)
Definition AppSummary.h:72
const AppComplianceStatusType & GetComplianceStatus() const
Definition AppSummary.h:99
void SetName(Aws::String &&value)
Definition AppSummary.h:165
AppSummary & WithName(const char *value)
Definition AppSummary.h:169
AppSummary & WithDriftStatus(const AppDriftStatusType &value)
Definition AppSummary.h:142
const Aws::String & GetName() const
Definition AppSummary.h:162
void SetAwsApplicationArn(const Aws::String &value)
Definition AppSummary.h:87
const Aws::String & GetDescription() const
Definition AppSummary.h:123
AWS_RESILIENCEHUB_API AppSummary(Aws::Utils::Json::JsonView jsonValue)
AppSummary & WithResiliencyScore(double value)
Definition AppSummary.h:179
void SetDescription(Aws::String &&value)
Definition AppSummary.h:126
AppSummary & WithDriftStatus(AppDriftStatusType &&value)
Definition AppSummary.h:143
void SetName(const char *value)
Definition AppSummary.h:166
AppSummary & WithCreationTime(Aws::Utils::DateTime &&value)
Definition AppSummary.h:116
AppSummary & WithDescription(Aws::String &&value)
Definition AppSummary.h:129
AWS_RESILIENCEHUB_API AppSummary()
AppSummary & WithAwsApplicationArn(const char *value)
Definition AppSummary.h:92
void SetDescription(const char *value)
Definition AppSummary.h:127
void SetComplianceStatus(AppComplianceStatusType &&value)
Definition AppSummary.h:102
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue