AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
Answer.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/AnswerReason.h>
11#include <aws/wellarchitected/model/Choice.h>
12#include <aws/wellarchitected/model/ChoiceAnswer.h>
13#include <aws/wellarchitected/model/JiraConfiguration.h>
14#include <aws/wellarchitected/model/Risk.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace WellArchitected {
26namespace Model {
27
33class Answer {
34 public:
35 AWS_WELLARCHITECTED_API Answer() = default;
36 AWS_WELLARCHITECTED_API Answer(Aws::Utils::Json::JsonView jsonValue);
37 AWS_WELLARCHITECTED_API Answer& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
42 inline const Aws::String& GetQuestionId() const { return m_questionId; }
43 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
44 template <typename QuestionIdT = Aws::String>
45 void SetQuestionId(QuestionIdT&& value) {
46 m_questionIdHasBeenSet = true;
47 m_questionId = std::forward<QuestionIdT>(value);
48 }
49 template <typename QuestionIdT = Aws::String>
50 Answer& WithQuestionId(QuestionIdT&& value) {
51 SetQuestionId(std::forward<QuestionIdT>(value));
52 return *this;
53 }
55
57
58 inline const Aws::String& GetPillarId() const { return m_pillarId; }
59 inline bool PillarIdHasBeenSet() const { return m_pillarIdHasBeenSet; }
60 template <typename PillarIdT = Aws::String>
61 void SetPillarId(PillarIdT&& value) {
62 m_pillarIdHasBeenSet = true;
63 m_pillarId = std::forward<PillarIdT>(value);
64 }
65 template <typename PillarIdT = Aws::String>
66 Answer& WithPillarId(PillarIdT&& value) {
67 SetPillarId(std::forward<PillarIdT>(value));
68 return *this;
69 }
71
73
74 inline const Aws::String& GetQuestionTitle() const { return m_questionTitle; }
75 inline bool QuestionTitleHasBeenSet() const { return m_questionTitleHasBeenSet; }
76 template <typename QuestionTitleT = Aws::String>
77 void SetQuestionTitle(QuestionTitleT&& value) {
78 m_questionTitleHasBeenSet = true;
79 m_questionTitle = std::forward<QuestionTitleT>(value);
80 }
81 template <typename QuestionTitleT = Aws::String>
82 Answer& WithQuestionTitle(QuestionTitleT&& value) {
83 SetQuestionTitle(std::forward<QuestionTitleT>(value));
84 return *this;
85 }
87
89
90 inline const Aws::String& GetQuestionDescription() const { return m_questionDescription; }
91 inline bool QuestionDescriptionHasBeenSet() const { return m_questionDescriptionHasBeenSet; }
92 template <typename QuestionDescriptionT = Aws::String>
93 void SetQuestionDescription(QuestionDescriptionT&& value) {
94 m_questionDescriptionHasBeenSet = true;
95 m_questionDescription = std::forward<QuestionDescriptionT>(value);
96 }
97 template <typename QuestionDescriptionT = Aws::String>
98 Answer& WithQuestionDescription(QuestionDescriptionT&& value) {
99 SetQuestionDescription(std::forward<QuestionDescriptionT>(value));
100 return *this;
101 }
103
105
106 inline const Aws::String& GetImprovementPlanUrl() const { return m_improvementPlanUrl; }
107 inline bool ImprovementPlanUrlHasBeenSet() const { return m_improvementPlanUrlHasBeenSet; }
108 template <typename ImprovementPlanUrlT = Aws::String>
109 void SetImprovementPlanUrl(ImprovementPlanUrlT&& value) {
110 m_improvementPlanUrlHasBeenSet = true;
111 m_improvementPlanUrl = std::forward<ImprovementPlanUrlT>(value);
112 }
113 template <typename ImprovementPlanUrlT = Aws::String>
114 Answer& WithImprovementPlanUrl(ImprovementPlanUrlT&& value) {
115 SetImprovementPlanUrl(std::forward<ImprovementPlanUrlT>(value));
116 return *this;
117 }
119
121
122 inline const Aws::String& GetHelpfulResourceUrl() const { return m_helpfulResourceUrl; }
123 inline bool HelpfulResourceUrlHasBeenSet() const { return m_helpfulResourceUrlHasBeenSet; }
124 template <typename HelpfulResourceUrlT = Aws::String>
125 void SetHelpfulResourceUrl(HelpfulResourceUrlT&& value) {
126 m_helpfulResourceUrlHasBeenSet = true;
127 m_helpfulResourceUrl = std::forward<HelpfulResourceUrlT>(value);
128 }
129 template <typename HelpfulResourceUrlT = Aws::String>
130 Answer& WithHelpfulResourceUrl(HelpfulResourceUrlT&& value) {
131 SetHelpfulResourceUrl(std::forward<HelpfulResourceUrlT>(value));
132 return *this;
133 }
135
137
141 inline const Aws::String& GetHelpfulResourceDisplayText() const { return m_helpfulResourceDisplayText; }
142 inline bool HelpfulResourceDisplayTextHasBeenSet() const { return m_helpfulResourceDisplayTextHasBeenSet; }
143 template <typename HelpfulResourceDisplayTextT = Aws::String>
144 void SetHelpfulResourceDisplayText(HelpfulResourceDisplayTextT&& value) {
145 m_helpfulResourceDisplayTextHasBeenSet = true;
146 m_helpfulResourceDisplayText = std::forward<HelpfulResourceDisplayTextT>(value);
147 }
148 template <typename HelpfulResourceDisplayTextT = Aws::String>
149 Answer& WithHelpfulResourceDisplayText(HelpfulResourceDisplayTextT&& value) {
150 SetHelpfulResourceDisplayText(std::forward<HelpfulResourceDisplayTextT>(value));
151 return *this;
152 }
154
156
157 inline const Aws::Vector<Choice>& GetChoices() const { return m_choices; }
158 inline bool ChoicesHasBeenSet() const { return m_choicesHasBeenSet; }
159 template <typename ChoicesT = Aws::Vector<Choice>>
160 void SetChoices(ChoicesT&& value) {
161 m_choicesHasBeenSet = true;
162 m_choices = std::forward<ChoicesT>(value);
163 }
164 template <typename ChoicesT = Aws::Vector<Choice>>
165 Answer& WithChoices(ChoicesT&& value) {
166 SetChoices(std::forward<ChoicesT>(value));
167 return *this;
168 }
169 template <typename ChoicesT = Choice>
170 Answer& AddChoices(ChoicesT&& value) {
171 m_choicesHasBeenSet = true;
172 m_choices.emplace_back(std::forward<ChoicesT>(value));
173 return *this;
174 }
176
178
179 inline const Aws::Vector<Aws::String>& GetSelectedChoices() const { return m_selectedChoices; }
180 inline bool SelectedChoicesHasBeenSet() const { return m_selectedChoicesHasBeenSet; }
181 template <typename SelectedChoicesT = Aws::Vector<Aws::String>>
182 void SetSelectedChoices(SelectedChoicesT&& value) {
183 m_selectedChoicesHasBeenSet = true;
184 m_selectedChoices = std::forward<SelectedChoicesT>(value);
185 }
186 template <typename SelectedChoicesT = Aws::Vector<Aws::String>>
187 Answer& WithSelectedChoices(SelectedChoicesT&& value) {
188 SetSelectedChoices(std::forward<SelectedChoicesT>(value));
189 return *this;
190 }
191 template <typename SelectedChoicesT = Aws::String>
192 Answer& AddSelectedChoices(SelectedChoicesT&& value) {
193 m_selectedChoicesHasBeenSet = true;
194 m_selectedChoices.emplace_back(std::forward<SelectedChoicesT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::Vector<ChoiceAnswer>& GetChoiceAnswers() const { return m_choiceAnswers; }
204 inline bool ChoiceAnswersHasBeenSet() const { return m_choiceAnswersHasBeenSet; }
205 template <typename ChoiceAnswersT = Aws::Vector<ChoiceAnswer>>
206 void SetChoiceAnswers(ChoiceAnswersT&& value) {
207 m_choiceAnswersHasBeenSet = true;
208 m_choiceAnswers = std::forward<ChoiceAnswersT>(value);
209 }
210 template <typename ChoiceAnswersT = Aws::Vector<ChoiceAnswer>>
211 Answer& WithChoiceAnswers(ChoiceAnswersT&& value) {
212 SetChoiceAnswers(std::forward<ChoiceAnswersT>(value));
213 return *this;
214 }
215 template <typename ChoiceAnswersT = ChoiceAnswer>
216 Answer& AddChoiceAnswers(ChoiceAnswersT&& value) {
217 m_choiceAnswersHasBeenSet = true;
218 m_choiceAnswers.emplace_back(std::forward<ChoiceAnswersT>(value));
219 return *this;
220 }
222
224
225 inline bool GetIsApplicable() const { return m_isApplicable; }
226 inline bool IsApplicableHasBeenSet() const { return m_isApplicableHasBeenSet; }
227 inline void SetIsApplicable(bool value) {
228 m_isApplicableHasBeenSet = true;
229 m_isApplicable = value;
230 }
231 inline Answer& WithIsApplicable(bool value) {
232 SetIsApplicable(value);
233 return *this;
234 }
236
238
239 inline Risk GetRisk() const { return m_risk; }
240 inline bool RiskHasBeenSet() const { return m_riskHasBeenSet; }
241 inline void SetRisk(Risk value) {
242 m_riskHasBeenSet = true;
243 m_risk = value;
244 }
245 inline Answer& WithRisk(Risk value) {
246 SetRisk(value);
247 return *this;
248 }
250
252
253 inline const Aws::String& GetNotes() const { return m_notes; }
254 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
255 template <typename NotesT = Aws::String>
256 void SetNotes(NotesT&& value) {
257 m_notesHasBeenSet = true;
258 m_notes = std::forward<NotesT>(value);
259 }
260 template <typename NotesT = Aws::String>
261 Answer& WithNotes(NotesT&& value) {
262 SetNotes(std::forward<NotesT>(value));
263 return *this;
264 }
266
268
271 inline AnswerReason GetReason() const { return m_reason; }
272 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
273 inline void SetReason(AnswerReason value) {
274 m_reasonHasBeenSet = true;
275 m_reason = value;
276 }
278 SetReason(value);
279 return *this;
280 }
282
284
287 inline const JiraConfiguration& GetJiraConfiguration() const { return m_jiraConfiguration; }
288 inline bool JiraConfigurationHasBeenSet() const { return m_jiraConfigurationHasBeenSet; }
289 template <typename JiraConfigurationT = JiraConfiguration>
290 void SetJiraConfiguration(JiraConfigurationT&& value) {
291 m_jiraConfigurationHasBeenSet = true;
292 m_jiraConfiguration = std::forward<JiraConfigurationT>(value);
293 }
294 template <typename JiraConfigurationT = JiraConfiguration>
295 Answer& WithJiraConfiguration(JiraConfigurationT&& value) {
296 SetJiraConfiguration(std::forward<JiraConfigurationT>(value));
297 return *this;
298 }
300 private:
301 Aws::String m_questionId;
302
303 Aws::String m_pillarId;
304
305 Aws::String m_questionTitle;
306
307 Aws::String m_questionDescription;
308
309 Aws::String m_improvementPlanUrl;
310
311 Aws::String m_helpfulResourceUrl;
312
313 Aws::String m_helpfulResourceDisplayText;
314
315 Aws::Vector<Choice> m_choices;
316
317 Aws::Vector<Aws::String> m_selectedChoices;
318
319 Aws::Vector<ChoiceAnswer> m_choiceAnswers;
320
321 bool m_isApplicable{false};
322
323 Risk m_risk{Risk::NOT_SET};
324
325 Aws::String m_notes;
326
328
329 JiraConfiguration m_jiraConfiguration;
330 bool m_questionIdHasBeenSet = false;
331 bool m_pillarIdHasBeenSet = false;
332 bool m_questionTitleHasBeenSet = false;
333 bool m_questionDescriptionHasBeenSet = false;
334 bool m_improvementPlanUrlHasBeenSet = false;
335 bool m_helpfulResourceUrlHasBeenSet = false;
336 bool m_helpfulResourceDisplayTextHasBeenSet = false;
337 bool m_choicesHasBeenSet = false;
338 bool m_selectedChoicesHasBeenSet = false;
339 bool m_choiceAnswersHasBeenSet = false;
340 bool m_isApplicableHasBeenSet = false;
341 bool m_riskHasBeenSet = false;
342 bool m_notesHasBeenSet = false;
343 bool m_reasonHasBeenSet = false;
344 bool m_jiraConfigurationHasBeenSet = false;
345};
346
347} // namespace Model
348} // namespace WellArchitected
349} // namespace Aws
Answer & WithHelpfulResourceUrl(HelpfulResourceUrlT &&value)
Definition Answer.h:130
void SetIsApplicable(bool value)
Definition Answer.h:227
void SetQuestionTitle(QuestionTitleT &&value)
Definition Answer.h:77
void SetQuestionId(QuestionIdT &&value)
Definition Answer.h:45
void SetJiraConfiguration(JiraConfigurationT &&value)
Definition Answer.h:290
const Aws::Vector< Choice > & GetChoices() const
Definition Answer.h:157
const Aws::Vector< Aws::String > & GetSelectedChoices() const
Definition Answer.h:179
void SetQuestionDescription(QuestionDescriptionT &&value)
Definition Answer.h:93
bool JiraConfigurationHasBeenSet() const
Definition Answer.h:288
AnswerReason GetReason() const
Definition Answer.h:271
Answer & AddSelectedChoices(SelectedChoicesT &&value)
Definition Answer.h:192
const Aws::String & GetQuestionId() const
Definition Answer.h:42
const JiraConfiguration & GetJiraConfiguration() const
Definition Answer.h:287
Answer & WithPillarId(PillarIdT &&value)
Definition Answer.h:66
void SetPillarId(PillarIdT &&value)
Definition Answer.h:61
Answer & WithChoices(ChoicesT &&value)
Definition Answer.h:165
const Aws::String & GetQuestionTitle() const
Definition Answer.h:74
Answer & WithQuestionTitle(QuestionTitleT &&value)
Definition Answer.h:82
Answer & AddChoices(ChoicesT &&value)
Definition Answer.h:170
Answer & WithNotes(NotesT &&value)
Definition Answer.h:261
Answer & AddChoiceAnswers(ChoiceAnswersT &&value)
Definition Answer.h:216
Answer & WithChoiceAnswers(ChoiceAnswersT &&value)
Definition Answer.h:211
bool ImprovementPlanUrlHasBeenSet() const
Definition Answer.h:107
Answer & WithReason(AnswerReason value)
Definition Answer.h:277
Answer & WithQuestionDescription(QuestionDescriptionT &&value)
Definition Answer.h:98
Answer & WithHelpfulResourceDisplayText(HelpfulResourceDisplayTextT &&value)
Definition Answer.h:149
bool HelpfulResourceUrlHasBeenSet() const
Definition Answer.h:123
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetImprovementPlanUrl() const
Definition Answer.h:106
void SetChoices(ChoicesT &&value)
Definition Answer.h:160
void SetNotes(NotesT &&value)
Definition Answer.h:256
void SetReason(AnswerReason value)
Definition Answer.h:273
AWS_WELLARCHITECTED_API Answer(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetHelpfulResourceDisplayText() const
Definition Answer.h:141
const Aws::String & GetHelpfulResourceUrl() const
Definition Answer.h:122
bool QuestionDescriptionHasBeenSet() const
Definition Answer.h:91
const Aws::String & GetNotes() const
Definition Answer.h:253
Answer & WithJiraConfiguration(JiraConfigurationT &&value)
Definition Answer.h:295
void SetSelectedChoices(SelectedChoicesT &&value)
Definition Answer.h:182
const Aws::String & GetQuestionDescription() const
Definition Answer.h:90
Answer & WithQuestionId(QuestionIdT &&value)
Definition Answer.h:50
AWS_WELLARCHITECTED_API Answer()=default
AWS_WELLARCHITECTED_API Answer & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetChoiceAnswers(ChoiceAnswersT &&value)
Definition Answer.h:206
Answer & WithImprovementPlanUrl(ImprovementPlanUrlT &&value)
Definition Answer.h:114
const Aws::Vector< ChoiceAnswer > & GetChoiceAnswers() const
Definition Answer.h:203
void SetHelpfulResourceUrl(HelpfulResourceUrlT &&value)
Definition Answer.h:125
bool HelpfulResourceDisplayTextHasBeenSet() const
Definition Answer.h:142
void SetHelpfulResourceDisplayText(HelpfulResourceDisplayTextT &&value)
Definition Answer.h:144
void SetImprovementPlanUrl(ImprovementPlanUrlT &&value)
Definition Answer.h:109
Answer & WithSelectedChoices(SelectedChoicesT &&value)
Definition Answer.h:187
const Aws::String & GetPillarId() const
Definition Answer.h:58
Answer & WithRisk(Risk value)
Definition Answer.h:245
Answer & WithIsApplicable(bool value)
Definition Answer.h:231
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue