AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CheckDetail.h
1
6#pragma once
7#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/wellarchitected/model/CheckProvider.h>
10#include <aws/wellarchitected/model/CheckStatus.h>
11#include <aws/wellarchitected/model/CheckFailureReason.h>
12#include <aws/core/utils/DateTime.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace WellArchitected
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_WELLARCHITECTED_API CheckDetail();
40 AWS_WELLARCHITECTED_API CheckDetail(Aws::Utils::Json::JsonView jsonValue);
41 AWS_WELLARCHITECTED_API CheckDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetId() const{ return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
52 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
53 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
54 inline CheckDetail& WithId(const Aws::String& value) { SetId(value); return *this;}
55 inline CheckDetail& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
56 inline CheckDetail& WithId(const char* value) { SetId(value); return *this;}
58
60
63 inline const Aws::String& GetName() const{ return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 inline CheckDetail& WithName(const Aws::String& value) { SetName(value); return *this;}
69 inline CheckDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 inline CheckDetail& WithName(const char* value) { SetName(value); return *this;}
72
74
77 inline const Aws::String& GetDescription() const{ return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
80 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
81 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
82 inline CheckDetail& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
83 inline CheckDetail& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
84 inline CheckDetail& WithDescription(const char* value) { SetDescription(value); return *this;}
86
88
91 inline const CheckProvider& GetProvider() const{ return m_provider; }
92 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
93 inline void SetProvider(const CheckProvider& value) { m_providerHasBeenSet = true; m_provider = value; }
94 inline void SetProvider(CheckProvider&& value) { m_providerHasBeenSet = true; m_provider = std::move(value); }
95 inline CheckDetail& WithProvider(const CheckProvider& value) { SetProvider(value); return *this;}
96 inline CheckDetail& WithProvider(CheckProvider&& value) { SetProvider(std::move(value)); return *this;}
98
100
103 inline const Aws::String& GetLensArn() const{ return m_lensArn; }
104 inline bool LensArnHasBeenSet() const { return m_lensArnHasBeenSet; }
105 inline void SetLensArn(const Aws::String& value) { m_lensArnHasBeenSet = true; m_lensArn = value; }
106 inline void SetLensArn(Aws::String&& value) { m_lensArnHasBeenSet = true; m_lensArn = std::move(value); }
107 inline void SetLensArn(const char* value) { m_lensArnHasBeenSet = true; m_lensArn.assign(value); }
108 inline CheckDetail& WithLensArn(const Aws::String& value) { SetLensArn(value); return *this;}
109 inline CheckDetail& WithLensArn(Aws::String&& value) { SetLensArn(std::move(value)); return *this;}
110 inline CheckDetail& WithLensArn(const char* value) { SetLensArn(value); return *this;}
112
114
115 inline const Aws::String& GetPillarId() const{ return m_pillarId; }
116 inline bool PillarIdHasBeenSet() const { return m_pillarIdHasBeenSet; }
117 inline void SetPillarId(const Aws::String& value) { m_pillarIdHasBeenSet = true; m_pillarId = value; }
118 inline void SetPillarId(Aws::String&& value) { m_pillarIdHasBeenSet = true; m_pillarId = std::move(value); }
119 inline void SetPillarId(const char* value) { m_pillarIdHasBeenSet = true; m_pillarId.assign(value); }
120 inline CheckDetail& WithPillarId(const Aws::String& value) { SetPillarId(value); return *this;}
121 inline CheckDetail& WithPillarId(Aws::String&& value) { SetPillarId(std::move(value)); return *this;}
122 inline CheckDetail& WithPillarId(const char* value) { SetPillarId(value); return *this;}
124
126
127 inline const Aws::String& GetQuestionId() const{ return m_questionId; }
128 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
129 inline void SetQuestionId(const Aws::String& value) { m_questionIdHasBeenSet = true; m_questionId = value; }
130 inline void SetQuestionId(Aws::String&& value) { m_questionIdHasBeenSet = true; m_questionId = std::move(value); }
131 inline void SetQuestionId(const char* value) { m_questionIdHasBeenSet = true; m_questionId.assign(value); }
132 inline CheckDetail& WithQuestionId(const Aws::String& value) { SetQuestionId(value); return *this;}
133 inline CheckDetail& WithQuestionId(Aws::String&& value) { SetQuestionId(std::move(value)); return *this;}
134 inline CheckDetail& WithQuestionId(const char* value) { SetQuestionId(value); return *this;}
136
138
139 inline const Aws::String& GetChoiceId() const{ return m_choiceId; }
140 inline bool ChoiceIdHasBeenSet() const { return m_choiceIdHasBeenSet; }
141 inline void SetChoiceId(const Aws::String& value) { m_choiceIdHasBeenSet = true; m_choiceId = value; }
142 inline void SetChoiceId(Aws::String&& value) { m_choiceIdHasBeenSet = true; m_choiceId = std::move(value); }
143 inline void SetChoiceId(const char* value) { m_choiceIdHasBeenSet = true; m_choiceId.assign(value); }
144 inline CheckDetail& WithChoiceId(const Aws::String& value) { SetChoiceId(value); return *this;}
145 inline CheckDetail& WithChoiceId(Aws::String&& value) { SetChoiceId(std::move(value)); return *this;}
146 inline CheckDetail& WithChoiceId(const char* value) { SetChoiceId(value); return *this;}
148
150
153 inline const CheckStatus& GetStatus() const{ return m_status; }
154 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
155 inline void SetStatus(const CheckStatus& value) { m_statusHasBeenSet = true; m_status = value; }
156 inline void SetStatus(CheckStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
157 inline CheckDetail& WithStatus(const CheckStatus& value) { SetStatus(value); return *this;}
158 inline CheckDetail& WithStatus(CheckStatus&& value) { SetStatus(std::move(value)); return *this;}
160
162
163 inline const Aws::String& GetAccountId() const{ return m_accountId; }
164 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
165 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
166 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
167 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
168 inline CheckDetail& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
169 inline CheckDetail& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
170 inline CheckDetail& WithAccountId(const char* value) { SetAccountId(value); return *this;}
172
174
177 inline int GetFlaggedResources() const{ return m_flaggedResources; }
178 inline bool FlaggedResourcesHasBeenSet() const { return m_flaggedResourcesHasBeenSet; }
179 inline void SetFlaggedResources(int value) { m_flaggedResourcesHasBeenSet = true; m_flaggedResources = value; }
180 inline CheckDetail& WithFlaggedResources(int value) { SetFlaggedResources(value); return *this;}
182
184
187 inline const CheckFailureReason& GetReason() const{ return m_reason; }
188 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
189 inline void SetReason(const CheckFailureReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
190 inline void SetReason(CheckFailureReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
191 inline CheckDetail& WithReason(const CheckFailureReason& value) { SetReason(value); return *this;}
192 inline CheckDetail& WithReason(CheckFailureReason&& value) { SetReason(std::move(value)); return *this;}
194
196
197 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
198 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
199 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
200 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
201 inline CheckDetail& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
202 inline CheckDetail& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
204 private:
205
206 Aws::String m_id;
207 bool m_idHasBeenSet = false;
208
209 Aws::String m_name;
210 bool m_nameHasBeenSet = false;
211
212 Aws::String m_description;
213 bool m_descriptionHasBeenSet = false;
214
215 CheckProvider m_provider;
216 bool m_providerHasBeenSet = false;
217
218 Aws::String m_lensArn;
219 bool m_lensArnHasBeenSet = false;
220
221 Aws::String m_pillarId;
222 bool m_pillarIdHasBeenSet = false;
223
224 Aws::String m_questionId;
225 bool m_questionIdHasBeenSet = false;
226
227 Aws::String m_choiceId;
228 bool m_choiceIdHasBeenSet = false;
229
230 CheckStatus m_status;
231 bool m_statusHasBeenSet = false;
232
233 Aws::String m_accountId;
234 bool m_accountIdHasBeenSet = false;
235
236 int m_flaggedResources;
237 bool m_flaggedResourcesHasBeenSet = false;
238
239 CheckFailureReason m_reason;
240 bool m_reasonHasBeenSet = false;
241
242 Aws::Utils::DateTime m_updatedAt;
243 bool m_updatedAtHasBeenSet = false;
244 };
245
246} // namespace Model
247} // namespace WellArchitected
248} // namespace Aws
CheckDetail & WithPillarId(const Aws::String &value)
void SetId(const Aws::String &value)
Definition CheckDetail.h:51
const Aws::Utils::DateTime & GetUpdatedAt() const
CheckDetail & WithLensArn(const char *value)
CheckDetail & WithFlaggedResources(int value)
AWS_WELLARCHITECTED_API CheckDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
CheckDetail & WithAccountId(const Aws::String &value)
CheckDetail & WithId(const Aws::String &value)
Definition CheckDetail.h:54
CheckDetail & WithQuestionId(Aws::String &&value)
const Aws::String & GetQuestionId() const
CheckDetail & WithLensArn(const Aws::String &value)
void SetChoiceId(Aws::String &&value)
CheckDetail & WithQuestionId(const Aws::String &value)
CheckDetail & WithChoiceId(Aws::String &&value)
const CheckProvider & GetProvider() const
Definition CheckDetail.h:91
CheckDetail & WithChoiceId(const char *value)
void SetAccountId(const Aws::String &value)
void SetQuestionId(const Aws::String &value)
CheckDetail & WithStatus(CheckStatus &&value)
void SetStatus(CheckStatus &&value)
const Aws::String & GetDescription() const
Definition CheckDetail.h:77
const Aws::String & GetAccountId() const
CheckDetail & WithChoiceId(const Aws::String &value)
AWS_WELLARCHITECTED_API CheckDetail()
void SetStatus(const CheckStatus &value)
const CheckFailureReason & GetReason() const
void SetProvider(const CheckProvider &value)
Definition CheckDetail.h:93
CheckDetail & WithProvider(const CheckProvider &value)
Definition CheckDetail.h:95
void SetQuestionId(Aws::String &&value)
CheckDetail & WithProvider(CheckProvider &&value)
Definition CheckDetail.h:96
CheckDetail & WithName(const char *value)
Definition CheckDetail.h:70
CheckDetail & WithStatus(const CheckStatus &value)
CheckDetail & WithPillarId(Aws::String &&value)
const Aws::String & GetLensArn() const
CheckDetail & WithName(Aws::String &&value)
Definition CheckDetail.h:69
const Aws::String & GetChoiceId() const
void SetName(Aws::String &&value)
Definition CheckDetail.h:66
CheckDetail & WithPillarId(const char *value)
void SetDescription(const char *value)
Definition CheckDetail.h:81
CheckDetail & WithName(const Aws::String &value)
Definition CheckDetail.h:68
CheckDetail & WithUpdatedAt(Aws::Utils::DateTime &&value)
AWS_WELLARCHITECTED_API CheckDetail(Aws::Utils::Json::JsonView jsonValue)
void SetReason(const CheckFailureReason &value)
CheckDetail & WithDescription(const Aws::String &value)
Definition CheckDetail.h:82
CheckDetail & WithAccountId(const char *value)
void SetId(Aws::String &&value)
Definition CheckDetail.h:52
const CheckStatus & GetStatus() const
void SetChoiceId(const Aws::String &value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
void SetReason(CheckFailureReason &&value)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPillarId(Aws::String &&value)
void SetAccountId(Aws::String &&value)
CheckDetail & WithDescription(const char *value)
Definition CheckDetail.h:84
CheckDetail & WithId(const char *value)
Definition CheckDetail.h:56
CheckDetail & WithAccountId(Aws::String &&value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
const Aws::String & GetName() const
Definition CheckDetail.h:63
CheckDetail & WithLensArn(Aws::String &&value)
void SetDescription(Aws::String &&value)
Definition CheckDetail.h:80
CheckDetail & WithReason(CheckFailureReason &&value)
void SetDescription(const Aws::String &value)
Definition CheckDetail.h:79
const Aws::String & GetPillarId() const
void SetLensArn(Aws::String &&value)
void SetLensArn(const Aws::String &value)
CheckDetail & WithQuestionId(const char *value)
CheckDetail & WithDescription(Aws::String &&value)
Definition CheckDetail.h:83
void SetQuestionId(const char *value)
void SetName(const Aws::String &value)
Definition CheckDetail.h:65
const Aws::String & GetId() const
Definition CheckDetail.h:49
void SetProvider(CheckProvider &&value)
Definition CheckDetail.h:94
CheckDetail & WithReason(const CheckFailureReason &value)
void SetPillarId(const Aws::String &value)
CheckDetail & WithId(Aws::String &&value)
Definition CheckDetail.h:55
CheckDetail & WithUpdatedAt(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue