AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
CheckSummary.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/core/utils/DateTime.h>
11#include <aws/wellarchitected/model/CheckStatus.h>
12#include <aws/core/utils/memory/stl/AWSMap.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
36 {
37 public:
38 AWS_WELLARCHITECTED_API CheckSummary() = default;
39 AWS_WELLARCHITECTED_API CheckSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_WELLARCHITECTED_API CheckSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetId() const { return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 template<typename IdT = Aws::String>
51 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
52 template<typename IdT = Aws::String>
53 CheckSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
64 template<typename NameT = Aws::String>
65 CheckSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
67
69
72 inline CheckProvider GetProvider() const { return m_provider; }
73 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
74 inline void SetProvider(CheckProvider value) { m_providerHasBeenSet = true; m_provider = value; }
75 inline CheckSummary& WithProvider(CheckProvider value) { SetProvider(value); return *this;}
77
79
82 inline const Aws::String& GetDescription() const { return m_description; }
83 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
84 template<typename DescriptionT = Aws::String>
85 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
86 template<typename DescriptionT = Aws::String>
87 CheckSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
89
91
92 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
93 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
94 template<typename UpdatedAtT = Aws::Utils::DateTime>
95 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
96 template<typename UpdatedAtT = Aws::Utils::DateTime>
97 CheckSummary& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
99
101
104 inline const Aws::String& GetLensArn() const { return m_lensArn; }
105 inline bool LensArnHasBeenSet() const { return m_lensArnHasBeenSet; }
106 template<typename LensArnT = Aws::String>
107 void SetLensArn(LensArnT&& value) { m_lensArnHasBeenSet = true; m_lensArn = std::forward<LensArnT>(value); }
108 template<typename LensArnT = Aws::String>
109 CheckSummary& WithLensArn(LensArnT&& value) { SetLensArn(std::forward<LensArnT>(value)); return *this;}
111
113
114 inline const Aws::String& GetPillarId() const { return m_pillarId; }
115 inline bool PillarIdHasBeenSet() const { return m_pillarIdHasBeenSet; }
116 template<typename PillarIdT = Aws::String>
117 void SetPillarId(PillarIdT&& value) { m_pillarIdHasBeenSet = true; m_pillarId = std::forward<PillarIdT>(value); }
118 template<typename PillarIdT = Aws::String>
119 CheckSummary& WithPillarId(PillarIdT&& value) { SetPillarId(std::forward<PillarIdT>(value)); return *this;}
121
123
124 inline const Aws::String& GetQuestionId() const { return m_questionId; }
125 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
126 template<typename QuestionIdT = Aws::String>
127 void SetQuestionId(QuestionIdT&& value) { m_questionIdHasBeenSet = true; m_questionId = std::forward<QuestionIdT>(value); }
128 template<typename QuestionIdT = Aws::String>
129 CheckSummary& WithQuestionId(QuestionIdT&& value) { SetQuestionId(std::forward<QuestionIdT>(value)); return *this;}
131
133
134 inline const Aws::String& GetChoiceId() const { return m_choiceId; }
135 inline bool ChoiceIdHasBeenSet() const { return m_choiceIdHasBeenSet; }
136 template<typename ChoiceIdT = Aws::String>
137 void SetChoiceId(ChoiceIdT&& value) { m_choiceIdHasBeenSet = true; m_choiceId = std::forward<ChoiceIdT>(value); }
138 template<typename ChoiceIdT = Aws::String>
139 CheckSummary& WithChoiceId(ChoiceIdT&& value) { SetChoiceId(std::forward<ChoiceIdT>(value)); return *this;}
141
143
146 inline CheckStatus GetStatus() const { return m_status; }
147 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
148 inline void SetStatus(CheckStatus value) { m_statusHasBeenSet = true; m_status = value; }
149 inline CheckSummary& WithStatus(CheckStatus value) { SetStatus(value); return *this;}
151
153
156 inline const Aws::Map<CheckStatus, int>& GetAccountSummary() const { return m_accountSummary; }
157 inline bool AccountSummaryHasBeenSet() const { return m_accountSummaryHasBeenSet; }
158 template<typename AccountSummaryT = Aws::Map<CheckStatus, int>>
159 void SetAccountSummary(AccountSummaryT&& value) { m_accountSummaryHasBeenSet = true; m_accountSummary = std::forward<AccountSummaryT>(value); }
160 template<typename AccountSummaryT = Aws::Map<CheckStatus, int>>
161 CheckSummary& WithAccountSummary(AccountSummaryT&& value) { SetAccountSummary(std::forward<AccountSummaryT>(value)); return *this;}
163 m_accountSummaryHasBeenSet = true; m_accountSummary.emplace(key, value); return *this;
164 }
166 private:
167
168 Aws::String m_id;
169 bool m_idHasBeenSet = false;
170
171 Aws::String m_name;
172 bool m_nameHasBeenSet = false;
173
175 bool m_providerHasBeenSet = false;
176
177 Aws::String m_description;
178 bool m_descriptionHasBeenSet = false;
179
180 Aws::Utils::DateTime m_updatedAt{};
181 bool m_updatedAtHasBeenSet = false;
182
183 Aws::String m_lensArn;
184 bool m_lensArnHasBeenSet = false;
185
186 Aws::String m_pillarId;
187 bool m_pillarIdHasBeenSet = false;
188
189 Aws::String m_questionId;
190 bool m_questionIdHasBeenSet = false;
191
192 Aws::String m_choiceId;
193 bool m_choiceIdHasBeenSet = false;
194
196 bool m_statusHasBeenSet = false;
197
198 Aws::Map<CheckStatus, int> m_accountSummary;
199 bool m_accountSummaryHasBeenSet = false;
200 };
201
202} // namespace Model
203} // namespace WellArchitected
204} // 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)
void SetUpdatedAt(UpdatedAtT &&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