AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
ReviewTemplateAnswer.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/ReviewTemplateAnswerStatus.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace WellArchitected {
25namespace Model {
26
33 public:
34 AWS_WELLARCHITECTED_API ReviewTemplateAnswer() = default;
35 AWS_WELLARCHITECTED_API ReviewTemplateAnswer(Aws::Utils::Json::JsonView jsonValue);
36 AWS_WELLARCHITECTED_API ReviewTemplateAnswer& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
41 inline const Aws::String& GetQuestionId() const { return m_questionId; }
42 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
43 template <typename QuestionIdT = Aws::String>
44 void SetQuestionId(QuestionIdT&& value) {
45 m_questionIdHasBeenSet = true;
46 m_questionId = std::forward<QuestionIdT>(value);
47 }
48 template <typename QuestionIdT = Aws::String>
49 ReviewTemplateAnswer& WithQuestionId(QuestionIdT&& value) {
50 SetQuestionId(std::forward<QuestionIdT>(value));
51 return *this;
52 }
54
56
57 inline const Aws::String& GetPillarId() const { return m_pillarId; }
58 inline bool PillarIdHasBeenSet() const { return m_pillarIdHasBeenSet; }
59 template <typename PillarIdT = Aws::String>
60 void SetPillarId(PillarIdT&& value) {
61 m_pillarIdHasBeenSet = true;
62 m_pillarId = std::forward<PillarIdT>(value);
63 }
64 template <typename PillarIdT = Aws::String>
65 ReviewTemplateAnswer& WithPillarId(PillarIdT&& value) {
66 SetPillarId(std::forward<PillarIdT>(value));
67 return *this;
68 }
70
72
73 inline const Aws::String& GetQuestionTitle() const { return m_questionTitle; }
74 inline bool QuestionTitleHasBeenSet() const { return m_questionTitleHasBeenSet; }
75 template <typename QuestionTitleT = Aws::String>
76 void SetQuestionTitle(QuestionTitleT&& value) {
77 m_questionTitleHasBeenSet = true;
78 m_questionTitle = std::forward<QuestionTitleT>(value);
79 }
80 template <typename QuestionTitleT = Aws::String>
81 ReviewTemplateAnswer& WithQuestionTitle(QuestionTitleT&& value) {
82 SetQuestionTitle(std::forward<QuestionTitleT>(value));
83 return *this;
84 }
86
88
89 inline const Aws::String& GetQuestionDescription() const { return m_questionDescription; }
90 inline bool QuestionDescriptionHasBeenSet() const { return m_questionDescriptionHasBeenSet; }
91 template <typename QuestionDescriptionT = Aws::String>
92 void SetQuestionDescription(QuestionDescriptionT&& value) {
93 m_questionDescriptionHasBeenSet = true;
94 m_questionDescription = std::forward<QuestionDescriptionT>(value);
95 }
96 template <typename QuestionDescriptionT = Aws::String>
97 ReviewTemplateAnswer& WithQuestionDescription(QuestionDescriptionT&& value) {
98 SetQuestionDescription(std::forward<QuestionDescriptionT>(value));
99 return *this;
100 }
102
104
105 inline const Aws::String& GetImprovementPlanUrl() const { return m_improvementPlanUrl; }
106 inline bool ImprovementPlanUrlHasBeenSet() const { return m_improvementPlanUrlHasBeenSet; }
107 template <typename ImprovementPlanUrlT = Aws::String>
108 void SetImprovementPlanUrl(ImprovementPlanUrlT&& value) {
109 m_improvementPlanUrlHasBeenSet = true;
110 m_improvementPlanUrl = std::forward<ImprovementPlanUrlT>(value);
111 }
112 template <typename ImprovementPlanUrlT = Aws::String>
113 ReviewTemplateAnswer& WithImprovementPlanUrl(ImprovementPlanUrlT&& value) {
114 SetImprovementPlanUrl(std::forward<ImprovementPlanUrlT>(value));
115 return *this;
116 }
118
120
121 inline const Aws::String& GetHelpfulResourceUrl() const { return m_helpfulResourceUrl; }
122 inline bool HelpfulResourceUrlHasBeenSet() const { return m_helpfulResourceUrlHasBeenSet; }
123 template <typename HelpfulResourceUrlT = Aws::String>
124 void SetHelpfulResourceUrl(HelpfulResourceUrlT&& value) {
125 m_helpfulResourceUrlHasBeenSet = true;
126 m_helpfulResourceUrl = std::forward<HelpfulResourceUrlT>(value);
127 }
128 template <typename HelpfulResourceUrlT = Aws::String>
129 ReviewTemplateAnswer& WithHelpfulResourceUrl(HelpfulResourceUrlT&& value) {
130 SetHelpfulResourceUrl(std::forward<HelpfulResourceUrlT>(value));
131 return *this;
132 }
134
136
140 inline const Aws::String& GetHelpfulResourceDisplayText() const { return m_helpfulResourceDisplayText; }
141 inline bool HelpfulResourceDisplayTextHasBeenSet() const { return m_helpfulResourceDisplayTextHasBeenSet; }
142 template <typename HelpfulResourceDisplayTextT = Aws::String>
143 void SetHelpfulResourceDisplayText(HelpfulResourceDisplayTextT&& value) {
144 m_helpfulResourceDisplayTextHasBeenSet = true;
145 m_helpfulResourceDisplayText = std::forward<HelpfulResourceDisplayTextT>(value);
146 }
147 template <typename HelpfulResourceDisplayTextT = Aws::String>
148 ReviewTemplateAnswer& WithHelpfulResourceDisplayText(HelpfulResourceDisplayTextT&& value) {
149 SetHelpfulResourceDisplayText(std::forward<HelpfulResourceDisplayTextT>(value));
150 return *this;
151 }
153
155
156 inline const Aws::Vector<Choice>& GetChoices() const { return m_choices; }
157 inline bool ChoicesHasBeenSet() const { return m_choicesHasBeenSet; }
158 template <typename ChoicesT = Aws::Vector<Choice>>
159 void SetChoices(ChoicesT&& value) {
160 m_choicesHasBeenSet = true;
161 m_choices = std::forward<ChoicesT>(value);
162 }
163 template <typename ChoicesT = Aws::Vector<Choice>>
165 SetChoices(std::forward<ChoicesT>(value));
166 return *this;
167 }
168 template <typename ChoicesT = Choice>
169 ReviewTemplateAnswer& AddChoices(ChoicesT&& value) {
170 m_choicesHasBeenSet = true;
171 m_choices.emplace_back(std::forward<ChoicesT>(value));
172 return *this;
173 }
175
177
178 inline const Aws::Vector<Aws::String>& GetSelectedChoices() const { return m_selectedChoices; }
179 inline bool SelectedChoicesHasBeenSet() const { return m_selectedChoicesHasBeenSet; }
180 template <typename SelectedChoicesT = Aws::Vector<Aws::String>>
181 void SetSelectedChoices(SelectedChoicesT&& value) {
182 m_selectedChoicesHasBeenSet = true;
183 m_selectedChoices = std::forward<SelectedChoicesT>(value);
184 }
185 template <typename SelectedChoicesT = Aws::Vector<Aws::String>>
186 ReviewTemplateAnswer& WithSelectedChoices(SelectedChoicesT&& value) {
187 SetSelectedChoices(std::forward<SelectedChoicesT>(value));
188 return *this;
189 }
190 template <typename SelectedChoicesT = Aws::String>
191 ReviewTemplateAnswer& AddSelectedChoices(SelectedChoicesT&& value) {
192 m_selectedChoicesHasBeenSet = true;
193 m_selectedChoices.emplace_back(std::forward<SelectedChoicesT>(value));
194 return *this;
195 }
197
199
202 inline const Aws::Vector<ChoiceAnswer>& GetChoiceAnswers() const { return m_choiceAnswers; }
203 inline bool ChoiceAnswersHasBeenSet() const { return m_choiceAnswersHasBeenSet; }
204 template <typename ChoiceAnswersT = Aws::Vector<ChoiceAnswer>>
205 void SetChoiceAnswers(ChoiceAnswersT&& value) {
206 m_choiceAnswersHasBeenSet = true;
207 m_choiceAnswers = std::forward<ChoiceAnswersT>(value);
208 }
209 template <typename ChoiceAnswersT = Aws::Vector<ChoiceAnswer>>
210 ReviewTemplateAnswer& WithChoiceAnswers(ChoiceAnswersT&& value) {
211 SetChoiceAnswers(std::forward<ChoiceAnswersT>(value));
212 return *this;
213 }
214 template <typename ChoiceAnswersT = ChoiceAnswer>
215 ReviewTemplateAnswer& AddChoiceAnswers(ChoiceAnswersT&& value) {
216 m_choiceAnswersHasBeenSet = true;
217 m_choiceAnswers.emplace_back(std::forward<ChoiceAnswersT>(value));
218 return *this;
219 }
221
223
224 inline bool GetIsApplicable() const { return m_isApplicable; }
225 inline bool IsApplicableHasBeenSet() const { return m_isApplicableHasBeenSet; }
226 inline void SetIsApplicable(bool value) {
227 m_isApplicableHasBeenSet = true;
228 m_isApplicable = value;
229 }
231 SetIsApplicable(value);
232 return *this;
233 }
235
237
240 inline ReviewTemplateAnswerStatus GetAnswerStatus() const { return m_answerStatus; }
241 inline bool AnswerStatusHasBeenSet() const { return m_answerStatusHasBeenSet; }
243 m_answerStatusHasBeenSet = true;
244 m_answerStatus = value;
245 }
247 SetAnswerStatus(value);
248 return *this;
249 }
251
253
254 inline const Aws::String& GetNotes() const { return m_notes; }
255 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
256 template <typename NotesT = Aws::String>
257 void SetNotes(NotesT&& value) {
258 m_notesHasBeenSet = true;
259 m_notes = std::forward<NotesT>(value);
260 }
261 template <typename NotesT = Aws::String>
263 SetNotes(std::forward<NotesT>(value));
264 return *this;
265 }
267
269
272 inline AnswerReason GetReason() const { return m_reason; }
273 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
274 inline void SetReason(AnswerReason value) {
275 m_reasonHasBeenSet = true;
276 m_reason = value;
277 }
279 SetReason(value);
280 return *this;
281 }
283 private:
284 Aws::String m_questionId;
285 bool m_questionIdHasBeenSet = false;
286
287 Aws::String m_pillarId;
288 bool m_pillarIdHasBeenSet = false;
289
290 Aws::String m_questionTitle;
291 bool m_questionTitleHasBeenSet = false;
292
293 Aws::String m_questionDescription;
294 bool m_questionDescriptionHasBeenSet = false;
295
296 Aws::String m_improvementPlanUrl;
297 bool m_improvementPlanUrlHasBeenSet = false;
298
299 Aws::String m_helpfulResourceUrl;
300 bool m_helpfulResourceUrlHasBeenSet = false;
301
302 Aws::String m_helpfulResourceDisplayText;
303 bool m_helpfulResourceDisplayTextHasBeenSet = false;
304
305 Aws::Vector<Choice> m_choices;
306 bool m_choicesHasBeenSet = false;
307
308 Aws::Vector<Aws::String> m_selectedChoices;
309 bool m_selectedChoicesHasBeenSet = false;
310
311 Aws::Vector<ChoiceAnswer> m_choiceAnswers;
312 bool m_choiceAnswersHasBeenSet = false;
313
314 bool m_isApplicable{false};
315 bool m_isApplicableHasBeenSet = false;
316
318 bool m_answerStatusHasBeenSet = false;
319
320 Aws::String m_notes;
321 bool m_notesHasBeenSet = false;
322
324 bool m_reasonHasBeenSet = false;
325};
326
327} // namespace Model
328} // namespace WellArchitected
329} // namespace Aws
ReviewTemplateAnswer & WithSelectedChoices(SelectedChoicesT &&value)
AWS_WELLARCHITECTED_API ReviewTemplateAnswer(Aws::Utils::Json::JsonView jsonValue)
ReviewTemplateAnswer & WithPillarId(PillarIdT &&value)
ReviewTemplateAnswer & WithNotes(NotesT &&value)
ReviewTemplateAnswer & AddSelectedChoices(SelectedChoicesT &&value)
const Aws::Vector< Aws::String > & GetSelectedChoices() const
ReviewTemplateAnswer & WithQuestionTitle(QuestionTitleT &&value)
ReviewTemplateAnswer & WithQuestionDescription(QuestionDescriptionT &&value)
ReviewTemplateAnswer & AddChoices(ChoicesT &&value)
ReviewTemplateAnswer & WithChoiceAnswers(ChoiceAnswersT &&value)
ReviewTemplateAnswer & WithChoices(ChoicesT &&value)
const Aws::Vector< ChoiceAnswer > & GetChoiceAnswers() const
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
ReviewTemplateAnswer & AddChoiceAnswers(ChoiceAnswersT &&value)
ReviewTemplateAnswer & WithImprovementPlanUrl(ImprovementPlanUrlT &&value)
ReviewTemplateAnswer & WithHelpfulResourceUrl(HelpfulResourceUrlT &&value)
void SetHelpfulResourceDisplayText(HelpfulResourceDisplayTextT &&value)
void SetImprovementPlanUrl(ImprovementPlanUrlT &&value)
ReviewTemplateAnswer & WithQuestionId(QuestionIdT &&value)
AWS_WELLARCHITECTED_API ReviewTemplateAnswer & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetHelpfulResourceUrl(HelpfulResourceUrlT &&value)
void SetAnswerStatus(ReviewTemplateAnswerStatus value)
AWS_WELLARCHITECTED_API ReviewTemplateAnswer()=default
ReviewTemplateAnswer & WithAnswerStatus(ReviewTemplateAnswerStatus value)
const Aws::Vector< Choice > & GetChoices() const
ReviewTemplateAnswer & WithHelpfulResourceDisplayText(HelpfulResourceDisplayTextT &&value)
ReviewTemplateAnswer & WithIsApplicable(bool value)
void SetQuestionDescription(QuestionDescriptionT &&value)
ReviewTemplateAnswer & WithReason(AnswerReason 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