AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
LensMetric.h
1
6#pragma once
7#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/wellarchitected/model/PillarMetric.h>
12#include <aws/wellarchitected/model/Risk.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace WellArchitected
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_WELLARCHITECTED_API LensMetric() = default;
39 AWS_WELLARCHITECTED_API LensMetric(Aws::Utils::Json::JsonView jsonValue);
40 AWS_WELLARCHITECTED_API LensMetric& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetLensArn() const { return m_lensArn; }
49 inline bool LensArnHasBeenSet() const { return m_lensArnHasBeenSet; }
50 template<typename LensArnT = Aws::String>
51 void SetLensArn(LensArnT&& value) { m_lensArnHasBeenSet = true; m_lensArn = std::forward<LensArnT>(value); }
52 template<typename LensArnT = Aws::String>
53 LensMetric& WithLensArn(LensArnT&& value) { SetLensArn(std::forward<LensArnT>(value)); return *this;}
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) { m_pillarsHasBeenSet = true; m_pillars = std::forward<PillarsT>(value); }
64 template<typename PillarsT = Aws::Vector<PillarMetric>>
65 LensMetric& WithPillars(PillarsT&& value) { SetPillars(std::forward<PillarsT>(value)); return *this;}
66 template<typename PillarsT = PillarMetric>
67 LensMetric& AddPillars(PillarsT&& value) { m_pillarsHasBeenSet = true; m_pillars.emplace_back(std::forward<PillarsT>(value)); return *this; }
69
71
72 inline const Aws::Map<Risk, int>& GetRiskCounts() const { return m_riskCounts; }
73 inline bool RiskCountsHasBeenSet() const { return m_riskCountsHasBeenSet; }
74 template<typename RiskCountsT = Aws::Map<Risk, int>>
75 void SetRiskCounts(RiskCountsT&& value) { m_riskCountsHasBeenSet = true; m_riskCounts = std::forward<RiskCountsT>(value); }
76 template<typename RiskCountsT = Aws::Map<Risk, int>>
77 LensMetric& WithRiskCounts(RiskCountsT&& value) { SetRiskCounts(std::forward<RiskCountsT>(value)); return *this;}
78 inline LensMetric& AddRiskCounts(Risk key, int value) {
79 m_riskCountsHasBeenSet = true; m_riskCounts.emplace(key, value); return *this;
80 }
82 private:
83
84 Aws::String m_lensArn;
85 bool m_lensArnHasBeenSet = false;
86
88 bool m_pillarsHasBeenSet = false;
89
90 Aws::Map<Risk, int> m_riskCounts;
91 bool m_riskCountsHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace WellArchitected
96} // namespace Aws
LensMetric & WithLensArn(LensArnT &&value)
Definition LensMetric.h:53
AWS_WELLARCHITECTED_API LensMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Risk, int > & GetRiskCounts() const
Definition LensMetric.h:72
LensMetric & WithPillars(PillarsT &&value)
Definition LensMetric.h:65
void SetLensArn(LensArnT &&value)
Definition LensMetric.h:51
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:78
void SetPillars(PillarsT &&value)
Definition LensMetric.h:63
LensMetric & WithRiskCounts(RiskCountsT &&value)
Definition LensMetric.h:77
AWS_WELLARCHITECTED_API LensMetric()=default
AWS_WELLARCHITECTED_API LensMetric(Aws::Utils::Json::JsonView jsonValue)
LensMetric & AddPillars(PillarsT &&value)
Definition LensMetric.h:67
void SetRiskCounts(RiskCountsT &&value)
Definition LensMetric.h:75
const Aws::String & GetLensArn() const
Definition LensMetric.h:48
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