AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename IdT = Aws::String>
52 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
53 template<typename IdT = Aws::String>
54 CheckDetail& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
65 template<typename NameT = Aws::String>
66 CheckDetail& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template<typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
77 template<typename DescriptionT = Aws::String>
78 CheckDetail& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
80
82
85 inline CheckProvider GetProvider() const { return m_provider; }
86 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
87 inline void SetProvider(CheckProvider value) { m_providerHasBeenSet = true; m_provider = value; }
88 inline CheckDetail& WithProvider(CheckProvider value) { SetProvider(value); return *this;}
90
92
95 inline const Aws::String& GetLensArn() const { return m_lensArn; }
96 inline bool LensArnHasBeenSet() const { return m_lensArnHasBeenSet; }
97 template<typename LensArnT = Aws::String>
98 void SetLensArn(LensArnT&& value) { m_lensArnHasBeenSet = true; m_lensArn = std::forward<LensArnT>(value); }
99 template<typename LensArnT = Aws::String>
100 CheckDetail& WithLensArn(LensArnT&& value) { SetLensArn(std::forward<LensArnT>(value)); return *this;}
102
104
105 inline const Aws::String& GetPillarId() const { return m_pillarId; }
106 inline bool PillarIdHasBeenSet() const { return m_pillarIdHasBeenSet; }
107 template<typename PillarIdT = Aws::String>
108 void SetPillarId(PillarIdT&& value) { m_pillarIdHasBeenSet = true; m_pillarId = std::forward<PillarIdT>(value); }
109 template<typename PillarIdT = Aws::String>
110 CheckDetail& WithPillarId(PillarIdT&& value) { SetPillarId(std::forward<PillarIdT>(value)); return *this;}
112
114
115 inline const Aws::String& GetQuestionId() const { return m_questionId; }
116 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
117 template<typename QuestionIdT = Aws::String>
118 void SetQuestionId(QuestionIdT&& value) { m_questionIdHasBeenSet = true; m_questionId = std::forward<QuestionIdT>(value); }
119 template<typename QuestionIdT = Aws::String>
120 CheckDetail& WithQuestionId(QuestionIdT&& value) { SetQuestionId(std::forward<QuestionIdT>(value)); return *this;}
122
124
125 inline const Aws::String& GetChoiceId() const { return m_choiceId; }
126 inline bool ChoiceIdHasBeenSet() const { return m_choiceIdHasBeenSet; }
127 template<typename ChoiceIdT = Aws::String>
128 void SetChoiceId(ChoiceIdT&& value) { m_choiceIdHasBeenSet = true; m_choiceId = std::forward<ChoiceIdT>(value); }
129 template<typename ChoiceIdT = Aws::String>
130 CheckDetail& WithChoiceId(ChoiceIdT&& value) { SetChoiceId(std::forward<ChoiceIdT>(value)); return *this;}
132
134
137 inline CheckStatus GetStatus() const { return m_status; }
138 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
139 inline void SetStatus(CheckStatus value) { m_statusHasBeenSet = true; m_status = value; }
140 inline CheckDetail& WithStatus(CheckStatus value) { SetStatus(value); return *this;}
142
144
145 inline const Aws::String& GetAccountId() const { return m_accountId; }
146 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
147 template<typename AccountIdT = Aws::String>
148 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
149 template<typename AccountIdT = Aws::String>
150 CheckDetail& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
152
154
157 inline int GetFlaggedResources() const { return m_flaggedResources; }
158 inline bool FlaggedResourcesHasBeenSet() const { return m_flaggedResourcesHasBeenSet; }
159 inline void SetFlaggedResources(int value) { m_flaggedResourcesHasBeenSet = true; m_flaggedResources = value; }
160 inline CheckDetail& WithFlaggedResources(int value) { SetFlaggedResources(value); return *this;}
162
164
167 inline CheckFailureReason GetReason() const { return m_reason; }
168 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
169 inline void SetReason(CheckFailureReason value) { m_reasonHasBeenSet = true; m_reason = value; }
170 inline CheckDetail& WithReason(CheckFailureReason value) { SetReason(value); return *this;}
172
174
175 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
176 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
177 template<typename UpdatedAtT = Aws::Utils::DateTime>
178 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
179 template<typename UpdatedAtT = Aws::Utils::DateTime>
180 CheckDetail& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
182 private:
183
184 Aws::String m_id;
185 bool m_idHasBeenSet = false;
186
187 Aws::String m_name;
188 bool m_nameHasBeenSet = false;
189
190 Aws::String m_description;
191 bool m_descriptionHasBeenSet = false;
192
194 bool m_providerHasBeenSet = false;
195
196 Aws::String m_lensArn;
197 bool m_lensArnHasBeenSet = false;
198
199 Aws::String m_pillarId;
200 bool m_pillarIdHasBeenSet = false;
201
202 Aws::String m_questionId;
203 bool m_questionIdHasBeenSet = false;
204
205 Aws::String m_choiceId;
206 bool m_choiceIdHasBeenSet = false;
207
209 bool m_statusHasBeenSet = false;
210
211 Aws::String m_accountId;
212 bool m_accountIdHasBeenSet = false;
213
214 int m_flaggedResources{0};
215 bool m_flaggedResourcesHasBeenSet = false;
216
218 bool m_reasonHasBeenSet = false;
219
220 Aws::Utils::DateTime m_updatedAt{};
221 bool m_updatedAtHasBeenSet = false;
222 };
223
224} // namespace Model
225} // namespace WellArchitected
226} // 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:87
void SetReason(CheckFailureReason value)
void SetQuestionId(QuestionIdT &&value)
const Aws::String & GetDescription() const
Definition CheckDetail.h:73
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
Definition CheckDetail.h:95
const Aws::String & GetChoiceId() const
CheckDetail & WithId(IdT &&value)
Definition CheckDetail.h:54
AWS_WELLARCHITECTED_API CheckDetail(Aws::Utils::Json::JsonView jsonValue)
CheckDetail & WithChoiceId(ChoiceIdT &&value)
void SetDescription(DescriptionT &&value)
Definition CheckDetail.h:76
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
CheckDetail & WithProvider(CheckProvider value)
Definition CheckDetail.h:88
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:78
const Aws::String & GetPillarId() const
CheckDetail & WithName(NameT &&value)
Definition CheckDetail.h:66
const Aws::String & GetId() const
Definition CheckDetail.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue