AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLensAlias(const Aws::String& value) { m_lensAliasHasBeenSet = true; m_lensAlias = value; }
51 inline void SetLensAlias(Aws::String&& value) { m_lensAliasHasBeenSet = true; m_lensAlias = std::move(value); }
52 inline void SetLensAlias(const char* value) { m_lensAliasHasBeenSet = true; m_lensAlias.assign(value); }
53 inline LensReviewSummary& WithLensAlias(const Aws::String& value) { SetLensAlias(value); return *this;}
54 inline LensReviewSummary& WithLensAlias(Aws::String&& value) { SetLensAlias(std::move(value)); return *this;}
55 inline LensReviewSummary& WithLensAlias(const char* value) { SetLensAlias(value); return *this;}
57
59
62 inline const Aws::String& GetLensArn() const{ return m_lensArn; }
63 inline bool LensArnHasBeenSet() const { return m_lensArnHasBeenSet; }
64 inline void SetLensArn(const Aws::String& value) { m_lensArnHasBeenSet = true; m_lensArn = value; }
65 inline void SetLensArn(Aws::String&& value) { m_lensArnHasBeenSet = true; m_lensArn = std::move(value); }
66 inline void SetLensArn(const char* value) { m_lensArnHasBeenSet = true; m_lensArn.assign(value); }
67 inline LensReviewSummary& WithLensArn(const Aws::String& value) { SetLensArn(value); return *this;}
68 inline LensReviewSummary& WithLensArn(Aws::String&& value) { SetLensArn(std::move(value)); return *this;}
69 inline LensReviewSummary& WithLensArn(const char* value) { SetLensArn(value); return *this;}
71
73
76 inline const Aws::String& GetLensVersion() const{ return m_lensVersion; }
77 inline bool LensVersionHasBeenSet() const { return m_lensVersionHasBeenSet; }
78 inline void SetLensVersion(const Aws::String& value) { m_lensVersionHasBeenSet = true; m_lensVersion = value; }
79 inline void SetLensVersion(Aws::String&& value) { m_lensVersionHasBeenSet = true; m_lensVersion = std::move(value); }
80 inline void SetLensVersion(const char* value) { m_lensVersionHasBeenSet = true; m_lensVersion.assign(value); }
81 inline LensReviewSummary& WithLensVersion(const Aws::String& value) { SetLensVersion(value); return *this;}
82 inline LensReviewSummary& WithLensVersion(Aws::String&& value) { SetLensVersion(std::move(value)); return *this;}
83 inline LensReviewSummary& WithLensVersion(const char* value) { SetLensVersion(value); return *this;}
85
87
88 inline const Aws::String& GetLensName() const{ return m_lensName; }
89 inline bool LensNameHasBeenSet() const { return m_lensNameHasBeenSet; }
90 inline void SetLensName(const Aws::String& value) { m_lensNameHasBeenSet = true; m_lensName = value; }
91 inline void SetLensName(Aws::String&& value) { m_lensNameHasBeenSet = true; m_lensName = std::move(value); }
92 inline void SetLensName(const char* value) { m_lensNameHasBeenSet = true; m_lensName.assign(value); }
93 inline LensReviewSummary& WithLensName(const Aws::String& value) { SetLensName(value); return *this;}
94 inline LensReviewSummary& WithLensName(Aws::String&& value) { SetLensName(std::move(value)); return *this;}
95 inline LensReviewSummary& WithLensName(const char* value) { SetLensName(value); return *this;}
97
99
102 inline const LensStatus& GetLensStatus() const{ return m_lensStatus; }
103 inline bool LensStatusHasBeenSet() const { return m_lensStatusHasBeenSet; }
104 inline void SetLensStatus(const LensStatus& value) { m_lensStatusHasBeenSet = true; m_lensStatus = value; }
105 inline void SetLensStatus(LensStatus&& value) { m_lensStatusHasBeenSet = true; m_lensStatus = std::move(value); }
106 inline LensReviewSummary& WithLensStatus(const LensStatus& value) { SetLensStatus(value); return *this;}
107 inline LensReviewSummary& WithLensStatus(LensStatus&& value) { SetLensStatus(std::move(value)); return *this;}
109
111
112 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
113 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
114 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
115 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
116 inline LensReviewSummary& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
117 inline LensReviewSummary& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
119
121
122 inline const Aws::Map<Risk, int>& GetRiskCounts() const{ return m_riskCounts; }
123 inline bool RiskCountsHasBeenSet() const { return m_riskCountsHasBeenSet; }
124 inline void SetRiskCounts(const Aws::Map<Risk, int>& value) { m_riskCountsHasBeenSet = true; m_riskCounts = value; }
125 inline void SetRiskCounts(Aws::Map<Risk, int>&& value) { m_riskCountsHasBeenSet = true; m_riskCounts = std::move(value); }
126 inline LensReviewSummary& WithRiskCounts(const Aws::Map<Risk, int>& value) { SetRiskCounts(value); return *this;}
127 inline LensReviewSummary& WithRiskCounts(Aws::Map<Risk, int>&& value) { SetRiskCounts(std::move(value)); return *this;}
128 inline LensReviewSummary& AddRiskCounts(const Risk& key, int value) { m_riskCountsHasBeenSet = true; m_riskCounts.emplace(key, value); return *this; }
129 inline LensReviewSummary& AddRiskCounts(Risk&& key, int value) { m_riskCountsHasBeenSet = true; m_riskCounts.emplace(std::move(key), value); return *this; }
131
133
136 inline const Aws::Vector<WorkloadProfile>& GetProfiles() const{ return m_profiles; }
137 inline bool ProfilesHasBeenSet() const { return m_profilesHasBeenSet; }
138 inline void SetProfiles(const Aws::Vector<WorkloadProfile>& value) { m_profilesHasBeenSet = true; m_profiles = value; }
139 inline void SetProfiles(Aws::Vector<WorkloadProfile>&& value) { m_profilesHasBeenSet = true; m_profiles = std::move(value); }
140 inline LensReviewSummary& WithProfiles(const Aws::Vector<WorkloadProfile>& value) { SetProfiles(value); return *this;}
141 inline LensReviewSummary& WithProfiles(Aws::Vector<WorkloadProfile>&& value) { SetProfiles(std::move(value)); return *this;}
142 inline LensReviewSummary& AddProfiles(const WorkloadProfile& value) { m_profilesHasBeenSet = true; m_profiles.push_back(value); return *this; }
143 inline LensReviewSummary& AddProfiles(WorkloadProfile&& value) { m_profilesHasBeenSet = true; m_profiles.push_back(std::move(value)); return *this; }
145
147
148 inline const Aws::Map<Risk, int>& GetPrioritizedRiskCounts() const{ return m_prioritizedRiskCounts; }
149 inline bool PrioritizedRiskCountsHasBeenSet() const { return m_prioritizedRiskCountsHasBeenSet; }
150 inline void SetPrioritizedRiskCounts(const Aws::Map<Risk, int>& value) { m_prioritizedRiskCountsHasBeenSet = true; m_prioritizedRiskCounts = value; }
151 inline void SetPrioritizedRiskCounts(Aws::Map<Risk, int>&& value) { m_prioritizedRiskCountsHasBeenSet = true; m_prioritizedRiskCounts = std::move(value); }
154 inline LensReviewSummary& AddPrioritizedRiskCounts(const Risk& key, int value) { m_prioritizedRiskCountsHasBeenSet = true; m_prioritizedRiskCounts.emplace(key, value); return *this; }
155 inline LensReviewSummary& AddPrioritizedRiskCounts(Risk&& key, int value) { m_prioritizedRiskCountsHasBeenSet = true; m_prioritizedRiskCounts.emplace(std::move(key), value); return *this; }
157 private:
158
159 Aws::String m_lensAlias;
160 bool m_lensAliasHasBeenSet = false;
161
162 Aws::String m_lensArn;
163 bool m_lensArnHasBeenSet = false;
164
165 Aws::String m_lensVersion;
166 bool m_lensVersionHasBeenSet = false;
167
168 Aws::String m_lensName;
169 bool m_lensNameHasBeenSet = false;
170
171 LensStatus m_lensStatus;
172 bool m_lensStatusHasBeenSet = false;
173
174 Aws::Utils::DateTime m_updatedAt;
175 bool m_updatedAtHasBeenSet = false;
176
177 Aws::Map<Risk, int> m_riskCounts;
178 bool m_riskCountsHasBeenSet = false;
179
181 bool m_profilesHasBeenSet = false;
182
183 Aws::Map<Risk, int> m_prioritizedRiskCounts;
184 bool m_prioritizedRiskCountsHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace WellArchitected
189} // namespace Aws
void SetRiskCounts(const Aws::Map< Risk, int > &value)
LensReviewSummary & AddProfiles(const WorkloadProfile &value)
LensReviewSummary & WithRiskCounts(const Aws::Map< Risk, int > &value)
LensReviewSummary & AddPrioritizedRiskCounts(const Risk &key, int value)
void SetPrioritizedRiskCounts(Aws::Map< Risk, int > &&value)
const Aws::Vector< WorkloadProfile > & GetProfiles() const
LensReviewSummary & WithLensArn(const Aws::String &value)
LensReviewSummary & WithLensName(const Aws::String &value)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
LensReviewSummary & WithLensStatus(const LensStatus &value)
LensReviewSummary & WithLensAlias(Aws::String &&value)
LensReviewSummary & AddRiskCounts(const Risk &key, int value)
const Aws::Map< Risk, int > & GetPrioritizedRiskCounts() const
void SetProfiles(const Aws::Vector< WorkloadProfile > &value)
LensReviewSummary & WithProfiles(const Aws::Vector< WorkloadProfile > &value)
LensReviewSummary & WithLensArn(const char *value)
AWS_WELLARCHITECTED_API LensReviewSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Risk, int > & GetRiskCounts() const
LensReviewSummary & WithRiskCounts(Aws::Map< Risk, int > &&value)
LensReviewSummary & WithLensArn(Aws::String &&value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
LensReviewSummary & WithLensVersion(Aws::String &&value)
LensReviewSummary & WithLensStatus(LensStatus &&value)
LensReviewSummary & AddRiskCounts(Risk &&key, int value)
LensReviewSummary & WithLensVersion(const Aws::String &value)
LensReviewSummary & AddProfiles(WorkloadProfile &&value)
void SetLensVersion(const Aws::String &value)
LensReviewSummary & WithPrioritizedRiskCounts(const Aws::Map< Risk, int > &value)
LensReviewSummary & WithLensVersion(const char *value)
LensReviewSummary & WithLensName(const char *value)
LensReviewSummary & WithUpdatedAt(Aws::Utils::DateTime &&value)
LensReviewSummary & WithLensAlias(const char *value)
LensReviewSummary & WithProfiles(Aws::Vector< WorkloadProfile > &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetPrioritizedRiskCounts(const Aws::Map< Risk, int > &value)
LensReviewSummary & WithPrioritizedRiskCounts(Aws::Map< Risk, int > &&value)
LensReviewSummary & WithLensName(Aws::String &&value)
LensReviewSummary & WithLensAlias(const Aws::String &value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
LensReviewSummary & WithUpdatedAt(const Aws::Utils::DateTime &value)
LensReviewSummary & AddPrioritizedRiskCounts(Risk &&key, int value)
void SetProfiles(Aws::Vector< WorkloadProfile > &&value)
void SetRiskCounts(Aws::Map< Risk, int > &&value)
AWS_WELLARCHITECTED_API LensReviewSummary(Aws::Utils::Json::JsonView jsonValue)
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