AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetQuestionId(const Aws::String& value) { m_questionIdHasBeenSet = true; m_questionId = value; }
49 inline void SetQuestionId(Aws::String&& value) { m_questionIdHasBeenSet = true; m_questionId = std::move(value); }
50 inline void SetQuestionId(const char* value) { m_questionIdHasBeenSet = true; m_questionId.assign(value); }
51 inline QuestionMetric& WithQuestionId(const Aws::String& value) { SetQuestionId(value); return *this;}
52 inline QuestionMetric& WithQuestionId(Aws::String&& value) { SetQuestionId(std::move(value)); return *this;}
53 inline QuestionMetric& WithQuestionId(const char* value) { SetQuestionId(value); return *this;}
55
57
58 inline const Risk& GetRisk() const{ return m_risk; }
59 inline bool RiskHasBeenSet() const { return m_riskHasBeenSet; }
60 inline void SetRisk(const Risk& value) { m_riskHasBeenSet = true; m_risk = value; }
61 inline void SetRisk(Risk&& value) { m_riskHasBeenSet = true; m_risk = std::move(value); }
62 inline QuestionMetric& WithRisk(const Risk& value) { SetRisk(value); return *this;}
63 inline QuestionMetric& WithRisk(Risk&& value) { SetRisk(std::move(value)); return *this;}
65
67
71 inline const Aws::Vector<BestPractice>& GetBestPractices() const{ return m_bestPractices; }
72 inline bool BestPracticesHasBeenSet() const { return m_bestPracticesHasBeenSet; }
73 inline void SetBestPractices(const Aws::Vector<BestPractice>& value) { m_bestPracticesHasBeenSet = true; m_bestPractices = value; }
74 inline void SetBestPractices(Aws::Vector<BestPractice>&& value) { m_bestPracticesHasBeenSet = true; m_bestPractices = std::move(value); }
75 inline QuestionMetric& WithBestPractices(const Aws::Vector<BestPractice>& value) { SetBestPractices(value); return *this;}
76 inline QuestionMetric& WithBestPractices(Aws::Vector<BestPractice>&& value) { SetBestPractices(std::move(value)); return *this;}
77 inline QuestionMetric& AddBestPractices(const BestPractice& value) { m_bestPracticesHasBeenSet = true; m_bestPractices.push_back(value); return *this; }
78 inline QuestionMetric& AddBestPractices(BestPractice&& value) { m_bestPracticesHasBeenSet = true; m_bestPractices.push_back(std::move(value)); return *this; }
80 private:
81
82 Aws::String m_questionId;
83 bool m_questionIdHasBeenSet = false;
84
85 Risk m_risk;
86 bool m_riskHasBeenSet = false;
87
88 Aws::Vector<BestPractice> m_bestPractices;
89 bool m_bestPracticesHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace WellArchitected
94} // namespace Aws
QuestionMetric & AddBestPractices(BestPractice &&value)
AWS_WELLARCHITECTED_API QuestionMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetQuestionId() const
QuestionMetric & WithBestPractices(const Aws::Vector< BestPractice > &value)
AWS_WELLARCHITECTED_API QuestionMetric(Aws::Utils::Json::JsonView jsonValue)
QuestionMetric & WithQuestionId(const char *value)
const Aws::Vector< BestPractice > & GetBestPractices() const
void SetBestPractices(const Aws::Vector< BestPractice > &value)
QuestionMetric & WithBestPractices(Aws::Vector< BestPractice > &&value)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
QuestionMetric & WithQuestionId(const Aws::String &value)
QuestionMetric & WithRisk(Risk &&value)
void SetBestPractices(Aws::Vector< BestPractice > &&value)
QuestionMetric & WithQuestionId(Aws::String &&value)
void SetQuestionId(const Aws::String &value)
QuestionMetric & AddBestPractices(const BestPractice &value)
QuestionMetric & WithRisk(const Risk &value)
AWS_WELLARCHITECTED_API QuestionMetric()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue