AWS SDK for C++

AWS SDK for C++ Version 1.11.875

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
112 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
113 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
114 template <typename UpdatedAtT = Aws::Utils::DateTime>
115 void SetUpdatedAt(UpdatedAtT&& value) {
116 m_updatedAtHasBeenSet = true;
117 m_updatedAt = std::forward<UpdatedAtT>(value);
118 }
119 template <typename UpdatedAtT = Aws::Utils::DateTime>
120 CheckSummary& WithUpdatedAt(UpdatedAtT&& value) {
121 SetUpdatedAt(std::forward<UpdatedAtT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetLensArn() const { return m_lensArn; }
131 inline bool LensArnHasBeenSet() const { return m_lensArnHasBeenSet; }
132 template <typename LensArnT = Aws::String>
133 void SetLensArn(LensArnT&& value) {
134 m_lensArnHasBeenSet = true;
135 m_lensArn = std::forward<LensArnT>(value);
136 }
137 template <typename LensArnT = Aws::String>
138 CheckSummary& WithLensArn(LensArnT&& value) {
139 SetLensArn(std::forward<LensArnT>(value));
140 return *this;
141 }
143
145
146 inline const Aws::String& GetPillarId() const { return m_pillarId; }
147 inline bool PillarIdHasBeenSet() const { return m_pillarIdHasBeenSet; }
148 template <typename PillarIdT = Aws::String>
149 void SetPillarId(PillarIdT&& value) {
150 m_pillarIdHasBeenSet = true;
151 m_pillarId = std::forward<PillarIdT>(value);
152 }
153 template <typename PillarIdT = Aws::String>
154 CheckSummary& WithPillarId(PillarIdT&& value) {
155 SetPillarId(std::forward<PillarIdT>(value));
156 return *this;
157 }
159
161
162 inline const Aws::String& GetQuestionId() const { return m_questionId; }
163 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
164 template <typename QuestionIdT = Aws::String>
165 void SetQuestionId(QuestionIdT&& value) {
166 m_questionIdHasBeenSet = true;
167 m_questionId = std::forward<QuestionIdT>(value);
168 }
169 template <typename QuestionIdT = Aws::String>
170 CheckSummary& WithQuestionId(QuestionIdT&& value) {
171 SetQuestionId(std::forward<QuestionIdT>(value));
172 return *this;
173 }
175
177
178 inline const Aws::String& GetChoiceId() const { return m_choiceId; }
179 inline bool ChoiceIdHasBeenSet() const { return m_choiceIdHasBeenSet; }
180 template <typename ChoiceIdT = Aws::String>
181 void SetChoiceId(ChoiceIdT&& value) {
182 m_choiceIdHasBeenSet = true;
183 m_choiceId = std::forward<ChoiceIdT>(value);
184 }
185 template <typename ChoiceIdT = Aws::String>
186 CheckSummary& WithChoiceId(ChoiceIdT&& value) {
187 SetChoiceId(std::forward<ChoiceIdT>(value));
188 return *this;
189 }
191
193
196 inline CheckStatus GetStatus() const { return m_status; }
197 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
198 inline void SetStatus(CheckStatus value) {
199 m_statusHasBeenSet = true;
200 m_status = value;
201 }
203 SetStatus(value);
204 return *this;
205 }
207
209
212 inline const Aws::Map<CheckStatus, int>& GetAccountSummary() const { return m_accountSummary; }
213 inline bool AccountSummaryHasBeenSet() const { return m_accountSummaryHasBeenSet; }
214 template <typename AccountSummaryT = Aws::Map<CheckStatus, int>>
215 void SetAccountSummary(AccountSummaryT&& value) {
216 m_accountSummaryHasBeenSet = true;
217 m_accountSummary = std::forward<AccountSummaryT>(value);
218 }
219 template <typename AccountSummaryT = Aws::Map<CheckStatus, int>>
220 CheckSummary& WithAccountSummary(AccountSummaryT&& value) {
221 SetAccountSummary(std::forward<AccountSummaryT>(value));
222 return *this;
223 }
225 m_accountSummaryHasBeenSet = true;
226 m_accountSummary.emplace(key, value);
227 return *this;
228 }
230 private:
231 Aws::String m_id;
232
233 Aws::String m_name;
234
236
237 Aws::String m_description;
238
239 Aws::Utils::DateTime m_updatedAt{};
240
241 Aws::String m_lensArn;
242
243 Aws::String m_pillarId;
244
245 Aws::String m_questionId;
246
247 Aws::String m_choiceId;
248
250
251 Aws::Map<CheckStatus, int> m_accountSummary;
252 bool m_idHasBeenSet = false;
253 bool m_nameHasBeenSet = false;
254 bool m_providerHasBeenSet = false;
255 bool m_descriptionHasBeenSet = false;
256 bool m_updatedAtHasBeenSet = false;
257 bool m_lensArnHasBeenSet = false;
258 bool m_pillarIdHasBeenSet = false;
259 bool m_questionIdHasBeenSet = false;
260 bool m_choiceIdHasBeenSet = false;
261 bool m_statusHasBeenSet = false;
262 bool m_accountSummaryHasBeenSet = false;
263};
264
265} // namespace Model
266} // namespace WellArchitected
267} // 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