AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
LensReview.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
12#include <aws/wellarchitected/model/JiraSelectedQuestionConfiguration.h>
13#include <aws/wellarchitected/model/LensStatus.h>
14#include <aws/wellarchitected/model/PillarReviewSummary.h>
15#include <aws/wellarchitected/model/Risk.h>
16#include <aws/wellarchitected/model/WorkloadProfile.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace WellArchitected {
28namespace Model {
29
36 public:
37 AWS_WELLARCHITECTED_API LensReview() = default;
38 AWS_WELLARCHITECTED_API LensReview(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WELLARCHITECTED_API LensReview& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
44 inline const Aws::String& GetLensAlias() const { return m_lensAlias; }
45 inline bool LensAliasHasBeenSet() const { return m_lensAliasHasBeenSet; }
46 template <typename LensAliasT = Aws::String>
47 void SetLensAlias(LensAliasT&& value) {
48 m_lensAliasHasBeenSet = true;
49 m_lensAlias = std::forward<LensAliasT>(value);
50 }
51 template <typename LensAliasT = Aws::String>
52 LensReview& WithLensAlias(LensAliasT&& value) {
53 SetLensAlias(std::forward<LensAliasT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetLensArn() const { return m_lensArn; }
63 inline bool LensArnHasBeenSet() const { return m_lensArnHasBeenSet; }
64 template <typename LensArnT = Aws::String>
65 void SetLensArn(LensArnT&& value) {
66 m_lensArnHasBeenSet = true;
67 m_lensArn = std::forward<LensArnT>(value);
68 }
69 template <typename LensArnT = Aws::String>
70 LensReview& WithLensArn(LensArnT&& value) {
71 SetLensArn(std::forward<LensArnT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetLensVersion() const { return m_lensVersion; }
81 inline bool LensVersionHasBeenSet() const { return m_lensVersionHasBeenSet; }
82 template <typename LensVersionT = Aws::String>
83 void SetLensVersion(LensVersionT&& value) {
84 m_lensVersionHasBeenSet = true;
85 m_lensVersion = std::forward<LensVersionT>(value);
86 }
87 template <typename LensVersionT = Aws::String>
88 LensReview& WithLensVersion(LensVersionT&& value) {
89 SetLensVersion(std::forward<LensVersionT>(value));
90 return *this;
91 }
93
95
96 inline const Aws::String& GetLensName() const { return m_lensName; }
97 inline bool LensNameHasBeenSet() const { return m_lensNameHasBeenSet; }
98 template <typename LensNameT = Aws::String>
99 void SetLensName(LensNameT&& value) {
100 m_lensNameHasBeenSet = true;
101 m_lensName = std::forward<LensNameT>(value);
102 }
103 template <typename LensNameT = Aws::String>
104 LensReview& WithLensName(LensNameT&& value) {
105 SetLensName(std::forward<LensNameT>(value));
106 return *this;
107 }
109
111
114 inline LensStatus GetLensStatus() const { return m_lensStatus; }
115 inline bool LensStatusHasBeenSet() const { return m_lensStatusHasBeenSet; }
116 inline void SetLensStatus(LensStatus value) {
117 m_lensStatusHasBeenSet = true;
118 m_lensStatus = value;
119 }
121 SetLensStatus(value);
122 return *this;
123 }
125
127
128 inline const Aws::Vector<PillarReviewSummary>& GetPillarReviewSummaries() const { return m_pillarReviewSummaries; }
129 inline bool PillarReviewSummariesHasBeenSet() const { return m_pillarReviewSummariesHasBeenSet; }
130 template <typename PillarReviewSummariesT = Aws::Vector<PillarReviewSummary>>
131 void SetPillarReviewSummaries(PillarReviewSummariesT&& value) {
132 m_pillarReviewSummariesHasBeenSet = true;
133 m_pillarReviewSummaries = std::forward<PillarReviewSummariesT>(value);
134 }
135 template <typename PillarReviewSummariesT = Aws::Vector<PillarReviewSummary>>
136 LensReview& WithPillarReviewSummaries(PillarReviewSummariesT&& value) {
137 SetPillarReviewSummaries(std::forward<PillarReviewSummariesT>(value));
138 return *this;
139 }
140 template <typename PillarReviewSummariesT = PillarReviewSummary>
141 LensReview& AddPillarReviewSummaries(PillarReviewSummariesT&& value) {
142 m_pillarReviewSummariesHasBeenSet = true;
143 m_pillarReviewSummaries.emplace_back(std::forward<PillarReviewSummariesT>(value));
144 return *this;
145 }
147
149
152 inline const JiraSelectedQuestionConfiguration& GetJiraConfiguration() const { return m_jiraConfiguration; }
153 inline bool JiraConfigurationHasBeenSet() const { return m_jiraConfigurationHasBeenSet; }
154 template <typename JiraConfigurationT = JiraSelectedQuestionConfiguration>
155 void SetJiraConfiguration(JiraConfigurationT&& value) {
156 m_jiraConfigurationHasBeenSet = true;
157 m_jiraConfiguration = std::forward<JiraConfigurationT>(value);
158 }
159 template <typename JiraConfigurationT = JiraSelectedQuestionConfiguration>
160 LensReview& WithJiraConfiguration(JiraConfigurationT&& value) {
161 SetJiraConfiguration(std::forward<JiraConfigurationT>(value));
162 return *this;
163 }
165
167
168 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
169 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
170 template <typename UpdatedAtT = Aws::Utils::DateTime>
171 void SetUpdatedAt(UpdatedAtT&& value) {
172 m_updatedAtHasBeenSet = true;
173 m_updatedAt = std::forward<UpdatedAtT>(value);
174 }
175 template <typename UpdatedAtT = Aws::Utils::DateTime>
176 LensReview& WithUpdatedAt(UpdatedAtT&& value) {
177 SetUpdatedAt(std::forward<UpdatedAtT>(value));
178 return *this;
179 }
181
183
184 inline const Aws::String& GetNotes() const { return m_notes; }
185 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
186 template <typename NotesT = Aws::String>
187 void SetNotes(NotesT&& value) {
188 m_notesHasBeenSet = true;
189 m_notes = std::forward<NotesT>(value);
190 }
191 template <typename NotesT = Aws::String>
192 LensReview& WithNotes(NotesT&& value) {
193 SetNotes(std::forward<NotesT>(value));
194 return *this;
195 }
197
199
200 inline const Aws::Map<Risk, int>& GetRiskCounts() const { return m_riskCounts; }
201 inline bool RiskCountsHasBeenSet() const { return m_riskCountsHasBeenSet; }
202 template <typename RiskCountsT = Aws::Map<Risk, int>>
203 void SetRiskCounts(RiskCountsT&& value) {
204 m_riskCountsHasBeenSet = true;
205 m_riskCounts = std::forward<RiskCountsT>(value);
206 }
207 template <typename RiskCountsT = Aws::Map<Risk, int>>
208 LensReview& WithRiskCounts(RiskCountsT&& value) {
209 SetRiskCounts(std::forward<RiskCountsT>(value));
210 return *this;
211 }
212 inline LensReview& AddRiskCounts(Risk key, int value) {
213 m_riskCountsHasBeenSet = true;
214 m_riskCounts.emplace(key, value);
215 return *this;
216 }
218
220
221 inline const Aws::String& GetNextToken() const { return m_nextToken; }
222 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
223 template <typename NextTokenT = Aws::String>
224 void SetNextToken(NextTokenT&& value) {
225 m_nextTokenHasBeenSet = true;
226 m_nextToken = std::forward<NextTokenT>(value);
227 }
228 template <typename NextTokenT = Aws::String>
229 LensReview& WithNextToken(NextTokenT&& value) {
230 SetNextToken(std::forward<NextTokenT>(value));
231 return *this;
232 }
234
236
239 inline const Aws::Vector<WorkloadProfile>& GetProfiles() const { return m_profiles; }
240 inline bool ProfilesHasBeenSet() const { return m_profilesHasBeenSet; }
241 template <typename ProfilesT = Aws::Vector<WorkloadProfile>>
242 void SetProfiles(ProfilesT&& value) {
243 m_profilesHasBeenSet = true;
244 m_profiles = std::forward<ProfilesT>(value);
245 }
246 template <typename ProfilesT = Aws::Vector<WorkloadProfile>>
247 LensReview& WithProfiles(ProfilesT&& value) {
248 SetProfiles(std::forward<ProfilesT>(value));
249 return *this;
250 }
251 template <typename ProfilesT = WorkloadProfile>
252 LensReview& AddProfiles(ProfilesT&& value) {
253 m_profilesHasBeenSet = true;
254 m_profiles.emplace_back(std::forward<ProfilesT>(value));
255 return *this;
256 }
258
260
261 inline const Aws::Map<Risk, int>& GetPrioritizedRiskCounts() const { return m_prioritizedRiskCounts; }
262 inline bool PrioritizedRiskCountsHasBeenSet() const { return m_prioritizedRiskCountsHasBeenSet; }
263 template <typename PrioritizedRiskCountsT = Aws::Map<Risk, int>>
264 void SetPrioritizedRiskCounts(PrioritizedRiskCountsT&& value) {
265 m_prioritizedRiskCountsHasBeenSet = true;
266 m_prioritizedRiskCounts = std::forward<PrioritizedRiskCountsT>(value);
267 }
268 template <typename PrioritizedRiskCountsT = Aws::Map<Risk, int>>
269 LensReview& WithPrioritizedRiskCounts(PrioritizedRiskCountsT&& value) {
270 SetPrioritizedRiskCounts(std::forward<PrioritizedRiskCountsT>(value));
271 return *this;
272 }
273 inline LensReview& AddPrioritizedRiskCounts(Risk key, int value) {
274 m_prioritizedRiskCountsHasBeenSet = true;
275 m_prioritizedRiskCounts.emplace(key, value);
276 return *this;
277 }
279 private:
280 Aws::String m_lensAlias;
281 bool m_lensAliasHasBeenSet = false;
282
283 Aws::String m_lensArn;
284 bool m_lensArnHasBeenSet = false;
285
286 Aws::String m_lensVersion;
287 bool m_lensVersionHasBeenSet = false;
288
289 Aws::String m_lensName;
290 bool m_lensNameHasBeenSet = false;
291
292 LensStatus m_lensStatus{LensStatus::NOT_SET};
293 bool m_lensStatusHasBeenSet = false;
294
295 Aws::Vector<PillarReviewSummary> m_pillarReviewSummaries;
296 bool m_pillarReviewSummariesHasBeenSet = false;
297
298 JiraSelectedQuestionConfiguration m_jiraConfiguration;
299 bool m_jiraConfigurationHasBeenSet = false;
300
301 Aws::Utils::DateTime m_updatedAt{};
302 bool m_updatedAtHasBeenSet = false;
303
304 Aws::String m_notes;
305 bool m_notesHasBeenSet = false;
306
307 Aws::Map<Risk, int> m_riskCounts;
308 bool m_riskCountsHasBeenSet = false;
309
310 Aws::String m_nextToken;
311 bool m_nextTokenHasBeenSet = false;
312
314 bool m_profilesHasBeenSet = false;
315
316 Aws::Map<Risk, int> m_prioritizedRiskCounts;
317 bool m_prioritizedRiskCountsHasBeenSet = false;
318};
319
320} // namespace Model
321} // namespace WellArchitected
322} // namespace Aws
AWS_WELLARCHITECTED_API LensReview & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRiskCounts(RiskCountsT &&value)
Definition LensReview.h:203
LensReview & WithProfiles(ProfilesT &&value)
Definition LensReview.h:247
LensReview & WithPrioritizedRiskCounts(PrioritizedRiskCountsT &&value)
Definition LensReview.h:269
LensReview & WithPillarReviewSummaries(PillarReviewSummariesT &&value)
Definition LensReview.h:136
const Aws::String & GetLensArn() const
Definition LensReview.h:62
const Aws::String & GetLensName() const
Definition LensReview.h:96
void SetLensName(LensNameT &&value)
Definition LensReview.h:99
LensReview & WithLensAlias(LensAliasT &&value)
Definition LensReview.h:52
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUpdatedAt(UpdatedAtT &&value)
Definition LensReview.h:171
AWS_WELLARCHITECTED_API LensReview()=default
void SetLensStatus(LensStatus value)
Definition LensReview.h:116
LensReview & WithJiraConfiguration(JiraConfigurationT &&value)
Definition LensReview.h:160
const Aws::Vector< PillarReviewSummary > & GetPillarReviewSummaries() const
Definition LensReview.h:128
void SetLensVersion(LensVersionT &&value)
Definition LensReview.h:83
LensReview & WithLensVersion(LensVersionT &&value)
Definition LensReview.h:88
void SetProfiles(ProfilesT &&value)
Definition LensReview.h:242
LensReview & AddPillarReviewSummaries(PillarReviewSummariesT &&value)
Definition LensReview.h:141
void SetPrioritizedRiskCounts(PrioritizedRiskCountsT &&value)
Definition LensReview.h:264
const JiraSelectedQuestionConfiguration & GetJiraConfiguration() const
Definition LensReview.h:152
const Aws::String & GetLensAlias() const
Definition LensReview.h:44
LensReview & WithNextToken(NextTokenT &&value)
Definition LensReview.h:229
const Aws::String & GetLensVersion() const
Definition LensReview.h:80
AWS_WELLARCHITECTED_API LensReview(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< WorkloadProfile > & GetProfiles() const
Definition LensReview.h:239
LensReview & WithRiskCounts(RiskCountsT &&value)
Definition LensReview.h:208
LensReview & AddPrioritizedRiskCounts(Risk key, int value)
Definition LensReview.h:273
const Aws::Map< Risk, int > & GetPrioritizedRiskCounts() const
Definition LensReview.h:261
LensReview & AddRiskCounts(Risk key, int value)
Definition LensReview.h:212
const Aws::String & GetNextToken() const
Definition LensReview.h:221
void SetNextToken(NextTokenT &&value)
Definition LensReview.h:224
const Aws::String & GetNotes() const
Definition LensReview.h:184
void SetLensAlias(LensAliasT &&value)
Definition LensReview.h:47
const Aws::Map< Risk, int > & GetRiskCounts() const
Definition LensReview.h:200
void SetLensArn(LensArnT &&value)
Definition LensReview.h:65
LensReview & WithUpdatedAt(UpdatedAtT &&value)
Definition LensReview.h:176
LensReview & WithNotes(NotesT &&value)
Definition LensReview.h:192
LensReview & WithLensStatus(LensStatus value)
Definition LensReview.h:120
void SetPillarReviewSummaries(PillarReviewSummariesT &&value)
Definition LensReview.h:131
LensReview & WithLensName(LensNameT &&value)
Definition LensReview.h:104
LensReview & AddProfiles(ProfilesT &&value)
Definition LensReview.h:252
void SetJiraConfiguration(JiraConfigurationT &&value)
Definition LensReview.h:155
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition LensReview.h:168
LensReview & WithLensArn(LensArnT &&value)
Definition LensReview.h:70
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue