AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ConsolidatedReportMetric.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/LensMetric.h>
13#include <aws/wellarchitected/model/MetricType.h>
14#include <aws/wellarchitected/model/Risk.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
35 public:
36 AWS_WELLARCHITECTED_API ConsolidatedReportMetric() = default;
37 AWS_WELLARCHITECTED_API ConsolidatedReportMetric(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline MetricType GetMetricType() const { return m_metricType; }
47 inline bool MetricTypeHasBeenSet() const { return m_metricTypeHasBeenSet; }
48 inline void SetMetricType(MetricType value) {
49 m_metricTypeHasBeenSet = true;
50 m_metricType = value;
51 }
53 SetMetricType(value);
54 return *this;
55 }
57
59
60 inline const Aws::Map<Risk, int>& GetRiskCounts() const { return m_riskCounts; }
61 inline bool RiskCountsHasBeenSet() const { return m_riskCountsHasBeenSet; }
62 template <typename RiskCountsT = Aws::Map<Risk, int>>
63 void SetRiskCounts(RiskCountsT&& value) {
64 m_riskCountsHasBeenSet = true;
65 m_riskCounts = std::forward<RiskCountsT>(value);
66 }
67 template <typename RiskCountsT = Aws::Map<Risk, int>>
69 SetRiskCounts(std::forward<RiskCountsT>(value));
70 return *this;
71 }
73 m_riskCountsHasBeenSet = true;
74 m_riskCounts.emplace(key, value);
75 return *this;
76 }
78
80
81 inline const Aws::String& GetWorkloadId() const { return m_workloadId; }
82 inline bool WorkloadIdHasBeenSet() const { return m_workloadIdHasBeenSet; }
83 template <typename WorkloadIdT = Aws::String>
84 void SetWorkloadId(WorkloadIdT&& value) {
85 m_workloadIdHasBeenSet = true;
86 m_workloadId = std::forward<WorkloadIdT>(value);
87 }
88 template <typename WorkloadIdT = Aws::String>
90 SetWorkloadId(std::forward<WorkloadIdT>(value));
91 return *this;
92 }
94
96
97 inline const Aws::String& GetWorkloadName() const { return m_workloadName; }
98 inline bool WorkloadNameHasBeenSet() const { return m_workloadNameHasBeenSet; }
99 template <typename WorkloadNameT = Aws::String>
100 void SetWorkloadName(WorkloadNameT&& value) {
101 m_workloadNameHasBeenSet = true;
102 m_workloadName = std::forward<WorkloadNameT>(value);
103 }
104 template <typename WorkloadNameT = Aws::String>
106 SetWorkloadName(std::forward<WorkloadNameT>(value));
107 return *this;
108 }
110
112
113 inline const Aws::String& GetWorkloadArn() const { return m_workloadArn; }
114 inline bool WorkloadArnHasBeenSet() const { return m_workloadArnHasBeenSet; }
115 template <typename WorkloadArnT = Aws::String>
116 void SetWorkloadArn(WorkloadArnT&& value) {
117 m_workloadArnHasBeenSet = true;
118 m_workloadArn = std::forward<WorkloadArnT>(value);
119 }
120 template <typename WorkloadArnT = Aws::String>
122 SetWorkloadArn(std::forward<WorkloadArnT>(value));
123 return *this;
124 }
126
128
129 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
130 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
131 template <typename UpdatedAtT = Aws::Utils::DateTime>
132 void SetUpdatedAt(UpdatedAtT&& value) {
133 m_updatedAtHasBeenSet = true;
134 m_updatedAt = std::forward<UpdatedAtT>(value);
135 }
136 template <typename UpdatedAtT = Aws::Utils::DateTime>
138 SetUpdatedAt(std::forward<UpdatedAtT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::Vector<LensMetric>& GetLenses() const { return m_lenses; }
148 inline bool LensesHasBeenSet() const { return m_lensesHasBeenSet; }
149 template <typename LensesT = Aws::Vector<LensMetric>>
150 void SetLenses(LensesT&& value) {
151 m_lensesHasBeenSet = true;
152 m_lenses = std::forward<LensesT>(value);
153 }
154 template <typename LensesT = Aws::Vector<LensMetric>>
156 SetLenses(std::forward<LensesT>(value));
157 return *this;
158 }
159 template <typename LensesT = LensMetric>
161 m_lensesHasBeenSet = true;
162 m_lenses.emplace_back(std::forward<LensesT>(value));
163 return *this;
164 }
166
168
171 inline int GetLensesAppliedCount() const { return m_lensesAppliedCount; }
172 inline bool LensesAppliedCountHasBeenSet() const { return m_lensesAppliedCountHasBeenSet; }
173 inline void SetLensesAppliedCount(int value) {
174 m_lensesAppliedCountHasBeenSet = true;
175 m_lensesAppliedCount = value;
176 }
179 return *this;
180 }
182 private:
183 MetricType m_metricType{MetricType::NOT_SET};
184
185 Aws::Map<Risk, int> m_riskCounts;
186
187 Aws::String m_workloadId;
188
189 Aws::String m_workloadName;
190
191 Aws::String m_workloadArn;
192
193 Aws::Utils::DateTime m_updatedAt{};
194
196
197 int m_lensesAppliedCount{0};
198 bool m_metricTypeHasBeenSet = false;
199 bool m_riskCountsHasBeenSet = false;
200 bool m_workloadIdHasBeenSet = false;
201 bool m_workloadNameHasBeenSet = false;
202 bool m_workloadArnHasBeenSet = false;
203 bool m_updatedAtHasBeenSet = false;
204 bool m_lensesHasBeenSet = false;
205 bool m_lensesAppliedCountHasBeenSet = false;
206};
207
208} // namespace Model
209} // namespace WellArchitected
210} // namespace Aws
ConsolidatedReportMetric & WithWorkloadName(WorkloadNameT &&value)
ConsolidatedReportMetric & AddLenses(LensesT &&value)
ConsolidatedReportMetric & WithUpdatedAt(UpdatedAtT &&value)
AWS_WELLARCHITECTED_API ConsolidatedReportMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
ConsolidatedReportMetric & WithLenses(LensesT &&value)
ConsolidatedReportMetric & WithWorkloadId(WorkloadIdT &&value)
ConsolidatedReportMetric & WithWorkloadArn(WorkloadArnT &&value)
AWS_WELLARCHITECTED_API ConsolidatedReportMetric()=default
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WELLARCHITECTED_API ConsolidatedReportMetric(Aws::Utils::Json::JsonView jsonValue)
ConsolidatedReportMetric & WithRiskCounts(RiskCountsT &&value)
ConsolidatedReportMetric & WithMetricType(MetricType value)
ConsolidatedReportMetric & AddRiskCounts(Risk key, int value)
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