AWS SDK for C++

AWS SDK for C++ Version 1.11.740

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
126 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
127 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
128 template <typename UpdatedAtT = Aws::Utils::DateTime>
129 void SetUpdatedAt(UpdatedAtT&& value) {
130 m_updatedAtHasBeenSet = true;
131 m_updatedAt = std::forward<UpdatedAtT>(value);
132 }
133 template <typename UpdatedAtT = Aws::Utils::DateTime>
134 LensReviewSummary& WithUpdatedAt(UpdatedAtT&& value) {
135 SetUpdatedAt(std::forward<UpdatedAtT>(value));
136 return *this;
137 }
139
141
142 inline const Aws::Map<Risk, int>& GetRiskCounts() const { return m_riskCounts; }
143 inline bool RiskCountsHasBeenSet() const { return m_riskCountsHasBeenSet; }
144 template <typename RiskCountsT = Aws::Map<Risk, int>>
145 void SetRiskCounts(RiskCountsT&& value) {
146 m_riskCountsHasBeenSet = true;
147 m_riskCounts = std::forward<RiskCountsT>(value);
148 }
149 template <typename RiskCountsT = Aws::Map<Risk, int>>
150 LensReviewSummary& WithRiskCounts(RiskCountsT&& value) {
151 SetRiskCounts(std::forward<RiskCountsT>(value));
152 return *this;
153 }
154 inline LensReviewSummary& AddRiskCounts(Risk key, int value) {
155 m_riskCountsHasBeenSet = true;
156 m_riskCounts.emplace(key, value);
157 return *this;
158 }
160
162
165 inline const Aws::Vector<WorkloadProfile>& GetProfiles() const { return m_profiles; }
166 inline bool ProfilesHasBeenSet() const { return m_profilesHasBeenSet; }
167 template <typename ProfilesT = Aws::Vector<WorkloadProfile>>
168 void SetProfiles(ProfilesT&& value) {
169 m_profilesHasBeenSet = true;
170 m_profiles = std::forward<ProfilesT>(value);
171 }
172 template <typename ProfilesT = Aws::Vector<WorkloadProfile>>
173 LensReviewSummary& WithProfiles(ProfilesT&& value) {
174 SetProfiles(std::forward<ProfilesT>(value));
175 return *this;
176 }
177 template <typename ProfilesT = WorkloadProfile>
178 LensReviewSummary& AddProfiles(ProfilesT&& value) {
179 m_profilesHasBeenSet = true;
180 m_profiles.emplace_back(std::forward<ProfilesT>(value));
181 return *this;
182 }
184
186
187 inline const Aws::Map<Risk, int>& GetPrioritizedRiskCounts() const { return m_prioritizedRiskCounts; }
188 inline bool PrioritizedRiskCountsHasBeenSet() const { return m_prioritizedRiskCountsHasBeenSet; }
189 template <typename PrioritizedRiskCountsT = Aws::Map<Risk, int>>
190 void SetPrioritizedRiskCounts(PrioritizedRiskCountsT&& value) {
191 m_prioritizedRiskCountsHasBeenSet = true;
192 m_prioritizedRiskCounts = std::forward<PrioritizedRiskCountsT>(value);
193 }
194 template <typename PrioritizedRiskCountsT = Aws::Map<Risk, int>>
195 LensReviewSummary& WithPrioritizedRiskCounts(PrioritizedRiskCountsT&& value) {
196 SetPrioritizedRiskCounts(std::forward<PrioritizedRiskCountsT>(value));
197 return *this;
198 }
200 m_prioritizedRiskCountsHasBeenSet = true;
201 m_prioritizedRiskCounts.emplace(key, value);
202 return *this;
203 }
205 private:
206 Aws::String m_lensAlias;
207
208 Aws::String m_lensArn;
209
210 Aws::String m_lensVersion;
211
212 Aws::String m_lensName;
213
214 LensStatus m_lensStatus{LensStatus::NOT_SET};
215
216 Aws::Utils::DateTime m_updatedAt{};
217
218 Aws::Map<Risk, int> m_riskCounts;
219
221
222 Aws::Map<Risk, int> m_prioritizedRiskCounts;
223 bool m_lensAliasHasBeenSet = false;
224 bool m_lensArnHasBeenSet = false;
225 bool m_lensVersionHasBeenSet = false;
226 bool m_lensNameHasBeenSet = false;
227 bool m_lensStatusHasBeenSet = false;
228 bool m_updatedAtHasBeenSet = false;
229 bool m_riskCountsHasBeenSet = false;
230 bool m_profilesHasBeenSet = false;
231 bool m_prioritizedRiskCountsHasBeenSet = false;
232};
233
234} // namespace Model
235} // namespace WellArchitected
236} // 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