AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
LensMetric.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
11#include <aws/wellarchitected/model/PillarMetric.h>
12#include <aws/wellarchitected/model/Risk.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WellArchitected {
24namespace Model {
25
32 public:
33 AWS_WELLARCHITECTED_API LensMetric() = default;
34 AWS_WELLARCHITECTED_API LensMetric(Aws::Utils::Json::JsonView jsonValue);
35 AWS_WELLARCHITECTED_API LensMetric& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetLensArn() const { return m_lensArn; }
43 inline bool LensArnHasBeenSet() const { return m_lensArnHasBeenSet; }
44 template <typename LensArnT = Aws::String>
45 void SetLensArn(LensArnT&& value) {
46 m_lensArnHasBeenSet = true;
47 m_lensArn = std::forward<LensArnT>(value);
48 }
49 template <typename LensArnT = Aws::String>
50 LensMetric& WithLensArn(LensArnT&& value) {
51 SetLensArn(std::forward<LensArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<PillarMetric>& GetPillars() const { return m_pillars; }
61 inline bool PillarsHasBeenSet() const { return m_pillarsHasBeenSet; }
62 template <typename PillarsT = Aws::Vector<PillarMetric>>
63 void SetPillars(PillarsT&& value) {
64 m_pillarsHasBeenSet = true;
65 m_pillars = std::forward<PillarsT>(value);
66 }
67 template <typename PillarsT = Aws::Vector<PillarMetric>>
68 LensMetric& WithPillars(PillarsT&& value) {
69 SetPillars(std::forward<PillarsT>(value));
70 return *this;
71 }
72 template <typename PillarsT = PillarMetric>
73 LensMetric& AddPillars(PillarsT&& value) {
74 m_pillarsHasBeenSet = true;
75 m_pillars.emplace_back(std::forward<PillarsT>(value));
76 return *this;
77 }
79
81
82 inline const Aws::Map<Risk, int>& GetRiskCounts() const { return m_riskCounts; }
83 inline bool RiskCountsHasBeenSet() const { return m_riskCountsHasBeenSet; }
84 template <typename RiskCountsT = Aws::Map<Risk, int>>
85 void SetRiskCounts(RiskCountsT&& value) {
86 m_riskCountsHasBeenSet = true;
87 m_riskCounts = std::forward<RiskCountsT>(value);
88 }
89 template <typename RiskCountsT = Aws::Map<Risk, int>>
90 LensMetric& WithRiskCounts(RiskCountsT&& value) {
91 SetRiskCounts(std::forward<RiskCountsT>(value));
92 return *this;
93 }
94 inline LensMetric& AddRiskCounts(Risk key, int value) {
95 m_riskCountsHasBeenSet = true;
96 m_riskCounts.emplace(key, value);
97 return *this;
98 }
100 private:
101 Aws::String m_lensArn;
102 bool m_lensArnHasBeenSet = false;
103
105 bool m_pillarsHasBeenSet = false;
106
107 Aws::Map<Risk, int> m_riskCounts;
108 bool m_riskCountsHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace WellArchitected
113} // namespace Aws
LensMetric & WithLensArn(LensArnT &&value)
Definition LensMetric.h:50
AWS_WELLARCHITECTED_API LensMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Risk, int > & GetRiskCounts() const
Definition LensMetric.h:82
LensMetric & WithPillars(PillarsT &&value)
Definition LensMetric.h:68
void SetLensArn(LensArnT &&value)
Definition LensMetric.h:45
const Aws::Vector< PillarMetric > & GetPillars() const
Definition LensMetric.h:60
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
LensMetric & AddRiskCounts(Risk key, int value)
Definition LensMetric.h:94
void SetPillars(PillarsT &&value)
Definition LensMetric.h:63
LensMetric & WithRiskCounts(RiskCountsT &&value)
Definition LensMetric.h:90
AWS_WELLARCHITECTED_API LensMetric()=default
AWS_WELLARCHITECTED_API LensMetric(Aws::Utils::Json::JsonView jsonValue)
LensMetric & AddPillars(PillarsT &&value)
Definition LensMetric.h:73
void SetRiskCounts(RiskCountsT &&value)
Definition LensMetric.h:85
const Aws::String & GetLensArn() const
Definition LensMetric.h:42
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