AWS SDK for C++

AWS SDK for C++ Version 1.11.875

Loading...
Searching...
No Matches
LensReviewSummary.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/LensStatus.h>
13#include <aws/wellarchitected/model/Risk.h>
14#include <aws/wellarchitected/model/WorkloadProfile.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace WellArchitected {
26namespace Model {
27
34 public:
35 AWS_WELLARCHITECTED_API LensReviewSummary() = default;
36 AWS_WELLARCHITECTED_API LensReviewSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_WELLARCHITECTED_API LensReviewSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
42 inline const Aws::String& GetLensAlias() const { return m_lensAlias; }
43 inline bool LensAliasHasBeenSet() const { return m_lensAliasHasBeenSet; }
44 template <typename LensAliasT = Aws::String>
45 void SetLensAlias(LensAliasT&& value) {
46 m_lensAliasHasBeenSet = true;
47 m_lensAlias = std::forward<LensAliasT>(value);
48 }
49 template <typename LensAliasT = Aws::String>
50 LensReviewSummary& WithLensAlias(LensAliasT&& value) {
51 SetLensAlias(std::forward<LensAliasT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetLensArn() const { return m_lensArn; }
61 inline bool LensArnHasBeenSet() const { return m_lensArnHasBeenSet; }
62 template <typename LensArnT = Aws::String>
63 void SetLensArn(LensArnT&& value) {
64 m_lensArnHasBeenSet = true;
65 m_lensArn = std::forward<LensArnT>(value);
66 }
67 template <typename LensArnT = Aws::String>
68 LensReviewSummary& WithLensArn(LensArnT&& value) {
69 SetLensArn(std::forward<LensArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetLensVersion() const { return m_lensVersion; }
79 inline bool LensVersionHasBeenSet() const { return m_lensVersionHasBeenSet; }
80 template <typename LensVersionT = Aws::String>
81 void SetLensVersion(LensVersionT&& value) {
82 m_lensVersionHasBeenSet = true;
83 m_lensVersion = std::forward<LensVersionT>(value);
84 }
85 template <typename LensVersionT = Aws::String>
86 LensReviewSummary& WithLensVersion(LensVersionT&& value) {
87 SetLensVersion(std::forward<LensVersionT>(value));
88 return *this;
89 }
91
93
94 inline const Aws::String& GetLensName() const { return m_lensName; }
95 inline bool LensNameHasBeenSet() const { return m_lensNameHasBeenSet; }
96 template <typename LensNameT = Aws::String>
97 void SetLensName(LensNameT&& value) {
98 m_lensNameHasBeenSet = true;
99 m_lensName = std::forward<LensNameT>(value);
100 }
101 template <typename LensNameT = Aws::String>
102 LensReviewSummary& WithLensName(LensNameT&& value) {
103 SetLensName(std::forward<LensNameT>(value));
104 return *this;
105 }
107
109
112 inline LensStatus GetLensStatus() const { return m_lensStatus; }
113 inline bool LensStatusHasBeenSet() const { return m_lensStatusHasBeenSet; }
114 inline void SetLensStatus(LensStatus value) {
115 m_lensStatusHasBeenSet = true;
116 m_lensStatus = value;
117 }
119 SetLensStatus(value);
120 return *this;
121 }
123
125
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) {
132 m_updatedAtHasBeenSet = true;
133 m_updatedAt = std::forward<UpdatedAtT>(value);
134 }
135 template <typename UpdatedAtT = Aws::Utils::DateTime>
136 LensReviewSummary& WithUpdatedAt(UpdatedAtT&& value) {
137 SetUpdatedAt(std::forward<UpdatedAtT>(value));
138 return *this;
139 }
141
143
144 inline const Aws::Map<Risk, int>& GetRiskCounts() const { return m_riskCounts; }
145 inline bool RiskCountsHasBeenSet() const { return m_riskCountsHasBeenSet; }
146 template <typename RiskCountsT = Aws::Map<Risk, int>>
147 void SetRiskCounts(RiskCountsT&& value) {
148 m_riskCountsHasBeenSet = true;
149 m_riskCounts = std::forward<RiskCountsT>(value);
150 }
151 template <typename RiskCountsT = Aws::Map<Risk, int>>
152 LensReviewSummary& WithRiskCounts(RiskCountsT&& value) {
153 SetRiskCounts(std::forward<RiskCountsT>(value));
154 return *this;
155 }
156 inline LensReviewSummary& AddRiskCounts(Risk key, int value) {
157 m_riskCountsHasBeenSet = true;
158 m_riskCounts.emplace(key, value);
159 return *this;
160 }
162
164
167 inline const Aws::Vector<WorkloadProfile>& GetProfiles() const { return m_profiles; }
168 inline bool ProfilesHasBeenSet() const { return m_profilesHasBeenSet; }
169 template <typename ProfilesT = Aws::Vector<WorkloadProfile>>
170 void SetProfiles(ProfilesT&& value) {
171 m_profilesHasBeenSet = true;
172 m_profiles = std::forward<ProfilesT>(value);
173 }
174 template <typename ProfilesT = Aws::Vector<WorkloadProfile>>
175 LensReviewSummary& WithProfiles(ProfilesT&& value) {
176 SetProfiles(std::forward<ProfilesT>(value));
177 return *this;
178 }
179 template <typename ProfilesT = WorkloadProfile>
180 LensReviewSummary& AddProfiles(ProfilesT&& value) {
181 m_profilesHasBeenSet = true;
182 m_profiles.emplace_back(std::forward<ProfilesT>(value));
183 return *this;
184 }
186
188
189 inline const Aws::Map<Risk, int>& GetPrioritizedRiskCounts() const { return m_prioritizedRiskCounts; }
190 inline bool PrioritizedRiskCountsHasBeenSet() const { return m_prioritizedRiskCountsHasBeenSet; }
191 template <typename PrioritizedRiskCountsT = Aws::Map<Risk, int>>
192 void SetPrioritizedRiskCounts(PrioritizedRiskCountsT&& value) {
193 m_prioritizedRiskCountsHasBeenSet = true;
194 m_prioritizedRiskCounts = std::forward<PrioritizedRiskCountsT>(value);
195 }
196 template <typename PrioritizedRiskCountsT = Aws::Map<Risk, int>>
197 LensReviewSummary& WithPrioritizedRiskCounts(PrioritizedRiskCountsT&& value) {
198 SetPrioritizedRiskCounts(std::forward<PrioritizedRiskCountsT>(value));
199 return *this;
200 }
202 m_prioritizedRiskCountsHasBeenSet = true;
203 m_prioritizedRiskCounts.emplace(key, value);
204 return *this;
205 }
207 private:
208 Aws::String m_lensAlias;
209
210 Aws::String m_lensArn;
211
212 Aws::String m_lensVersion;
213
214 Aws::String m_lensName;
215
216 LensStatus m_lensStatus{LensStatus::NOT_SET};
217
218 Aws::Utils::DateTime m_updatedAt{};
219
220 Aws::Map<Risk, int> m_riskCounts;
221
223
224 Aws::Map<Risk, int> m_prioritizedRiskCounts;
225 bool m_lensAliasHasBeenSet = false;
226 bool m_lensArnHasBeenSet = false;
227 bool m_lensVersionHasBeenSet = false;
228 bool m_lensNameHasBeenSet = false;
229 bool m_lensStatusHasBeenSet = false;
230 bool m_updatedAtHasBeenSet = false;
231 bool m_riskCountsHasBeenSet = false;
232 bool m_profilesHasBeenSet = false;
233 bool m_prioritizedRiskCountsHasBeenSet = false;
234};
235
236} // namespace Model
237} // namespace WellArchitected
238} // namespace Aws
LensReviewSummary & WithLensArn(LensArnT &&value)
LensReviewSummary & WithLensStatus(LensStatus value)
const Aws::Vector< WorkloadProfile > & GetProfiles() const
LensReviewSummary & WithPrioritizedRiskCounts(PrioritizedRiskCountsT &&value)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Risk, int > & GetPrioritizedRiskCounts() const
AWS_WELLARCHITECTED_API LensReviewSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Risk, int > & GetRiskCounts() const
LensReviewSummary & WithLensVersion(LensVersionT &&value)
LensReviewSummary & AddProfiles(ProfilesT &&value)
LensReviewSummary & AddPrioritizedRiskCounts(Risk key, int value)
LensReviewSummary & WithLensName(LensNameT &&value)
LensReviewSummary & WithProfiles(ProfilesT &&value)
void SetPrioritizedRiskCounts(PrioritizedRiskCountsT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
LensReviewSummary & WithUpdatedAt(UpdatedAtT &&value)
LensReviewSummary & WithLensAlias(LensAliasT &&value)
LensReviewSummary & WithRiskCounts(RiskCountsT &&value)
LensReviewSummary & AddRiskCounts(Risk key, int value)
AWS_WELLARCHITECTED_API LensReviewSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_WELLARCHITECTED_API LensReviewSummary()=default
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