AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
CheckSummary.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/wellarchitected/WellArchitected_EXPORTS.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
32 public:
33 AWS_WELLARCHITECTED_API CheckSummary() = default;
34 AWS_WELLARCHITECTED_API CheckSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_WELLARCHITECTED_API CheckSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
50 CheckSummary& WithId(IdT&& value) {
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
68 CheckSummary& WithName(NameT&& value) {
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline CheckProvider GetProvider() const { return m_provider; }
79 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
80 inline void SetProvider(CheckProvider value) {
81 m_providerHasBeenSet = true;
82 m_provider = value;
83 }
85 SetProvider(value);
86 return *this;
87 }
89
91
94 inline const Aws::String& GetDescription() const { return m_description; }
95 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 template <typename DescriptionT = Aws::String>
97 void SetDescription(DescriptionT&& value) {
98 m_descriptionHasBeenSet = true;
99 m_description = std::forward<DescriptionT>(value);
100 }
101 template <typename DescriptionT = Aws::String>
102 CheckSummary& WithDescription(DescriptionT&& value) {
103 SetDescription(std::forward<DescriptionT>(value));
104 return *this;
105 }
107
109
110 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
111 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
112 template <typename UpdatedAtT = Aws::Utils::DateTime>
113 void SetUpdatedAt(UpdatedAtT&& value) {
114 m_updatedAtHasBeenSet = true;
115 m_updatedAt = std::forward<UpdatedAtT>(value);
116 }
117 template <typename UpdatedAtT = Aws::Utils::DateTime>
118 CheckSummary& WithUpdatedAt(UpdatedAtT&& value) {
119 SetUpdatedAt(std::forward<UpdatedAtT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetLensArn() const { return m_lensArn; }
129 inline bool LensArnHasBeenSet() const { return m_lensArnHasBeenSet; }
130 template <typename LensArnT = Aws::String>
131 void SetLensArn(LensArnT&& value) {
132 m_lensArnHasBeenSet = true;
133 m_lensArn = std::forward<LensArnT>(value);
134 }
135 template <typename LensArnT = Aws::String>
136 CheckSummary& WithLensArn(LensArnT&& value) {
137 SetLensArn(std::forward<LensArnT>(value));
138 return *this;
139 }
141
143
144 inline const Aws::String& GetPillarId() const { return m_pillarId; }
145 inline bool PillarIdHasBeenSet() const { return m_pillarIdHasBeenSet; }
146 template <typename PillarIdT = Aws::String>
147 void SetPillarId(PillarIdT&& value) {
148 m_pillarIdHasBeenSet = true;
149 m_pillarId = std::forward<PillarIdT>(value);
150 }
151 template <typename PillarIdT = Aws::String>
152 CheckSummary& WithPillarId(PillarIdT&& value) {
153 SetPillarId(std::forward<PillarIdT>(value));
154 return *this;
155 }
157
159
160 inline const Aws::String& GetQuestionId() const { return m_questionId; }
161 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
162 template <typename QuestionIdT = Aws::String>
163 void SetQuestionId(QuestionIdT&& value) {
164 m_questionIdHasBeenSet = true;
165 m_questionId = std::forward<QuestionIdT>(value);
166 }
167 template <typename QuestionIdT = Aws::String>
168 CheckSummary& WithQuestionId(QuestionIdT&& value) {
169 SetQuestionId(std::forward<QuestionIdT>(value));
170 return *this;
171 }
173
175
176 inline const Aws::String& GetChoiceId() const { return m_choiceId; }
177 inline bool ChoiceIdHasBeenSet() const { return m_choiceIdHasBeenSet; }
178 template <typename ChoiceIdT = Aws::String>
179 void SetChoiceId(ChoiceIdT&& value) {
180 m_choiceIdHasBeenSet = true;
181 m_choiceId = std::forward<ChoiceIdT>(value);
182 }
183 template <typename ChoiceIdT = Aws::String>
184 CheckSummary& WithChoiceId(ChoiceIdT&& value) {
185 SetChoiceId(std::forward<ChoiceIdT>(value));
186 return *this;
187 }
189
191
194 inline CheckStatus GetStatus() const { return m_status; }
195 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
196 inline void SetStatus(CheckStatus value) {
197 m_statusHasBeenSet = true;
198 m_status = value;
199 }
201 SetStatus(value);
202 return *this;
203 }
205
207
210 inline const Aws::Map<CheckStatus, int>& GetAccountSummary() const { return m_accountSummary; }
211 inline bool AccountSummaryHasBeenSet() const { return m_accountSummaryHasBeenSet; }
212 template <typename AccountSummaryT = Aws::Map<CheckStatus, int>>
213 void SetAccountSummary(AccountSummaryT&& value) {
214 m_accountSummaryHasBeenSet = true;
215 m_accountSummary = std::forward<AccountSummaryT>(value);
216 }
217 template <typename AccountSummaryT = Aws::Map<CheckStatus, int>>
218 CheckSummary& WithAccountSummary(AccountSummaryT&& value) {
219 SetAccountSummary(std::forward<AccountSummaryT>(value));
220 return *this;
221 }
223 m_accountSummaryHasBeenSet = true;
224 m_accountSummary.emplace(key, value);
225 return *this;
226 }
228 private:
229 Aws::String m_id;
230
231 Aws::String m_name;
232
234
235 Aws::String m_description;
236
237 Aws::Utils::DateTime m_updatedAt{};
238
239 Aws::String m_lensArn;
240
241 Aws::String m_pillarId;
242
243 Aws::String m_questionId;
244
245 Aws::String m_choiceId;
246
248
249 Aws::Map<CheckStatus, int> m_accountSummary;
250 bool m_idHasBeenSet = false;
251 bool m_nameHasBeenSet = false;
252 bool m_providerHasBeenSet = false;
253 bool m_descriptionHasBeenSet = false;
254 bool m_updatedAtHasBeenSet = false;
255 bool m_lensArnHasBeenSet = false;
256 bool m_pillarIdHasBeenSet = false;
257 bool m_questionIdHasBeenSet = false;
258 bool m_choiceIdHasBeenSet = false;
259 bool m_statusHasBeenSet = false;
260 bool m_accountSummaryHasBeenSet = false;
261};
262
263} // namespace Model
264} // namespace WellArchitected
265} // namespace Aws
const Aws::String & GetChoiceId() const
CheckSummary & AddAccountSummary(CheckStatus key, int value)
CheckSummary & WithPillarId(PillarIdT &&value)
const Aws::String & GetQuestionId() const
AWS_WELLARCHITECTED_API CheckSummary()=default
CheckSummary & WithId(IdT &&value)
const Aws::Map< CheckStatus, int > & GetAccountSummary() const
void SetDescription(DescriptionT &&value)
void SetAccountSummary(AccountSummaryT &&value)
CheckSummary & WithStatus(CheckStatus value)
const Aws::String & GetId() const
const Aws::Utils::DateTime & GetUpdatedAt() const
CheckSummary & WithChoiceId(ChoiceIdT &&value)
void SetProvider(CheckProvider value)
CheckSummary & WithAccountSummary(AccountSummaryT &&value)
CheckSummary & WithName(NameT &&value)
const Aws::String & GetPillarId() const
const Aws::String & GetDescription() const
AWS_WELLARCHITECTED_API CheckSummary(Aws::Utils::Json::JsonView jsonValue)
CheckSummary & WithDescription(DescriptionT &&value)
const Aws::String & GetName() const
CheckSummary & WithProvider(CheckProvider value)
CheckSummary & WithQuestionId(QuestionIdT &&value)
void SetQuestionId(QuestionIdT &&value)
AWS_WELLARCHITECTED_API CheckSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
CheckSummary & WithLensArn(LensArnT &&value)
CheckSummary & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetLensArn() const
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
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
Aws::Utils::Json::JsonValue JsonValue