AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
CheckDetail.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
10#include <aws/wellarchitected/model/CheckFailureReason.h>
11#include <aws/wellarchitected/model/CheckProvider.h>
12#include <aws/wellarchitected/model/CheckStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WellArchitected {
24namespace Model {
25
33 public:
34 AWS_WELLARCHITECTED_API CheckDetail() = default;
35 AWS_WELLARCHITECTED_API CheckDetail(Aws::Utils::Json::JsonView jsonValue);
36 AWS_WELLARCHITECTED_API CheckDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
51 CheckDetail& WithId(IdT&& value) {
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
69 CheckDetail& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template <typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) {
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
87 CheckDetail& WithDescription(DescriptionT&& value) {
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92
94
97 inline CheckProvider GetProvider() const { return m_provider; }
98 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
99 inline void SetProvider(CheckProvider value) {
100 m_providerHasBeenSet = true;
101 m_provider = value;
102 }
104 SetProvider(value);
105 return *this;
106 }
108
110
113 inline const Aws::String& GetLensArn() const { return m_lensArn; }
114 inline bool LensArnHasBeenSet() const { return m_lensArnHasBeenSet; }
115 template <typename LensArnT = Aws::String>
116 void SetLensArn(LensArnT&& value) {
117 m_lensArnHasBeenSet = true;
118 m_lensArn = std::forward<LensArnT>(value);
119 }
120 template <typename LensArnT = Aws::String>
121 CheckDetail& WithLensArn(LensArnT&& value) {
122 SetLensArn(std::forward<LensArnT>(value));
123 return *this;
124 }
126
128
129 inline const Aws::String& GetPillarId() const { return m_pillarId; }
130 inline bool PillarIdHasBeenSet() const { return m_pillarIdHasBeenSet; }
131 template <typename PillarIdT = Aws::String>
132 void SetPillarId(PillarIdT&& value) {
133 m_pillarIdHasBeenSet = true;
134 m_pillarId = std::forward<PillarIdT>(value);
135 }
136 template <typename PillarIdT = Aws::String>
137 CheckDetail& WithPillarId(PillarIdT&& value) {
138 SetPillarId(std::forward<PillarIdT>(value));
139 return *this;
140 }
142
144
145 inline const Aws::String& GetQuestionId() const { return m_questionId; }
146 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
147 template <typename QuestionIdT = Aws::String>
148 void SetQuestionId(QuestionIdT&& value) {
149 m_questionIdHasBeenSet = true;
150 m_questionId = std::forward<QuestionIdT>(value);
151 }
152 template <typename QuestionIdT = Aws::String>
153 CheckDetail& WithQuestionId(QuestionIdT&& value) {
154 SetQuestionId(std::forward<QuestionIdT>(value));
155 return *this;
156 }
158
160
161 inline const Aws::String& GetChoiceId() const { return m_choiceId; }
162 inline bool ChoiceIdHasBeenSet() const { return m_choiceIdHasBeenSet; }
163 template <typename ChoiceIdT = Aws::String>
164 void SetChoiceId(ChoiceIdT&& value) {
165 m_choiceIdHasBeenSet = true;
166 m_choiceId = std::forward<ChoiceIdT>(value);
167 }
168 template <typename ChoiceIdT = Aws::String>
169 CheckDetail& WithChoiceId(ChoiceIdT&& value) {
170 SetChoiceId(std::forward<ChoiceIdT>(value));
171 return *this;
172 }
174
176
179 inline CheckStatus GetStatus() const { return m_status; }
180 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
181 inline void SetStatus(CheckStatus value) {
182 m_statusHasBeenSet = true;
183 m_status = value;
184 }
186 SetStatus(value);
187 return *this;
188 }
190
192
193 inline const Aws::String& GetAccountId() const { return m_accountId; }
194 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
195 template <typename AccountIdT = Aws::String>
196 void SetAccountId(AccountIdT&& value) {
197 m_accountIdHasBeenSet = true;
198 m_accountId = std::forward<AccountIdT>(value);
199 }
200 template <typename AccountIdT = Aws::String>
201 CheckDetail& WithAccountId(AccountIdT&& value) {
202 SetAccountId(std::forward<AccountIdT>(value));
203 return *this;
204 }
206
208
211 inline int GetFlaggedResources() const { return m_flaggedResources; }
212 inline bool FlaggedResourcesHasBeenSet() const { return m_flaggedResourcesHasBeenSet; }
213 inline void SetFlaggedResources(int value) {
214 m_flaggedResourcesHasBeenSet = true;
215 m_flaggedResources = value;
216 }
218 SetFlaggedResources(value);
219 return *this;
220 }
222
224
227 inline CheckFailureReason GetReason() const { return m_reason; }
228 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
229 inline void SetReason(CheckFailureReason value) {
230 m_reasonHasBeenSet = true;
231 m_reason = value;
232 }
234 SetReason(value);
235 return *this;
236 }
238
240
241 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
242 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
243 template <typename UpdatedAtT = Aws::Utils::DateTime>
244 void SetUpdatedAt(UpdatedAtT&& value) {
245 m_updatedAtHasBeenSet = true;
246 m_updatedAt = std::forward<UpdatedAtT>(value);
247 }
248 template <typename UpdatedAtT = Aws::Utils::DateTime>
249 CheckDetail& WithUpdatedAt(UpdatedAtT&& value) {
250 SetUpdatedAt(std::forward<UpdatedAtT>(value));
251 return *this;
252 }
254 private:
255 Aws::String m_id;
256
257 Aws::String m_name;
258
259 Aws::String m_description;
260
262
263 Aws::String m_lensArn;
264
265 Aws::String m_pillarId;
266
267 Aws::String m_questionId;
268
269 Aws::String m_choiceId;
270
272
273 Aws::String m_accountId;
274
275 int m_flaggedResources{0};
276
278
279 Aws::Utils::DateTime m_updatedAt{};
280 bool m_idHasBeenSet = false;
281 bool m_nameHasBeenSet = false;
282 bool m_descriptionHasBeenSet = false;
283 bool m_providerHasBeenSet = false;
284 bool m_lensArnHasBeenSet = false;
285 bool m_pillarIdHasBeenSet = false;
286 bool m_questionIdHasBeenSet = false;
287 bool m_choiceIdHasBeenSet = false;
288 bool m_statusHasBeenSet = false;
289 bool m_accountIdHasBeenSet = false;
290 bool m_flaggedResourcesHasBeenSet = false;
291 bool m_reasonHasBeenSet = false;
292 bool m_updatedAtHasBeenSet = false;
293};
294
295} // namespace Model
296} // namespace WellArchitected
297} // namespace Aws
CheckDetail & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
CheckFailureReason GetReason() const
CheckDetail & WithFlaggedResources(int value)
AWS_WELLARCHITECTED_API CheckDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
CheckDetail & WithLensArn(LensArnT &&value)
const Aws::String & GetQuestionId() const
AWS_WELLARCHITECTED_API CheckDetail()=default
void SetProvider(CheckProvider value)
Definition CheckDetail.h:99
void SetReason(CheckFailureReason value)
void SetQuestionId(QuestionIdT &&value)
const Aws::String & GetDescription() const
Definition CheckDetail.h:79
const Aws::String & GetAccountId() const
CheckDetail & WithPillarId(PillarIdT &&value)
CheckDetail & WithQuestionId(QuestionIdT &&value)
CheckDetail & WithReason(CheckFailureReason value)
CheckDetail & WithAccountId(AccountIdT &&value)
const Aws::String & GetLensArn() const
const Aws::String & GetChoiceId() const
CheckDetail & WithId(IdT &&value)
Definition CheckDetail.h:51
AWS_WELLARCHITECTED_API CheckDetail(Aws::Utils::Json::JsonView jsonValue)
CheckDetail & WithChoiceId(ChoiceIdT &&value)
void SetDescription(DescriptionT &&value)
Definition CheckDetail.h:82
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
CheckDetail & WithProvider(CheckProvider value)
CheckDetail & WithStatus(CheckStatus value)
const Aws::String & GetName() const
Definition CheckDetail.h:61
void SetUpdatedAt(UpdatedAtT &&value)
void SetAccountId(AccountIdT &&value)
CheckDetail & WithDescription(DescriptionT &&value)
Definition CheckDetail.h:87
const Aws::String & GetPillarId() const
CheckDetail & WithName(NameT &&value)
Definition CheckDetail.h:69
const Aws::String & GetId() const
Definition CheckDetail.h:43
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue