AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
QuestionMetric.h
1
6#pragma once
7#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/wellarchitected/model/Risk.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/wellarchitected/model/BestPractice.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace WellArchitected
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_WELLARCHITECTED_API QuestionMetric() = default;
39 AWS_WELLARCHITECTED_API QuestionMetric(Aws::Utils::Json::JsonView jsonValue);
40 AWS_WELLARCHITECTED_API QuestionMetric& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
46 inline const Aws::String& GetQuestionId() const { return m_questionId; }
47 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
48 template<typename QuestionIdT = Aws::String>
49 void SetQuestionId(QuestionIdT&& value) { m_questionIdHasBeenSet = true; m_questionId = std::forward<QuestionIdT>(value); }
50 template<typename QuestionIdT = Aws::String>
51 QuestionMetric& WithQuestionId(QuestionIdT&& value) { SetQuestionId(std::forward<QuestionIdT>(value)); return *this;}
53
55
56 inline Risk GetRisk() const { return m_risk; }
57 inline bool RiskHasBeenSet() const { return m_riskHasBeenSet; }
58 inline void SetRisk(Risk value) { m_riskHasBeenSet = true; m_risk = value; }
59 inline QuestionMetric& WithRisk(Risk value) { SetRisk(value); return *this;}
61
63
67 inline const Aws::Vector<BestPractice>& GetBestPractices() const { return m_bestPractices; }
68 inline bool BestPracticesHasBeenSet() const { return m_bestPracticesHasBeenSet; }
69 template<typename BestPracticesT = Aws::Vector<BestPractice>>
70 void SetBestPractices(BestPracticesT&& value) { m_bestPracticesHasBeenSet = true; m_bestPractices = std::forward<BestPracticesT>(value); }
71 template<typename BestPracticesT = Aws::Vector<BestPractice>>
72 QuestionMetric& WithBestPractices(BestPracticesT&& value) { SetBestPractices(std::forward<BestPracticesT>(value)); return *this;}
73 template<typename BestPracticesT = BestPractice>
74 QuestionMetric& AddBestPractices(BestPracticesT&& value) { m_bestPracticesHasBeenSet = true; m_bestPractices.emplace_back(std::forward<BestPracticesT>(value)); return *this; }
76 private:
77
78 Aws::String m_questionId;
79 bool m_questionIdHasBeenSet = false;
80
81 Risk m_risk{Risk::NOT_SET};
82 bool m_riskHasBeenSet = false;
83
84 Aws::Vector<BestPractice> m_bestPractices;
85 bool m_bestPracticesHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace WellArchitected
90} // 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