AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
LensReview.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/LensStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/wellarchitected/model/JiraSelectedQuestionConfiguration.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/wellarchitected/model/PillarReviewSummary.h>
15#include <aws/wellarchitected/model/Risk.h>
16#include <aws/wellarchitected/model/WorkloadProfile.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace WellArchitected
30{
31namespace Model
32{
33
40 {
41 public:
42 AWS_WELLARCHITECTED_API LensReview() = default;
43 AWS_WELLARCHITECTED_API LensReview(Aws::Utils::Json::JsonView jsonValue);
44 AWS_WELLARCHITECTED_API LensReview& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
50 inline const Aws::String& GetLensAlias() const { return m_lensAlias; }
51 inline bool LensAliasHasBeenSet() const { return m_lensAliasHasBeenSet; }
52 template<typename LensAliasT = Aws::String>
53 void SetLensAlias(LensAliasT&& value) { m_lensAliasHasBeenSet = true; m_lensAlias = std::forward<LensAliasT>(value); }
54 template<typename LensAliasT = Aws::String>
55 LensReview& WithLensAlias(LensAliasT&& value) { SetLensAlias(std::forward<LensAliasT>(value)); return *this;}
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) { m_lensArnHasBeenSet = true; m_lensArn = std::forward<LensArnT>(value); }
66 template<typename LensArnT = Aws::String>
67 LensReview& WithLensArn(LensArnT&& value) { SetLensArn(std::forward<LensArnT>(value)); return *this;}
69
71
74 inline const Aws::String& GetLensVersion() const { return m_lensVersion; }
75 inline bool LensVersionHasBeenSet() const { return m_lensVersionHasBeenSet; }
76 template<typename LensVersionT = Aws::String>
77 void SetLensVersion(LensVersionT&& value) { m_lensVersionHasBeenSet = true; m_lensVersion = std::forward<LensVersionT>(value); }
78 template<typename LensVersionT = Aws::String>
79 LensReview& WithLensVersion(LensVersionT&& value) { SetLensVersion(std::forward<LensVersionT>(value)); return *this;}
81
83
84 inline const Aws::String& GetLensName() const { return m_lensName; }
85 inline bool LensNameHasBeenSet() const { return m_lensNameHasBeenSet; }
86 template<typename LensNameT = Aws::String>
87 void SetLensName(LensNameT&& value) { m_lensNameHasBeenSet = true; m_lensName = std::forward<LensNameT>(value); }
88 template<typename LensNameT = Aws::String>
89 LensReview& WithLensName(LensNameT&& value) { SetLensName(std::forward<LensNameT>(value)); return *this;}
91
93
96 inline LensStatus GetLensStatus() const { return m_lensStatus; }
97 inline bool LensStatusHasBeenSet() const { return m_lensStatusHasBeenSet; }
98 inline void SetLensStatus(LensStatus value) { m_lensStatusHasBeenSet = true; m_lensStatus = value; }
99 inline LensReview& WithLensStatus(LensStatus value) { SetLensStatus(value); return *this;}
101
103
104 inline const Aws::Vector<PillarReviewSummary>& GetPillarReviewSummaries() const { return m_pillarReviewSummaries; }
105 inline bool PillarReviewSummariesHasBeenSet() const { return m_pillarReviewSummariesHasBeenSet; }
106 template<typename PillarReviewSummariesT = Aws::Vector<PillarReviewSummary>>
107 void SetPillarReviewSummaries(PillarReviewSummariesT&& value) { m_pillarReviewSummariesHasBeenSet = true; m_pillarReviewSummaries = std::forward<PillarReviewSummariesT>(value); }
108 template<typename PillarReviewSummariesT = Aws::Vector<PillarReviewSummary>>
109 LensReview& WithPillarReviewSummaries(PillarReviewSummariesT&& value) { SetPillarReviewSummaries(std::forward<PillarReviewSummariesT>(value)); return *this;}
110 template<typename PillarReviewSummariesT = PillarReviewSummary>
111 LensReview& AddPillarReviewSummaries(PillarReviewSummariesT&& value) { m_pillarReviewSummariesHasBeenSet = true; m_pillarReviewSummaries.emplace_back(std::forward<PillarReviewSummariesT>(value)); return *this; }
113
115
118 inline const JiraSelectedQuestionConfiguration& GetJiraConfiguration() const { return m_jiraConfiguration; }
119 inline bool JiraConfigurationHasBeenSet() const { return m_jiraConfigurationHasBeenSet; }
120 template<typename JiraConfigurationT = JiraSelectedQuestionConfiguration>
121 void SetJiraConfiguration(JiraConfigurationT&& value) { m_jiraConfigurationHasBeenSet = true; m_jiraConfiguration = std::forward<JiraConfigurationT>(value); }
122 template<typename JiraConfigurationT = JiraSelectedQuestionConfiguration>
123 LensReview& WithJiraConfiguration(JiraConfigurationT&& value) { SetJiraConfiguration(std::forward<JiraConfigurationT>(value)); return *this;}
125
127
128 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
129 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
130 template<typename UpdatedAtT = Aws::Utils::DateTime>
131 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
132 template<typename UpdatedAtT = Aws::Utils::DateTime>
133 LensReview& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
135
137
138 inline const Aws::String& GetNotes() const { return m_notes; }
139 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
140 template<typename NotesT = Aws::String>
141 void SetNotes(NotesT&& value) { m_notesHasBeenSet = true; m_notes = std::forward<NotesT>(value); }
142 template<typename NotesT = Aws::String>
143 LensReview& WithNotes(NotesT&& value) { SetNotes(std::forward<NotesT>(value)); return *this;}
145
147
148 inline const Aws::Map<Risk, int>& GetRiskCounts() const { return m_riskCounts; }
149 inline bool RiskCountsHasBeenSet() const { return m_riskCountsHasBeenSet; }
150 template<typename RiskCountsT = Aws::Map<Risk, int>>
151 void SetRiskCounts(RiskCountsT&& value) { m_riskCountsHasBeenSet = true; m_riskCounts = std::forward<RiskCountsT>(value); }
152 template<typename RiskCountsT = Aws::Map<Risk, int>>
153 LensReview& WithRiskCounts(RiskCountsT&& value) { SetRiskCounts(std::forward<RiskCountsT>(value)); return *this;}
154 inline LensReview& AddRiskCounts(Risk key, int value) {
155 m_riskCountsHasBeenSet = true; m_riskCounts.emplace(key, value); return *this;
156 }
158
160
161 inline const Aws::String& GetNextToken() const { return m_nextToken; }
162 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
163 template<typename NextTokenT = Aws::String>
164 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
165 template<typename NextTokenT = Aws::String>
166 LensReview& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
168
170
173 inline const Aws::Vector<WorkloadProfile>& GetProfiles() const { return m_profiles; }
174 inline bool ProfilesHasBeenSet() const { return m_profilesHasBeenSet; }
175 template<typename ProfilesT = Aws::Vector<WorkloadProfile>>
176 void SetProfiles(ProfilesT&& value) { m_profilesHasBeenSet = true; m_profiles = std::forward<ProfilesT>(value); }
177 template<typename ProfilesT = Aws::Vector<WorkloadProfile>>
178 LensReview& WithProfiles(ProfilesT&& value) { SetProfiles(std::forward<ProfilesT>(value)); return *this;}
179 template<typename ProfilesT = WorkloadProfile>
180 LensReview& AddProfiles(ProfilesT&& value) { m_profilesHasBeenSet = true; m_profiles.emplace_back(std::forward<ProfilesT>(value)); return *this; }
182
184
185 inline const Aws::Map<Risk, int>& GetPrioritizedRiskCounts() const { return m_prioritizedRiskCounts; }
186 inline bool PrioritizedRiskCountsHasBeenSet() const { return m_prioritizedRiskCountsHasBeenSet; }
187 template<typename PrioritizedRiskCountsT = Aws::Map<Risk, int>>
188 void SetPrioritizedRiskCounts(PrioritizedRiskCountsT&& value) { m_prioritizedRiskCountsHasBeenSet = true; m_prioritizedRiskCounts = std::forward<PrioritizedRiskCountsT>(value); }
189 template<typename PrioritizedRiskCountsT = Aws::Map<Risk, int>>
190 LensReview& WithPrioritizedRiskCounts(PrioritizedRiskCountsT&& value) { SetPrioritizedRiskCounts(std::forward<PrioritizedRiskCountsT>(value)); return *this;}
191 inline LensReview& AddPrioritizedRiskCounts(Risk key, int value) {
192 m_prioritizedRiskCountsHasBeenSet = true; m_prioritizedRiskCounts.emplace(key, value); return *this;
193 }
195 private:
196
197 Aws::String m_lensAlias;
198 bool m_lensAliasHasBeenSet = false;
199
200 Aws::String m_lensArn;
201 bool m_lensArnHasBeenSet = false;
202
203 Aws::String m_lensVersion;
204 bool m_lensVersionHasBeenSet = false;
205
206 Aws::String m_lensName;
207 bool m_lensNameHasBeenSet = false;
208
209 LensStatus m_lensStatus{LensStatus::NOT_SET};
210 bool m_lensStatusHasBeenSet = false;
211
212 Aws::Vector<PillarReviewSummary> m_pillarReviewSummaries;
213 bool m_pillarReviewSummariesHasBeenSet = false;
214
215 JiraSelectedQuestionConfiguration m_jiraConfiguration;
216 bool m_jiraConfigurationHasBeenSet = false;
217
218 Aws::Utils::DateTime m_updatedAt{};
219 bool m_updatedAtHasBeenSet = false;
220
221 Aws::String m_notes;
222 bool m_notesHasBeenSet = false;
223
224 Aws::Map<Risk, int> m_riskCounts;
225 bool m_riskCountsHasBeenSet = false;
226
227 Aws::String m_nextToken;
228 bool m_nextTokenHasBeenSet = false;
229
231 bool m_profilesHasBeenSet = false;
232
233 Aws::Map<Risk, int> m_prioritizedRiskCounts;
234 bool m_prioritizedRiskCountsHasBeenSet = false;
235 };
236
237} // namespace Model
238} // namespace WellArchitected
239} // namespace Aws
AWS_WELLARCHITECTED_API LensReview & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRiskCounts(RiskCountsT &&value)
Definition LensReview.h:151
LensReview & WithProfiles(ProfilesT &&value)
Definition LensReview.h:178
LensReview & WithPrioritizedRiskCounts(PrioritizedRiskCountsT &&value)
Definition LensReview.h:190
LensReview & WithPillarReviewSummaries(PillarReviewSummariesT &&value)
Definition LensReview.h:109
const Aws::String & GetLensArn() const
Definition LensReview.h:62
const Aws::String & GetLensName() const
Definition LensReview.h:84
void SetLensName(LensNameT &&value)
Definition LensReview.h:87
LensReview & WithLensAlias(LensAliasT &&value)
Definition LensReview.h:55
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUpdatedAt(UpdatedAtT &&value)
Definition LensReview.h:131
AWS_WELLARCHITECTED_API LensReview()=default
void SetLensStatus(LensStatus value)
Definition LensReview.h:98
LensReview & WithJiraConfiguration(JiraConfigurationT &&value)
Definition LensReview.h:123
const Aws::Vector< PillarReviewSummary > & GetPillarReviewSummaries() const
Definition LensReview.h:104
void SetLensVersion(LensVersionT &&value)
Definition LensReview.h:77
LensReview & WithLensVersion(LensVersionT &&value)
Definition LensReview.h:79
void SetProfiles(ProfilesT &&value)
Definition LensReview.h:176
LensReview & AddPillarReviewSummaries(PillarReviewSummariesT &&value)
Definition LensReview.h:111
void SetPrioritizedRiskCounts(PrioritizedRiskCountsT &&value)
Definition LensReview.h:188
const JiraSelectedQuestionConfiguration & GetJiraConfiguration() const
Definition LensReview.h:118
const Aws::String & GetLensAlias() const
Definition LensReview.h:50
LensReview & WithNextToken(NextTokenT &&value)
Definition LensReview.h:166
const Aws::String & GetLensVersion() const
Definition LensReview.h:74
AWS_WELLARCHITECTED_API LensReview(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< WorkloadProfile > & GetProfiles() const
Definition LensReview.h:173
LensReview & WithRiskCounts(RiskCountsT &&value)
Definition LensReview.h:153
LensReview & AddPrioritizedRiskCounts(Risk key, int value)
Definition LensReview.h:191
const Aws::Map< Risk, int > & GetPrioritizedRiskCounts() const
Definition LensReview.h:185
LensReview & AddRiskCounts(Risk key, int value)
Definition LensReview.h:154
const Aws::String & GetNextToken() const
Definition LensReview.h:161
void SetNextToken(NextTokenT &&value)
Definition LensReview.h:164
const Aws::String & GetNotes() const
Definition LensReview.h:138
void SetLensAlias(LensAliasT &&value)
Definition LensReview.h:53
const Aws::Map< Risk, int > & GetRiskCounts() const
Definition LensReview.h:148
void SetLensArn(LensArnT &&value)
Definition LensReview.h:65
LensReview & WithUpdatedAt(UpdatedAtT &&value)
Definition LensReview.h:133
LensReview & WithNotes(NotesT &&value)
Definition LensReview.h:143
LensReview & WithLensStatus(LensStatus value)
Definition LensReview.h:99
void SetPillarReviewSummaries(PillarReviewSummariesT &&value)
Definition LensReview.h:107
LensReview & WithLensName(LensNameT &&value)
Definition LensReview.h:89
LensReview & AddProfiles(ProfilesT &&value)
Definition LensReview.h:180
void SetJiraConfiguration(JiraConfigurationT &&value)
Definition LensReview.h:121
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition LensReview.h:128
LensReview & WithLensArn(LensArnT &&value)
Definition LensReview.h:67
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