AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PillarMetric.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/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/wellarchitected/model/Risk.h>
12#include <aws/wellarchitected/model/QuestionMetric.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 PillarMetric();
39 AWS_WELLARCHITECTED_API PillarMetric(Aws::Utils::Json::JsonView jsonValue);
40 AWS_WELLARCHITECTED_API PillarMetric& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
46 inline const Aws::String& GetPillarId() const{ return m_pillarId; }
47 inline bool PillarIdHasBeenSet() const { return m_pillarIdHasBeenSet; }
48 inline void SetPillarId(const Aws::String& value) { m_pillarIdHasBeenSet = true; m_pillarId = value; }
49 inline void SetPillarId(Aws::String&& value) { m_pillarIdHasBeenSet = true; m_pillarId = std::move(value); }
50 inline void SetPillarId(const char* value) { m_pillarIdHasBeenSet = true; m_pillarId.assign(value); }
51 inline PillarMetric& WithPillarId(const Aws::String& value) { SetPillarId(value); return *this;}
52 inline PillarMetric& WithPillarId(Aws::String&& value) { SetPillarId(std::move(value)); return *this;}
53 inline PillarMetric& WithPillarId(const char* value) { SetPillarId(value); return *this;}
55
57
58 inline const Aws::Map<Risk, int>& GetRiskCounts() const{ return m_riskCounts; }
59 inline bool RiskCountsHasBeenSet() const { return m_riskCountsHasBeenSet; }
60 inline void SetRiskCounts(const Aws::Map<Risk, int>& value) { m_riskCountsHasBeenSet = true; m_riskCounts = value; }
61 inline void SetRiskCounts(Aws::Map<Risk, int>&& value) { m_riskCountsHasBeenSet = true; m_riskCounts = std::move(value); }
62 inline PillarMetric& WithRiskCounts(const Aws::Map<Risk, int>& value) { SetRiskCounts(value); return *this;}
63 inline PillarMetric& WithRiskCounts(Aws::Map<Risk, int>&& value) { SetRiskCounts(std::move(value)); return *this;}
64 inline PillarMetric& AddRiskCounts(const Risk& key, int value) { m_riskCountsHasBeenSet = true; m_riskCounts.emplace(key, value); return *this; }
65 inline PillarMetric& AddRiskCounts(Risk&& key, int value) { m_riskCountsHasBeenSet = true; m_riskCounts.emplace(std::move(key), value); return *this; }
67
69
72 inline const Aws::Vector<QuestionMetric>& GetQuestions() const{ return m_questions; }
73 inline bool QuestionsHasBeenSet() const { return m_questionsHasBeenSet; }
74 inline void SetQuestions(const Aws::Vector<QuestionMetric>& value) { m_questionsHasBeenSet = true; m_questions = value; }
75 inline void SetQuestions(Aws::Vector<QuestionMetric>&& value) { m_questionsHasBeenSet = true; m_questions = std::move(value); }
76 inline PillarMetric& WithQuestions(const Aws::Vector<QuestionMetric>& value) { SetQuestions(value); return *this;}
77 inline PillarMetric& WithQuestions(Aws::Vector<QuestionMetric>&& value) { SetQuestions(std::move(value)); return *this;}
78 inline PillarMetric& AddQuestions(const QuestionMetric& value) { m_questionsHasBeenSet = true; m_questions.push_back(value); return *this; }
79 inline PillarMetric& AddQuestions(QuestionMetric&& value) { m_questionsHasBeenSet = true; m_questions.push_back(std::move(value)); return *this; }
81 private:
82
83 Aws::String m_pillarId;
84 bool m_pillarIdHasBeenSet = false;
85
86 Aws::Map<Risk, int> m_riskCounts;
87 bool m_riskCountsHasBeenSet = false;
88
90 bool m_questionsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace WellArchitected
95} // namespace Aws
PillarMetric & AddQuestions(QuestionMetric &&value)
const Aws::String & GetPillarId() const
AWS_WELLARCHITECTED_API PillarMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRiskCounts(const Aws::Map< Risk, int > &value)
PillarMetric & WithQuestions(const Aws::Vector< QuestionMetric > &value)
void SetQuestions(const Aws::Vector< QuestionMetric > &value)
void SetRiskCounts(Aws::Map< Risk, int > &&value)
PillarMetric & AddQuestions(const QuestionMetric &value)
PillarMetric & WithPillarId(Aws::String &&value)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
PillarMetric & AddRiskCounts(const Risk &key, int value)
PillarMetric & WithRiskCounts(Aws::Map< Risk, int > &&value)
PillarMetric & WithPillarId(const Aws::String &value)
AWS_WELLARCHITECTED_API PillarMetric()
PillarMetric & WithRiskCounts(const Aws::Map< Risk, int > &value)
void SetPillarId(Aws::String &&value)
PillarMetric & WithPillarId(const char *value)
void SetQuestions(Aws::Vector< QuestionMetric > &&value)
const Aws::Map< Risk, int > & GetRiskCounts() const
void SetPillarId(const Aws::String &value)
const Aws::Vector< QuestionMetric > & GetQuestions() const
AWS_WELLARCHITECTED_API PillarMetric(Aws::Utils::Json::JsonView jsonValue)
PillarMetric & AddRiskCounts(Risk &&key, int value)
PillarMetric & WithQuestions(Aws::Vector< QuestionMetric > &&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