AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReviewTemplateAnswer.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/ReviewTemplateAnswerStatus.h>
11#include <aws/wellarchitected/model/AnswerReason.h>
12#include <aws/wellarchitected/model/Choice.h>
13#include <aws/wellarchitected/model/ChoiceAnswer.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace WellArchitected
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_WELLARCHITECTED_API ReviewTemplateAnswer();
40 AWS_WELLARCHITECTED_API ReviewTemplateAnswer(Aws::Utils::Json::JsonView jsonValue);
41 AWS_WELLARCHITECTED_API ReviewTemplateAnswer& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
47 inline const Aws::String& GetQuestionId() const{ return m_questionId; }
48 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
49 inline void SetQuestionId(const Aws::String& value) { m_questionIdHasBeenSet = true; m_questionId = value; }
50 inline void SetQuestionId(Aws::String&& value) { m_questionIdHasBeenSet = true; m_questionId = std::move(value); }
51 inline void SetQuestionId(const char* value) { m_questionIdHasBeenSet = true; m_questionId.assign(value); }
52 inline ReviewTemplateAnswer& WithQuestionId(const Aws::String& value) { SetQuestionId(value); return *this;}
53 inline ReviewTemplateAnswer& WithQuestionId(Aws::String&& value) { SetQuestionId(std::move(value)); return *this;}
54 inline ReviewTemplateAnswer& WithQuestionId(const char* value) { SetQuestionId(value); return *this;}
56
58
59 inline const Aws::String& GetPillarId() const{ return m_pillarId; }
60 inline bool PillarIdHasBeenSet() const { return m_pillarIdHasBeenSet; }
61 inline void SetPillarId(const Aws::String& value) { m_pillarIdHasBeenSet = true; m_pillarId = value; }
62 inline void SetPillarId(Aws::String&& value) { m_pillarIdHasBeenSet = true; m_pillarId = std::move(value); }
63 inline void SetPillarId(const char* value) { m_pillarIdHasBeenSet = true; m_pillarId.assign(value); }
64 inline ReviewTemplateAnswer& WithPillarId(const Aws::String& value) { SetPillarId(value); return *this;}
65 inline ReviewTemplateAnswer& WithPillarId(Aws::String&& value) { SetPillarId(std::move(value)); return *this;}
66 inline ReviewTemplateAnswer& WithPillarId(const char* value) { SetPillarId(value); return *this;}
68
70
71 inline const Aws::String& GetQuestionTitle() const{ return m_questionTitle; }
72 inline bool QuestionTitleHasBeenSet() const { return m_questionTitleHasBeenSet; }
73 inline void SetQuestionTitle(const Aws::String& value) { m_questionTitleHasBeenSet = true; m_questionTitle = value; }
74 inline void SetQuestionTitle(Aws::String&& value) { m_questionTitleHasBeenSet = true; m_questionTitle = std::move(value); }
75 inline void SetQuestionTitle(const char* value) { m_questionTitleHasBeenSet = true; m_questionTitle.assign(value); }
76 inline ReviewTemplateAnswer& WithQuestionTitle(const Aws::String& value) { SetQuestionTitle(value); return *this;}
77 inline ReviewTemplateAnswer& WithQuestionTitle(Aws::String&& value) { SetQuestionTitle(std::move(value)); return *this;}
78 inline ReviewTemplateAnswer& WithQuestionTitle(const char* value) { SetQuestionTitle(value); return *this;}
80
82
83 inline const Aws::String& GetQuestionDescription() const{ return m_questionDescription; }
84 inline bool QuestionDescriptionHasBeenSet() const { return m_questionDescriptionHasBeenSet; }
85 inline void SetQuestionDescription(const Aws::String& value) { m_questionDescriptionHasBeenSet = true; m_questionDescription = value; }
86 inline void SetQuestionDescription(Aws::String&& value) { m_questionDescriptionHasBeenSet = true; m_questionDescription = std::move(value); }
87 inline void SetQuestionDescription(const char* value) { m_questionDescriptionHasBeenSet = true; m_questionDescription.assign(value); }
89 inline ReviewTemplateAnswer& WithQuestionDescription(Aws::String&& value) { SetQuestionDescription(std::move(value)); return *this;}
90 inline ReviewTemplateAnswer& WithQuestionDescription(const char* value) { SetQuestionDescription(value); return *this;}
92
94
95 inline const Aws::String& GetImprovementPlanUrl() const{ return m_improvementPlanUrl; }
96 inline bool ImprovementPlanUrlHasBeenSet() const { return m_improvementPlanUrlHasBeenSet; }
97 inline void SetImprovementPlanUrl(const Aws::String& value) { m_improvementPlanUrlHasBeenSet = true; m_improvementPlanUrl = value; }
98 inline void SetImprovementPlanUrl(Aws::String&& value) { m_improvementPlanUrlHasBeenSet = true; m_improvementPlanUrl = std::move(value); }
99 inline void SetImprovementPlanUrl(const char* value) { m_improvementPlanUrlHasBeenSet = true; m_improvementPlanUrl.assign(value); }
101 inline ReviewTemplateAnswer& WithImprovementPlanUrl(Aws::String&& value) { SetImprovementPlanUrl(std::move(value)); return *this;}
102 inline ReviewTemplateAnswer& WithImprovementPlanUrl(const char* value) { SetImprovementPlanUrl(value); return *this;}
104
106
107 inline const Aws::String& GetHelpfulResourceUrl() const{ return m_helpfulResourceUrl; }
108 inline bool HelpfulResourceUrlHasBeenSet() const { return m_helpfulResourceUrlHasBeenSet; }
109 inline void SetHelpfulResourceUrl(const Aws::String& value) { m_helpfulResourceUrlHasBeenSet = true; m_helpfulResourceUrl = value; }
110 inline void SetHelpfulResourceUrl(Aws::String&& value) { m_helpfulResourceUrlHasBeenSet = true; m_helpfulResourceUrl = std::move(value); }
111 inline void SetHelpfulResourceUrl(const char* value) { m_helpfulResourceUrlHasBeenSet = true; m_helpfulResourceUrl.assign(value); }
113 inline ReviewTemplateAnswer& WithHelpfulResourceUrl(Aws::String&& value) { SetHelpfulResourceUrl(std::move(value)); return *this;}
114 inline ReviewTemplateAnswer& WithHelpfulResourceUrl(const char* value) { SetHelpfulResourceUrl(value); return *this;}
116
118
122 inline const Aws::String& GetHelpfulResourceDisplayText() const{ return m_helpfulResourceDisplayText; }
123 inline bool HelpfulResourceDisplayTextHasBeenSet() const { return m_helpfulResourceDisplayTextHasBeenSet; }
124 inline void SetHelpfulResourceDisplayText(const Aws::String& value) { m_helpfulResourceDisplayTextHasBeenSet = true; m_helpfulResourceDisplayText = value; }
125 inline void SetHelpfulResourceDisplayText(Aws::String&& value) { m_helpfulResourceDisplayTextHasBeenSet = true; m_helpfulResourceDisplayText = std::move(value); }
126 inline void SetHelpfulResourceDisplayText(const char* value) { m_helpfulResourceDisplayTextHasBeenSet = true; m_helpfulResourceDisplayText.assign(value); }
131
133
134 inline const Aws::Vector<Choice>& GetChoices() const{ return m_choices; }
135 inline bool ChoicesHasBeenSet() const { return m_choicesHasBeenSet; }
136 inline void SetChoices(const Aws::Vector<Choice>& value) { m_choicesHasBeenSet = true; m_choices = value; }
137 inline void SetChoices(Aws::Vector<Choice>&& value) { m_choicesHasBeenSet = true; m_choices = std::move(value); }
138 inline ReviewTemplateAnswer& WithChoices(const Aws::Vector<Choice>& value) { SetChoices(value); return *this;}
139 inline ReviewTemplateAnswer& WithChoices(Aws::Vector<Choice>&& value) { SetChoices(std::move(value)); return *this;}
140 inline ReviewTemplateAnswer& AddChoices(const Choice& value) { m_choicesHasBeenSet = true; m_choices.push_back(value); return *this; }
141 inline ReviewTemplateAnswer& AddChoices(Choice&& value) { m_choicesHasBeenSet = true; m_choices.push_back(std::move(value)); return *this; }
143
145
146 inline const Aws::Vector<Aws::String>& GetSelectedChoices() const{ return m_selectedChoices; }
147 inline bool SelectedChoicesHasBeenSet() const { return m_selectedChoicesHasBeenSet; }
148 inline void SetSelectedChoices(const Aws::Vector<Aws::String>& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices = value; }
149 inline void SetSelectedChoices(Aws::Vector<Aws::String>&& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices = std::move(value); }
151 inline ReviewTemplateAnswer& WithSelectedChoices(Aws::Vector<Aws::String>&& value) { SetSelectedChoices(std::move(value)); return *this;}
152 inline ReviewTemplateAnswer& AddSelectedChoices(const Aws::String& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices.push_back(value); return *this; }
153 inline ReviewTemplateAnswer& AddSelectedChoices(Aws::String&& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices.push_back(std::move(value)); return *this; }
154 inline ReviewTemplateAnswer& AddSelectedChoices(const char* value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices.push_back(value); return *this; }
156
158
161 inline const Aws::Vector<ChoiceAnswer>& GetChoiceAnswers() const{ return m_choiceAnswers; }
162 inline bool ChoiceAnswersHasBeenSet() const { return m_choiceAnswersHasBeenSet; }
163 inline void SetChoiceAnswers(const Aws::Vector<ChoiceAnswer>& value) { m_choiceAnswersHasBeenSet = true; m_choiceAnswers = value; }
164 inline void SetChoiceAnswers(Aws::Vector<ChoiceAnswer>&& value) { m_choiceAnswersHasBeenSet = true; m_choiceAnswers = std::move(value); }
166 inline ReviewTemplateAnswer& WithChoiceAnswers(Aws::Vector<ChoiceAnswer>&& value) { SetChoiceAnswers(std::move(value)); return *this;}
167 inline ReviewTemplateAnswer& AddChoiceAnswers(const ChoiceAnswer& value) { m_choiceAnswersHasBeenSet = true; m_choiceAnswers.push_back(value); return *this; }
168 inline ReviewTemplateAnswer& AddChoiceAnswers(ChoiceAnswer&& value) { m_choiceAnswersHasBeenSet = true; m_choiceAnswers.push_back(std::move(value)); return *this; }
170
172
173 inline bool GetIsApplicable() const{ return m_isApplicable; }
174 inline bool IsApplicableHasBeenSet() const { return m_isApplicableHasBeenSet; }
175 inline void SetIsApplicable(bool value) { m_isApplicableHasBeenSet = true; m_isApplicable = value; }
176 inline ReviewTemplateAnswer& WithIsApplicable(bool value) { SetIsApplicable(value); return *this;}
178
180
183 inline const ReviewTemplateAnswerStatus& GetAnswerStatus() const{ return m_answerStatus; }
184 inline bool AnswerStatusHasBeenSet() const { return m_answerStatusHasBeenSet; }
185 inline void SetAnswerStatus(const ReviewTemplateAnswerStatus& value) { m_answerStatusHasBeenSet = true; m_answerStatus = value; }
186 inline void SetAnswerStatus(ReviewTemplateAnswerStatus&& value) { m_answerStatusHasBeenSet = true; m_answerStatus = std::move(value); }
188 inline ReviewTemplateAnswer& WithAnswerStatus(ReviewTemplateAnswerStatus&& value) { SetAnswerStatus(std::move(value)); return *this;}
190
192
193 inline const Aws::String& GetNotes() const{ return m_notes; }
194 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
195 inline void SetNotes(const Aws::String& value) { m_notesHasBeenSet = true; m_notes = value; }
196 inline void SetNotes(Aws::String&& value) { m_notesHasBeenSet = true; m_notes = std::move(value); }
197 inline void SetNotes(const char* value) { m_notesHasBeenSet = true; m_notes.assign(value); }
198 inline ReviewTemplateAnswer& WithNotes(const Aws::String& value) { SetNotes(value); return *this;}
199 inline ReviewTemplateAnswer& WithNotes(Aws::String&& value) { SetNotes(std::move(value)); return *this;}
200 inline ReviewTemplateAnswer& WithNotes(const char* value) { SetNotes(value); return *this;}
202
204
207 inline const AnswerReason& GetReason() const{ return m_reason; }
208 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
209 inline void SetReason(const AnswerReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
210 inline void SetReason(AnswerReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
211 inline ReviewTemplateAnswer& WithReason(const AnswerReason& value) { SetReason(value); return *this;}
212 inline ReviewTemplateAnswer& WithReason(AnswerReason&& value) { SetReason(std::move(value)); return *this;}
214 private:
215
216 Aws::String m_questionId;
217 bool m_questionIdHasBeenSet = false;
218
219 Aws::String m_pillarId;
220 bool m_pillarIdHasBeenSet = false;
221
222 Aws::String m_questionTitle;
223 bool m_questionTitleHasBeenSet = false;
224
225 Aws::String m_questionDescription;
226 bool m_questionDescriptionHasBeenSet = false;
227
228 Aws::String m_improvementPlanUrl;
229 bool m_improvementPlanUrlHasBeenSet = false;
230
231 Aws::String m_helpfulResourceUrl;
232 bool m_helpfulResourceUrlHasBeenSet = false;
233
234 Aws::String m_helpfulResourceDisplayText;
235 bool m_helpfulResourceDisplayTextHasBeenSet = false;
236
237 Aws::Vector<Choice> m_choices;
238 bool m_choicesHasBeenSet = false;
239
240 Aws::Vector<Aws::String> m_selectedChoices;
241 bool m_selectedChoicesHasBeenSet = false;
242
243 Aws::Vector<ChoiceAnswer> m_choiceAnswers;
244 bool m_choiceAnswersHasBeenSet = false;
245
246 bool m_isApplicable;
247 bool m_isApplicableHasBeenSet = false;
248
249 ReviewTemplateAnswerStatus m_answerStatus;
250 bool m_answerStatusHasBeenSet = false;
251
252 Aws::String m_notes;
253 bool m_notesHasBeenSet = false;
254
255 AnswerReason m_reason;
256 bool m_reasonHasBeenSet = false;
257 };
258
259} // namespace Model
260} // namespace WellArchitected
261} // namespace Aws
void SetChoiceAnswers(Aws::Vector< ChoiceAnswer > &&value)
ReviewTemplateAnswer & WithQuestionId(Aws::String &&value)
AWS_WELLARCHITECTED_API ReviewTemplateAnswer(Aws::Utils::Json::JsonView jsonValue)
ReviewTemplateAnswer & WithQuestionDescription(const char *value)
void SetChoices(const Aws::Vector< Choice > &value)
ReviewTemplateAnswer & WithAnswerStatus(const ReviewTemplateAnswerStatus &value)
ReviewTemplateAnswer & WithReason(const AnswerReason &value)
ReviewTemplateAnswer & WithChoiceAnswers(const Aws::Vector< ChoiceAnswer > &value)
ReviewTemplateAnswer & WithSelectedChoices(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetSelectedChoices() const
ReviewTemplateAnswer & AddSelectedChoices(const char *value)
ReviewTemplateAnswer & WithNotes(const char *value)
const ReviewTemplateAnswerStatus & GetAnswerStatus() const
ReviewTemplateAnswer & WithHelpfulResourceDisplayText(const char *value)
ReviewTemplateAnswer & AddSelectedChoices(Aws::String &&value)
ReviewTemplateAnswer & WithChoices(const Aws::Vector< Choice > &value)
ReviewTemplateAnswer & WithQuestionDescription(const Aws::String &value)
ReviewTemplateAnswer & AddChoiceAnswers(ChoiceAnswer &&value)
ReviewTemplateAnswer & WithNotes(Aws::String &&value)
ReviewTemplateAnswer & WithQuestionId(const char *value)
void SetChoiceAnswers(const Aws::Vector< ChoiceAnswer > &value)
const Aws::Vector< ChoiceAnswer > & GetChoiceAnswers() const
ReviewTemplateAnswer & WithQuestionTitle(Aws::String &&value)
ReviewTemplateAnswer & WithHelpfulResourceUrl(const Aws::String &value)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
ReviewTemplateAnswer & WithHelpfulResourceUrl(const char *value)
ReviewTemplateAnswer & WithQuestionId(const Aws::String &value)
ReviewTemplateAnswer & AddSelectedChoices(const Aws::String &value)
ReviewTemplateAnswer & WithPillarId(Aws::String &&value)
ReviewTemplateAnswer & WithSelectedChoices(Aws::Vector< Aws::String > &&value)
ReviewTemplateAnswer & WithReason(AnswerReason &&value)
ReviewTemplateAnswer & WithImprovementPlanUrl(const char *value)
ReviewTemplateAnswer & WithHelpfulResourceDisplayText(const Aws::String &value)
void SetAnswerStatus(const ReviewTemplateAnswerStatus &value)
ReviewTemplateAnswer & WithQuestionDescription(Aws::String &&value)
void SetSelectedChoices(Aws::Vector< Aws::String > &&value)
ReviewTemplateAnswer & WithPillarId(const char *value)
ReviewTemplateAnswer & WithQuestionTitle(const Aws::String &value)
AWS_WELLARCHITECTED_API ReviewTemplateAnswer & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSelectedChoices(const Aws::Vector< Aws::String > &value)
void SetAnswerStatus(ReviewTemplateAnswerStatus &&value)
ReviewTemplateAnswer & WithPillarId(const Aws::String &value)
void SetHelpfulResourceDisplayText(const Aws::String &value)
ReviewTemplateAnswer & WithNotes(const Aws::String &value)
ReviewTemplateAnswer & WithChoices(Aws::Vector< Choice > &&value)
const Aws::Vector< Choice > & GetChoices() const
ReviewTemplateAnswer & WithImprovementPlanUrl(const Aws::String &value)
ReviewTemplateAnswer & AddChoices(Choice &&value)
ReviewTemplateAnswer & WithIsApplicable(bool value)
ReviewTemplateAnswer & WithAnswerStatus(ReviewTemplateAnswerStatus &&value)
ReviewTemplateAnswer & WithHelpfulResourceUrl(Aws::String &&value)
ReviewTemplateAnswer & AddChoices(const Choice &value)
ReviewTemplateAnswer & WithHelpfulResourceDisplayText(Aws::String &&value)
ReviewTemplateAnswer & WithQuestionTitle(const char *value)
ReviewTemplateAnswer & WithChoiceAnswers(Aws::Vector< ChoiceAnswer > &&value)
ReviewTemplateAnswer & AddChoiceAnswers(const ChoiceAnswer &value)
ReviewTemplateAnswer & WithImprovementPlanUrl(Aws::String &&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