AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLensArn(const Aws::String& value) { m_lensArnHasBeenSet = true; m_lensArn = value; }
51 inline void SetLensArn(Aws::String&& value) { m_lensArnHasBeenSet = true; m_lensArn = std::move(value); }
52 inline void SetLensArn(const char* value) { m_lensArnHasBeenSet = true; m_lensArn.assign(value); }
53 inline LensMetric& WithLensArn(const Aws::String& value) { SetLensArn(value); return *this;}
54 inline LensMetric& WithLensArn(Aws::String&& value) { SetLensArn(std::move(value)); return *this;}
55 inline LensMetric& WithLensArn(const char* value) { SetLensArn(value); return *this;}
57
59
62 inline const Aws::Vector<PillarMetric>& GetPillars() const{ return m_pillars; }
63 inline bool PillarsHasBeenSet() const { return m_pillarsHasBeenSet; }
64 inline void SetPillars(const Aws::Vector<PillarMetric>& value) { m_pillarsHasBeenSet = true; m_pillars = value; }
65 inline void SetPillars(Aws::Vector<PillarMetric>&& value) { m_pillarsHasBeenSet = true; m_pillars = std::move(value); }
66 inline LensMetric& WithPillars(const Aws::Vector<PillarMetric>& value) { SetPillars(value); return *this;}
67 inline LensMetric& WithPillars(Aws::Vector<PillarMetric>&& value) { SetPillars(std::move(value)); return *this;}
68 inline LensMetric& AddPillars(const PillarMetric& value) { m_pillarsHasBeenSet = true; m_pillars.push_back(value); return *this; }
69 inline LensMetric& AddPillars(PillarMetric&& value) { m_pillarsHasBeenSet = true; m_pillars.push_back(std::move(value)); return *this; }
71
73
74 inline const Aws::Map<Risk, int>& GetRiskCounts() const{ return m_riskCounts; }
75 inline bool RiskCountsHasBeenSet() const { return m_riskCountsHasBeenSet; }
76 inline void SetRiskCounts(const Aws::Map<Risk, int>& value) { m_riskCountsHasBeenSet = true; m_riskCounts = value; }
77 inline void SetRiskCounts(Aws::Map<Risk, int>&& value) { m_riskCountsHasBeenSet = true; m_riskCounts = std::move(value); }
78 inline LensMetric& WithRiskCounts(const Aws::Map<Risk, int>& value) { SetRiskCounts(value); return *this;}
79 inline LensMetric& WithRiskCounts(Aws::Map<Risk, int>&& value) { SetRiskCounts(std::move(value)); return *this;}
80 inline LensMetric& AddRiskCounts(const Risk& key, int value) { m_riskCountsHasBeenSet = true; m_riskCounts.emplace(key, value); return *this; }
81 inline LensMetric& AddRiskCounts(Risk&& key, int value) { m_riskCountsHasBeenSet = true; m_riskCounts.emplace(std::move(key), value); return *this; }
83 private:
84
85 Aws::String m_lensArn;
86 bool m_lensArnHasBeenSet = false;
87
89 bool m_pillarsHasBeenSet = false;
90
91 Aws::Map<Risk, int> m_riskCounts;
92 bool m_riskCountsHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace WellArchitected
97} // namespace Aws
void SetPillars(const Aws::Vector< PillarMetric > &value)
Definition LensMetric.h:64
LensMetric & AddRiskCounts(const Risk &key, int value)
Definition LensMetric.h:80
void SetRiskCounts(Aws::Map< Risk, int > &&value)
Definition LensMetric.h:77
void SetLensArn(const Aws::String &value)
Definition LensMetric.h:50
LensMetric & WithRiskCounts(Aws::Map< Risk, int > &&value)
Definition LensMetric.h:79
AWS_WELLARCHITECTED_API LensMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
LensMetric & WithPillars(const Aws::Vector< PillarMetric > &value)
Definition LensMetric.h:66
const Aws::Map< Risk, int > & GetRiskCounts() const
Definition LensMetric.h:74
LensMetric & WithPillars(Aws::Vector< PillarMetric > &&value)
Definition LensMetric.h:67
AWS_WELLARCHITECTED_API LensMetric()
LensMetric & AddRiskCounts(Risk &&key, int value)
Definition LensMetric.h:81
LensMetric & WithLensArn(const char *value)
Definition LensMetric.h:55
const Aws::Vector< PillarMetric > & GetPillars() const
Definition LensMetric.h:62
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLensArn(Aws::String &&value)
Definition LensMetric.h:51
LensMetric & AddPillars(const PillarMetric &value)
Definition LensMetric.h:68
void SetPillars(Aws::Vector< PillarMetric > &&value)
Definition LensMetric.h:65
LensMetric & WithLensArn(const Aws::String &value)
Definition LensMetric.h:53
AWS_WELLARCHITECTED_API LensMetric(Aws::Utils::Json::JsonView jsonValue)
void SetRiskCounts(const Aws::Map< Risk, int > &value)
Definition LensMetric.h:76
LensMetric & AddPillars(PillarMetric &&value)
Definition LensMetric.h:69
LensMetric & WithRiskCounts(const Aws::Map< Risk, int > &value)
Definition LensMetric.h:78
LensMetric & WithLensArn(Aws::String &&value)
Definition LensMetric.h:54
void SetLensArn(const char *value)
Definition LensMetric.h:52
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