AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConsolidatedReportMetric.h
1
6#pragma once
7#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
8#include <aws/wellarchitected/model/MetricType.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/wellarchitected/model/Risk.h>
14#include <aws/wellarchitected/model/LensMetric.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
39 {
40 public:
41 AWS_WELLARCHITECTED_API ConsolidatedReportMetric();
42 AWS_WELLARCHITECTED_API ConsolidatedReportMetric(Aws::Utils::Json::JsonView jsonValue);
44 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const MetricType& GetMetricType() const{ return m_metricType; }
53 inline bool MetricTypeHasBeenSet() const { return m_metricTypeHasBeenSet; }
54 inline void SetMetricType(const MetricType& value) { m_metricTypeHasBeenSet = true; m_metricType = value; }
55 inline void SetMetricType(MetricType&& value) { m_metricTypeHasBeenSet = true; m_metricType = std::move(value); }
56 inline ConsolidatedReportMetric& WithMetricType(const MetricType& value) { SetMetricType(value); return *this;}
57 inline ConsolidatedReportMetric& WithMetricType(MetricType&& value) { SetMetricType(std::move(value)); return *this;}
59
61
62 inline const Aws::Map<Risk, int>& GetRiskCounts() const{ return m_riskCounts; }
63 inline bool RiskCountsHasBeenSet() const { return m_riskCountsHasBeenSet; }
64 inline void SetRiskCounts(const Aws::Map<Risk, int>& value) { m_riskCountsHasBeenSet = true; m_riskCounts = value; }
65 inline void SetRiskCounts(Aws::Map<Risk, int>&& value) { m_riskCountsHasBeenSet = true; m_riskCounts = std::move(value); }
66 inline ConsolidatedReportMetric& WithRiskCounts(const Aws::Map<Risk, int>& value) { SetRiskCounts(value); return *this;}
67 inline ConsolidatedReportMetric& WithRiskCounts(Aws::Map<Risk, int>&& value) { SetRiskCounts(std::move(value)); return *this;}
68 inline ConsolidatedReportMetric& AddRiskCounts(const Risk& key, int value) { m_riskCountsHasBeenSet = true; m_riskCounts.emplace(key, value); return *this; }
69 inline ConsolidatedReportMetric& AddRiskCounts(Risk&& key, int value) { m_riskCountsHasBeenSet = true; m_riskCounts.emplace(std::move(key), value); return *this; }
71
73
74 inline const Aws::String& GetWorkloadId() const{ return m_workloadId; }
75 inline bool WorkloadIdHasBeenSet() const { return m_workloadIdHasBeenSet; }
76 inline void SetWorkloadId(const Aws::String& value) { m_workloadIdHasBeenSet = true; m_workloadId = value; }
77 inline void SetWorkloadId(Aws::String&& value) { m_workloadIdHasBeenSet = true; m_workloadId = std::move(value); }
78 inline void SetWorkloadId(const char* value) { m_workloadIdHasBeenSet = true; m_workloadId.assign(value); }
79 inline ConsolidatedReportMetric& WithWorkloadId(const Aws::String& value) { SetWorkloadId(value); return *this;}
80 inline ConsolidatedReportMetric& WithWorkloadId(Aws::String&& value) { SetWorkloadId(std::move(value)); return *this;}
81 inline ConsolidatedReportMetric& WithWorkloadId(const char* value) { SetWorkloadId(value); return *this;}
83
85
86 inline const Aws::String& GetWorkloadName() const{ return m_workloadName; }
87 inline bool WorkloadNameHasBeenSet() const { return m_workloadNameHasBeenSet; }
88 inline void SetWorkloadName(const Aws::String& value) { m_workloadNameHasBeenSet = true; m_workloadName = value; }
89 inline void SetWorkloadName(Aws::String&& value) { m_workloadNameHasBeenSet = true; m_workloadName = std::move(value); }
90 inline void SetWorkloadName(const char* value) { m_workloadNameHasBeenSet = true; m_workloadName.assign(value); }
91 inline ConsolidatedReportMetric& WithWorkloadName(const Aws::String& value) { SetWorkloadName(value); return *this;}
92 inline ConsolidatedReportMetric& WithWorkloadName(Aws::String&& value) { SetWorkloadName(std::move(value)); return *this;}
93 inline ConsolidatedReportMetric& WithWorkloadName(const char* value) { SetWorkloadName(value); return *this;}
95
97
98 inline const Aws::String& GetWorkloadArn() const{ return m_workloadArn; }
99 inline bool WorkloadArnHasBeenSet() const { return m_workloadArnHasBeenSet; }
100 inline void SetWorkloadArn(const Aws::String& value) { m_workloadArnHasBeenSet = true; m_workloadArn = value; }
101 inline void SetWorkloadArn(Aws::String&& value) { m_workloadArnHasBeenSet = true; m_workloadArn = std::move(value); }
102 inline void SetWorkloadArn(const char* value) { m_workloadArnHasBeenSet = true; m_workloadArn.assign(value); }
103 inline ConsolidatedReportMetric& WithWorkloadArn(const Aws::String& value) { SetWorkloadArn(value); return *this;}
104 inline ConsolidatedReportMetric& WithWorkloadArn(Aws::String&& value) { SetWorkloadArn(std::move(value)); return *this;}
105 inline ConsolidatedReportMetric& WithWorkloadArn(const char* value) { SetWorkloadArn(value); return *this;}
107
109
110 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
111 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
112 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
113 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
114 inline ConsolidatedReportMetric& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
115 inline ConsolidatedReportMetric& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
117
119
122 inline const Aws::Vector<LensMetric>& GetLenses() const{ return m_lenses; }
123 inline bool LensesHasBeenSet() const { return m_lensesHasBeenSet; }
124 inline void SetLenses(const Aws::Vector<LensMetric>& value) { m_lensesHasBeenSet = true; m_lenses = value; }
125 inline void SetLenses(Aws::Vector<LensMetric>&& value) { m_lensesHasBeenSet = true; m_lenses = std::move(value); }
126 inline ConsolidatedReportMetric& WithLenses(const Aws::Vector<LensMetric>& value) { SetLenses(value); return *this;}
127 inline ConsolidatedReportMetric& WithLenses(Aws::Vector<LensMetric>&& value) { SetLenses(std::move(value)); return *this;}
128 inline ConsolidatedReportMetric& AddLenses(const LensMetric& value) { m_lensesHasBeenSet = true; m_lenses.push_back(value); return *this; }
129 inline ConsolidatedReportMetric& AddLenses(LensMetric&& value) { m_lensesHasBeenSet = true; m_lenses.push_back(std::move(value)); return *this; }
131
133
136 inline int GetLensesAppliedCount() const{ return m_lensesAppliedCount; }
137 inline bool LensesAppliedCountHasBeenSet() const { return m_lensesAppliedCountHasBeenSet; }
138 inline void SetLensesAppliedCount(int value) { m_lensesAppliedCountHasBeenSet = true; m_lensesAppliedCount = value; }
141 private:
142
143 MetricType m_metricType;
144 bool m_metricTypeHasBeenSet = false;
145
146 Aws::Map<Risk, int> m_riskCounts;
147 bool m_riskCountsHasBeenSet = false;
148
149 Aws::String m_workloadId;
150 bool m_workloadIdHasBeenSet = false;
151
152 Aws::String m_workloadName;
153 bool m_workloadNameHasBeenSet = false;
154
155 Aws::String m_workloadArn;
156 bool m_workloadArnHasBeenSet = false;
157
158 Aws::Utils::DateTime m_updatedAt;
159 bool m_updatedAtHasBeenSet = false;
160
162 bool m_lensesHasBeenSet = false;
163
164 int m_lensesAppliedCount;
165 bool m_lensesAppliedCountHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace WellArchitected
170} // namespace Aws
ConsolidatedReportMetric & AddRiskCounts(const Risk &key, int value)
ConsolidatedReportMetric & WithWorkloadId(Aws::String &&value)
ConsolidatedReportMetric & WithWorkloadArn(const Aws::String &value)
AWS_WELLARCHITECTED_API ConsolidatedReportMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
ConsolidatedReportMetric & WithWorkloadArn(Aws::String &&value)
ConsolidatedReportMetric & WithRiskCounts(const Aws::Map< Risk, int > &value)
ConsolidatedReportMetric & WithWorkloadId(const Aws::String &value)
ConsolidatedReportMetric & AddRiskCounts(Risk &&key, int value)
ConsolidatedReportMetric & WithLenses(const Aws::Vector< LensMetric > &value)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
ConsolidatedReportMetric & WithMetricType(const MetricType &value)
AWS_WELLARCHITECTED_API ConsolidatedReportMetric(Aws::Utils::Json::JsonView jsonValue)
ConsolidatedReportMetric & WithWorkloadArn(const char *value)
ConsolidatedReportMetric & WithWorkloadName(const char *value)
void SetLenses(const Aws::Vector< LensMetric > &value)
ConsolidatedReportMetric & WithWorkloadId(const char *value)
ConsolidatedReportMetric & AddLenses(const LensMetric &value)
ConsolidatedReportMetric & AddLenses(LensMetric &&value)
void SetRiskCounts(const Aws::Map< Risk, int > &value)
ConsolidatedReportMetric & WithLenses(Aws::Vector< LensMetric > &&value)
ConsolidatedReportMetric & WithWorkloadName(Aws::String &&value)
ConsolidatedReportMetric & WithWorkloadName(const Aws::String &value)
ConsolidatedReportMetric & WithUpdatedAt(Aws::Utils::DateTime &&value)
ConsolidatedReportMetric & WithMetricType(MetricType &&value)
ConsolidatedReportMetric & WithUpdatedAt(const Aws::Utils::DateTime &value)
ConsolidatedReportMetric & WithRiskCounts(Aws::Map< Risk, 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