AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
QuestionMetric.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
10#include <aws/wellarchitected/model/BestPractice.h>
11#include <aws/wellarchitected/model/Risk.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WellArchitected {
23namespace Model {
24
32 public:
33 AWS_WELLARCHITECTED_API QuestionMetric() = default;
34 AWS_WELLARCHITECTED_API QuestionMetric(Aws::Utils::Json::JsonView jsonValue);
35 AWS_WELLARCHITECTED_API QuestionMetric& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
40 inline const Aws::String& GetQuestionId() const { return m_questionId; }
41 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
42 template <typename QuestionIdT = Aws::String>
43 void SetQuestionId(QuestionIdT&& value) {
44 m_questionIdHasBeenSet = true;
45 m_questionId = std::forward<QuestionIdT>(value);
46 }
47 template <typename QuestionIdT = Aws::String>
48 QuestionMetric& WithQuestionId(QuestionIdT&& value) {
49 SetQuestionId(std::forward<QuestionIdT>(value));
50 return *this;
51 }
53
55
56 inline Risk GetRisk() const { return m_risk; }
57 inline bool RiskHasBeenSet() const { return m_riskHasBeenSet; }
58 inline void SetRisk(Risk value) {
59 m_riskHasBeenSet = true;
60 m_risk = value;
61 }
62 inline QuestionMetric& WithRisk(Risk value) {
63 SetRisk(value);
64 return *this;
65 }
67
69
73 inline const Aws::Vector<BestPractice>& GetBestPractices() const { return m_bestPractices; }
74 inline bool BestPracticesHasBeenSet() const { return m_bestPracticesHasBeenSet; }
75 template <typename BestPracticesT = Aws::Vector<BestPractice>>
76 void SetBestPractices(BestPracticesT&& value) {
77 m_bestPracticesHasBeenSet = true;
78 m_bestPractices = std::forward<BestPracticesT>(value);
79 }
80 template <typename BestPracticesT = Aws::Vector<BestPractice>>
81 QuestionMetric& WithBestPractices(BestPracticesT&& value) {
82 SetBestPractices(std::forward<BestPracticesT>(value));
83 return *this;
84 }
85 template <typename BestPracticesT = BestPractice>
86 QuestionMetric& AddBestPractices(BestPracticesT&& value) {
87 m_bestPracticesHasBeenSet = true;
88 m_bestPractices.emplace_back(std::forward<BestPracticesT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_questionId;
94
95 Risk m_risk{Risk::NOT_SET};
96
97 Aws::Vector<BestPractice> m_bestPractices;
98 bool m_questionIdHasBeenSet = false;
99 bool m_riskHasBeenSet = false;
100 bool m_bestPracticesHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace WellArchitected
105} // namespace Aws
AWS_WELLARCHITECTED_API QuestionMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
QuestionMetric & AddBestPractices(BestPracticesT &&value)
const Aws::String & GetQuestionId() const
AWS_WELLARCHITECTED_API QuestionMetric(Aws::Utils::Json::JsonView jsonValue)
void SetBestPractices(BestPracticesT &&value)
QuestionMetric & WithRisk(Risk value)
const Aws::Vector< BestPractice > & GetBestPractices() const
QuestionMetric & WithQuestionId(QuestionIdT &&value)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WELLARCHITECTED_API QuestionMetric()=default
QuestionMetric & WithBestPractices(BestPracticesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue