AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AnswerSummary.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/wellarchitected/model/Risk.h>
11#include <aws/wellarchitected/model/AnswerReason.h>
12#include <aws/wellarchitected/model/QuestionType.h>
13#include <aws/wellarchitected/model/JiraConfiguration.h>
14#include <aws/wellarchitected/model/Choice.h>
15#include <aws/wellarchitected/model/ChoiceAnswerSummary.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace WellArchitected
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_WELLARCHITECTED_API AnswerSummary() = default;
43 AWS_WELLARCHITECTED_API AnswerSummary(Aws::Utils::Json::JsonView jsonValue);
44 AWS_WELLARCHITECTED_API AnswerSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
50 inline const Aws::String& GetQuestionId() const { return m_questionId; }
51 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
52 template<typename QuestionIdT = Aws::String>
53 void SetQuestionId(QuestionIdT&& value) { m_questionIdHasBeenSet = true; m_questionId = std::forward<QuestionIdT>(value); }
54 template<typename QuestionIdT = Aws::String>
55 AnswerSummary& WithQuestionId(QuestionIdT&& value) { SetQuestionId(std::forward<QuestionIdT>(value)); return *this;}
57
59
60 inline const Aws::String& GetPillarId() const { return m_pillarId; }
61 inline bool PillarIdHasBeenSet() const { return m_pillarIdHasBeenSet; }
62 template<typename PillarIdT = Aws::String>
63 void SetPillarId(PillarIdT&& value) { m_pillarIdHasBeenSet = true; m_pillarId = std::forward<PillarIdT>(value); }
64 template<typename PillarIdT = Aws::String>
65 AnswerSummary& WithPillarId(PillarIdT&& value) { SetPillarId(std::forward<PillarIdT>(value)); return *this;}
67
69
70 inline const Aws::String& GetQuestionTitle() const { return m_questionTitle; }
71 inline bool QuestionTitleHasBeenSet() const { return m_questionTitleHasBeenSet; }
72 template<typename QuestionTitleT = Aws::String>
73 void SetQuestionTitle(QuestionTitleT&& value) { m_questionTitleHasBeenSet = true; m_questionTitle = std::forward<QuestionTitleT>(value); }
74 template<typename QuestionTitleT = Aws::String>
75 AnswerSummary& WithQuestionTitle(QuestionTitleT&& value) { SetQuestionTitle(std::forward<QuestionTitleT>(value)); return *this;}
77
79
80 inline const Aws::Vector<Choice>& GetChoices() const { return m_choices; }
81 inline bool ChoicesHasBeenSet() const { return m_choicesHasBeenSet; }
82 template<typename ChoicesT = Aws::Vector<Choice>>
83 void SetChoices(ChoicesT&& value) { m_choicesHasBeenSet = true; m_choices = std::forward<ChoicesT>(value); }
84 template<typename ChoicesT = Aws::Vector<Choice>>
85 AnswerSummary& WithChoices(ChoicesT&& value) { SetChoices(std::forward<ChoicesT>(value)); return *this;}
86 template<typename ChoicesT = Choice>
87 AnswerSummary& AddChoices(ChoicesT&& value) { m_choicesHasBeenSet = true; m_choices.emplace_back(std::forward<ChoicesT>(value)); return *this; }
89
91
92 inline const Aws::Vector<Aws::String>& GetSelectedChoices() const { return m_selectedChoices; }
93 inline bool SelectedChoicesHasBeenSet() const { return m_selectedChoicesHasBeenSet; }
94 template<typename SelectedChoicesT = Aws::Vector<Aws::String>>
95 void SetSelectedChoices(SelectedChoicesT&& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices = std::forward<SelectedChoicesT>(value); }
96 template<typename SelectedChoicesT = Aws::Vector<Aws::String>>
97 AnswerSummary& WithSelectedChoices(SelectedChoicesT&& value) { SetSelectedChoices(std::forward<SelectedChoicesT>(value)); return *this;}
98 template<typename SelectedChoicesT = Aws::String>
99 AnswerSummary& AddSelectedChoices(SelectedChoicesT&& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices.emplace_back(std::forward<SelectedChoicesT>(value)); return *this; }
101
103
106 inline const Aws::Vector<ChoiceAnswerSummary>& GetChoiceAnswerSummaries() const { return m_choiceAnswerSummaries; }
107 inline bool ChoiceAnswerSummariesHasBeenSet() const { return m_choiceAnswerSummariesHasBeenSet; }
108 template<typename ChoiceAnswerSummariesT = Aws::Vector<ChoiceAnswerSummary>>
109 void SetChoiceAnswerSummaries(ChoiceAnswerSummariesT&& value) { m_choiceAnswerSummariesHasBeenSet = true; m_choiceAnswerSummaries = std::forward<ChoiceAnswerSummariesT>(value); }
110 template<typename ChoiceAnswerSummariesT = Aws::Vector<ChoiceAnswerSummary>>
111 AnswerSummary& WithChoiceAnswerSummaries(ChoiceAnswerSummariesT&& value) { SetChoiceAnswerSummaries(std::forward<ChoiceAnswerSummariesT>(value)); return *this;}
112 template<typename ChoiceAnswerSummariesT = ChoiceAnswerSummary>
113 AnswerSummary& AddChoiceAnswerSummaries(ChoiceAnswerSummariesT&& value) { m_choiceAnswerSummariesHasBeenSet = true; m_choiceAnswerSummaries.emplace_back(std::forward<ChoiceAnswerSummariesT>(value)); return *this; }
115
117
118 inline bool GetIsApplicable() const { return m_isApplicable; }
119 inline bool IsApplicableHasBeenSet() const { return m_isApplicableHasBeenSet; }
120 inline void SetIsApplicable(bool value) { m_isApplicableHasBeenSet = true; m_isApplicable = value; }
121 inline AnswerSummary& WithIsApplicable(bool value) { SetIsApplicable(value); return *this;}
123
125
126 inline Risk GetRisk() const { return m_risk; }
127 inline bool RiskHasBeenSet() const { return m_riskHasBeenSet; }
128 inline void SetRisk(Risk value) { m_riskHasBeenSet = true; m_risk = value; }
129 inline AnswerSummary& WithRisk(Risk value) { SetRisk(value); return *this;}
131
133
136 inline AnswerReason GetReason() const { return m_reason; }
137 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
138 inline void SetReason(AnswerReason value) { m_reasonHasBeenSet = true; m_reason = value; }
139 inline AnswerSummary& WithReason(AnswerReason value) { SetReason(value); return *this;}
141
143
146 inline QuestionType GetQuestionType() const { return m_questionType; }
147 inline bool QuestionTypeHasBeenSet() const { return m_questionTypeHasBeenSet; }
148 inline void SetQuestionType(QuestionType value) { m_questionTypeHasBeenSet = true; m_questionType = value; }
149 inline AnswerSummary& WithQuestionType(QuestionType value) { SetQuestionType(value); return *this;}
151
153
156 inline const JiraConfiguration& GetJiraConfiguration() const { return m_jiraConfiguration; }
157 inline bool JiraConfigurationHasBeenSet() const { return m_jiraConfigurationHasBeenSet; }
158 template<typename JiraConfigurationT = JiraConfiguration>
159 void SetJiraConfiguration(JiraConfigurationT&& value) { m_jiraConfigurationHasBeenSet = true; m_jiraConfiguration = std::forward<JiraConfigurationT>(value); }
160 template<typename JiraConfigurationT = JiraConfiguration>
161 AnswerSummary& WithJiraConfiguration(JiraConfigurationT&& value) { SetJiraConfiguration(std::forward<JiraConfigurationT>(value)); return *this;}
163 private:
164
165 Aws::String m_questionId;
166 bool m_questionIdHasBeenSet = false;
167
168 Aws::String m_pillarId;
169 bool m_pillarIdHasBeenSet = false;
170
171 Aws::String m_questionTitle;
172 bool m_questionTitleHasBeenSet = false;
173
174 Aws::Vector<Choice> m_choices;
175 bool m_choicesHasBeenSet = false;
176
177 Aws::Vector<Aws::String> m_selectedChoices;
178 bool m_selectedChoicesHasBeenSet = false;
179
180 Aws::Vector<ChoiceAnswerSummary> m_choiceAnswerSummaries;
181 bool m_choiceAnswerSummariesHasBeenSet = false;
182
183 bool m_isApplicable{false};
184 bool m_isApplicableHasBeenSet = false;
185
186 Risk m_risk{Risk::NOT_SET};
187 bool m_riskHasBeenSet = false;
188
190 bool m_reasonHasBeenSet = false;
191
192 QuestionType m_questionType{QuestionType::NOT_SET};
193 bool m_questionTypeHasBeenSet = false;
194
195 JiraConfiguration m_jiraConfiguration;
196 bool m_jiraConfigurationHasBeenSet = false;
197 };
198
199} // namespace Model
200} // namespace WellArchitected
201} // namespace Aws
AnswerSummary & WithQuestionType(QuestionType value)
void SetSelectedChoices(SelectedChoicesT &&value)
const Aws::Vector< Aws::String > & GetSelectedChoices() const
AnswerSummary & WithJiraConfiguration(JiraConfigurationT &&value)
AnswerSummary & WithChoiceAnswerSummaries(ChoiceAnswerSummariesT &&value)
const Aws::Vector< ChoiceAnswerSummary > & GetChoiceAnswerSummaries() const
void SetChoiceAnswerSummaries(ChoiceAnswerSummariesT &&value)
void SetJiraConfiguration(JiraConfigurationT &&value)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetPillarId() const
AWS_WELLARCHITECTED_API AnswerSummary()=default
AnswerSummary & AddChoiceAnswerSummaries(ChoiceAnswerSummariesT &&value)
const Aws::Vector< Choice > & GetChoices() const
AWS_WELLARCHITECTED_API AnswerSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AnswerSummary & WithIsApplicable(bool value)
const Aws::String & GetQuestionTitle() const
const JiraConfiguration & GetJiraConfiguration() const
void SetQuestionId(QuestionIdT &&value)
AnswerSummary & AddSelectedChoices(SelectedChoicesT &&value)
AnswerSummary & WithSelectedChoices(SelectedChoicesT &&value)
AnswerSummary & WithQuestionTitle(QuestionTitleT &&value)
AnswerSummary & WithPillarId(PillarIdT &&value)
AnswerSummary & WithChoices(ChoicesT &&value)
void SetQuestionTitle(QuestionTitleT &&value)
AnswerSummary & WithReason(AnswerReason value)
AnswerSummary & WithQuestionId(QuestionIdT &&value)
AWS_WELLARCHITECTED_API AnswerSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetQuestionId() const
AnswerSummary & AddChoices(ChoicesT &&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