AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
LensReviewSummary.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/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/wellarchitected/model/Risk.h>
14#include <aws/wellarchitected/model/WorkloadProfile.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace WellArchitected
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_WELLARCHITECTED_API LensReviewSummary() = default;
41 AWS_WELLARCHITECTED_API LensReviewSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_WELLARCHITECTED_API LensReviewSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
48 inline const Aws::String& GetLensAlias() const { return m_lensAlias; }
49 inline bool LensAliasHasBeenSet() const { return m_lensAliasHasBeenSet; }
50 template<typename LensAliasT = Aws::String>
51 void SetLensAlias(LensAliasT&& value) { m_lensAliasHasBeenSet = true; m_lensAlias = std::forward<LensAliasT>(value); }
52 template<typename LensAliasT = Aws::String>
53 LensReviewSummary& WithLensAlias(LensAliasT&& value) { SetLensAlias(std::forward<LensAliasT>(value)); return *this;}
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) { m_lensArnHasBeenSet = true; m_lensArn = std::forward<LensArnT>(value); }
64 template<typename LensArnT = Aws::String>
65 LensReviewSummary& WithLensArn(LensArnT&& value) { SetLensArn(std::forward<LensArnT>(value)); return *this;}
67
69
72 inline const Aws::String& GetLensVersion() const { return m_lensVersion; }
73 inline bool LensVersionHasBeenSet() const { return m_lensVersionHasBeenSet; }
74 template<typename LensVersionT = Aws::String>
75 void SetLensVersion(LensVersionT&& value) { m_lensVersionHasBeenSet = true; m_lensVersion = std::forward<LensVersionT>(value); }
76 template<typename LensVersionT = Aws::String>
77 LensReviewSummary& WithLensVersion(LensVersionT&& value) { SetLensVersion(std::forward<LensVersionT>(value)); return *this;}
79
81
82 inline const Aws::String& GetLensName() const { return m_lensName; }
83 inline bool LensNameHasBeenSet() const { return m_lensNameHasBeenSet; }
84 template<typename LensNameT = Aws::String>
85 void SetLensName(LensNameT&& value) { m_lensNameHasBeenSet = true; m_lensName = std::forward<LensNameT>(value); }
86 template<typename LensNameT = Aws::String>
87 LensReviewSummary& WithLensName(LensNameT&& value) { SetLensName(std::forward<LensNameT>(value)); return *this;}
89
91
94 inline LensStatus GetLensStatus() const { return m_lensStatus; }
95 inline bool LensStatusHasBeenSet() const { return m_lensStatusHasBeenSet; }
96 inline void SetLensStatus(LensStatus value) { m_lensStatusHasBeenSet = true; m_lensStatus = value; }
97 inline LensReviewSummary& WithLensStatus(LensStatus value) { SetLensStatus(value); return *this;}
99
101
102 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
103 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
104 template<typename UpdatedAtT = Aws::Utils::DateTime>
105 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
106 template<typename UpdatedAtT = Aws::Utils::DateTime>
107 LensReviewSummary& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
109
111
112 inline const Aws::Map<Risk, int>& GetRiskCounts() const { return m_riskCounts; }
113 inline bool RiskCountsHasBeenSet() const { return m_riskCountsHasBeenSet; }
114 template<typename RiskCountsT = Aws::Map<Risk, int>>
115 void SetRiskCounts(RiskCountsT&& value) { m_riskCountsHasBeenSet = true; m_riskCounts = std::forward<RiskCountsT>(value); }
116 template<typename RiskCountsT = Aws::Map<Risk, int>>
117 LensReviewSummary& WithRiskCounts(RiskCountsT&& value) { SetRiskCounts(std::forward<RiskCountsT>(value)); return *this;}
118 inline LensReviewSummary& AddRiskCounts(Risk key, int value) {
119 m_riskCountsHasBeenSet = true; m_riskCounts.emplace(key, value); return *this;
120 }
122
124
127 inline const Aws::Vector<WorkloadProfile>& GetProfiles() const { return m_profiles; }
128 inline bool ProfilesHasBeenSet() const { return m_profilesHasBeenSet; }
129 template<typename ProfilesT = Aws::Vector<WorkloadProfile>>
130 void SetProfiles(ProfilesT&& value) { m_profilesHasBeenSet = true; m_profiles = std::forward<ProfilesT>(value); }
131 template<typename ProfilesT = Aws::Vector<WorkloadProfile>>
132 LensReviewSummary& WithProfiles(ProfilesT&& value) { SetProfiles(std::forward<ProfilesT>(value)); return *this;}
133 template<typename ProfilesT = WorkloadProfile>
134 LensReviewSummary& AddProfiles(ProfilesT&& value) { m_profilesHasBeenSet = true; m_profiles.emplace_back(std::forward<ProfilesT>(value)); return *this; }
136
138
139 inline const Aws::Map<Risk, int>& GetPrioritizedRiskCounts() const { return m_prioritizedRiskCounts; }
140 inline bool PrioritizedRiskCountsHasBeenSet() const { return m_prioritizedRiskCountsHasBeenSet; }
141 template<typename PrioritizedRiskCountsT = Aws::Map<Risk, int>>
142 void SetPrioritizedRiskCounts(PrioritizedRiskCountsT&& value) { m_prioritizedRiskCountsHasBeenSet = true; m_prioritizedRiskCounts = std::forward<PrioritizedRiskCountsT>(value); }
143 template<typename PrioritizedRiskCountsT = Aws::Map<Risk, int>>
144 LensReviewSummary& WithPrioritizedRiskCounts(PrioritizedRiskCountsT&& value) { SetPrioritizedRiskCounts(std::forward<PrioritizedRiskCountsT>(value)); return *this;}
146 m_prioritizedRiskCountsHasBeenSet = true; m_prioritizedRiskCounts.emplace(key, value); return *this;
147 }
149 private:
150
151 Aws::String m_lensAlias;
152 bool m_lensAliasHasBeenSet = false;
153
154 Aws::String m_lensArn;
155 bool m_lensArnHasBeenSet = false;
156
157 Aws::String m_lensVersion;
158 bool m_lensVersionHasBeenSet = false;
159
160 Aws::String m_lensName;
161 bool m_lensNameHasBeenSet = false;
162
163 LensStatus m_lensStatus{LensStatus::NOT_SET};
164 bool m_lensStatusHasBeenSet = false;
165
166 Aws::Utils::DateTime m_updatedAt{};
167 bool m_updatedAtHasBeenSet = false;
168
169 Aws::Map<Risk, int> m_riskCounts;
170 bool m_riskCountsHasBeenSet = false;
171
173 bool m_profilesHasBeenSet = false;
174
175 Aws::Map<Risk, int> m_prioritizedRiskCounts;
176 bool m_prioritizedRiskCountsHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace WellArchitected
181} // 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