AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Answer.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/JiraConfiguration.h>
13#include <aws/wellarchitected/model/Choice.h>
14#include <aws/wellarchitected/model/ChoiceAnswer.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace WellArchitected
28{
29namespace Model
30{
31
37 class Answer
38 {
39 public:
40 AWS_WELLARCHITECTED_API Answer() = default;
41 AWS_WELLARCHITECTED_API Answer(Aws::Utils::Json::JsonView jsonValue);
42 AWS_WELLARCHITECTED_API Answer& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
48 inline const Aws::String& GetQuestionId() const { return m_questionId; }
49 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
50 template<typename QuestionIdT = Aws::String>
51 void SetQuestionId(QuestionIdT&& value) { m_questionIdHasBeenSet = true; m_questionId = std::forward<QuestionIdT>(value); }
52 template<typename QuestionIdT = Aws::String>
53 Answer& WithQuestionId(QuestionIdT&& value) { SetQuestionId(std::forward<QuestionIdT>(value)); return *this;}
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) { m_pillarIdHasBeenSet = true; m_pillarId = std::forward<PillarIdT>(value); }
62 template<typename PillarIdT = Aws::String>
63 Answer& WithPillarId(PillarIdT&& value) { SetPillarId(std::forward<PillarIdT>(value)); return *this;}
65
67
68 inline const Aws::String& GetQuestionTitle() const { return m_questionTitle; }
69 inline bool QuestionTitleHasBeenSet() const { return m_questionTitleHasBeenSet; }
70 template<typename QuestionTitleT = Aws::String>
71 void SetQuestionTitle(QuestionTitleT&& value) { m_questionTitleHasBeenSet = true; m_questionTitle = std::forward<QuestionTitleT>(value); }
72 template<typename QuestionTitleT = Aws::String>
73 Answer& WithQuestionTitle(QuestionTitleT&& value) { SetQuestionTitle(std::forward<QuestionTitleT>(value)); return *this;}
75
77
78 inline const Aws::String& GetQuestionDescription() const { return m_questionDescription; }
79 inline bool QuestionDescriptionHasBeenSet() const { return m_questionDescriptionHasBeenSet; }
80 template<typename QuestionDescriptionT = Aws::String>
81 void SetQuestionDescription(QuestionDescriptionT&& value) { m_questionDescriptionHasBeenSet = true; m_questionDescription = std::forward<QuestionDescriptionT>(value); }
82 template<typename QuestionDescriptionT = Aws::String>
83 Answer& WithQuestionDescription(QuestionDescriptionT&& value) { SetQuestionDescription(std::forward<QuestionDescriptionT>(value)); return *this;}
85
87
88 inline const Aws::String& GetImprovementPlanUrl() const { return m_improvementPlanUrl; }
89 inline bool ImprovementPlanUrlHasBeenSet() const { return m_improvementPlanUrlHasBeenSet; }
90 template<typename ImprovementPlanUrlT = Aws::String>
91 void SetImprovementPlanUrl(ImprovementPlanUrlT&& value) { m_improvementPlanUrlHasBeenSet = true; m_improvementPlanUrl = std::forward<ImprovementPlanUrlT>(value); }
92 template<typename ImprovementPlanUrlT = Aws::String>
93 Answer& WithImprovementPlanUrl(ImprovementPlanUrlT&& value) { SetImprovementPlanUrl(std::forward<ImprovementPlanUrlT>(value)); return *this;}
95
97
98 inline const Aws::String& GetHelpfulResourceUrl() const { return m_helpfulResourceUrl; }
99 inline bool HelpfulResourceUrlHasBeenSet() const { return m_helpfulResourceUrlHasBeenSet; }
100 template<typename HelpfulResourceUrlT = Aws::String>
101 void SetHelpfulResourceUrl(HelpfulResourceUrlT&& value) { m_helpfulResourceUrlHasBeenSet = true; m_helpfulResourceUrl = std::forward<HelpfulResourceUrlT>(value); }
102 template<typename HelpfulResourceUrlT = Aws::String>
103 Answer& WithHelpfulResourceUrl(HelpfulResourceUrlT&& value) { SetHelpfulResourceUrl(std::forward<HelpfulResourceUrlT>(value)); return *this;}
105
107
111 inline const Aws::String& GetHelpfulResourceDisplayText() const { return m_helpfulResourceDisplayText; }
112 inline bool HelpfulResourceDisplayTextHasBeenSet() const { return m_helpfulResourceDisplayTextHasBeenSet; }
113 template<typename HelpfulResourceDisplayTextT = Aws::String>
114 void SetHelpfulResourceDisplayText(HelpfulResourceDisplayTextT&& value) { m_helpfulResourceDisplayTextHasBeenSet = true; m_helpfulResourceDisplayText = std::forward<HelpfulResourceDisplayTextT>(value); }
115 template<typename HelpfulResourceDisplayTextT = Aws::String>
116 Answer& WithHelpfulResourceDisplayText(HelpfulResourceDisplayTextT&& value) { SetHelpfulResourceDisplayText(std::forward<HelpfulResourceDisplayTextT>(value)); return *this;}
118
120
121 inline const Aws::Vector<Choice>& GetChoices() const { return m_choices; }
122 inline bool ChoicesHasBeenSet() const { return m_choicesHasBeenSet; }
123 template<typename ChoicesT = Aws::Vector<Choice>>
124 void SetChoices(ChoicesT&& value) { m_choicesHasBeenSet = true; m_choices = std::forward<ChoicesT>(value); }
125 template<typename ChoicesT = Aws::Vector<Choice>>
126 Answer& WithChoices(ChoicesT&& value) { SetChoices(std::forward<ChoicesT>(value)); return *this;}
127 template<typename ChoicesT = Choice>
128 Answer& AddChoices(ChoicesT&& value) { m_choicesHasBeenSet = true; m_choices.emplace_back(std::forward<ChoicesT>(value)); return *this; }
130
132
133 inline const Aws::Vector<Aws::String>& GetSelectedChoices() const { return m_selectedChoices; }
134 inline bool SelectedChoicesHasBeenSet() const { return m_selectedChoicesHasBeenSet; }
135 template<typename SelectedChoicesT = Aws::Vector<Aws::String>>
136 void SetSelectedChoices(SelectedChoicesT&& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices = std::forward<SelectedChoicesT>(value); }
137 template<typename SelectedChoicesT = Aws::Vector<Aws::String>>
138 Answer& WithSelectedChoices(SelectedChoicesT&& value) { SetSelectedChoices(std::forward<SelectedChoicesT>(value)); return *this;}
139 template<typename SelectedChoicesT = Aws::String>
140 Answer& AddSelectedChoices(SelectedChoicesT&& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices.emplace_back(std::forward<SelectedChoicesT>(value)); return *this; }
142
144
147 inline const Aws::Vector<ChoiceAnswer>& GetChoiceAnswers() const { return m_choiceAnswers; }
148 inline bool ChoiceAnswersHasBeenSet() const { return m_choiceAnswersHasBeenSet; }
149 template<typename ChoiceAnswersT = Aws::Vector<ChoiceAnswer>>
150 void SetChoiceAnswers(ChoiceAnswersT&& value) { m_choiceAnswersHasBeenSet = true; m_choiceAnswers = std::forward<ChoiceAnswersT>(value); }
151 template<typename ChoiceAnswersT = Aws::Vector<ChoiceAnswer>>
152 Answer& WithChoiceAnswers(ChoiceAnswersT&& value) { SetChoiceAnswers(std::forward<ChoiceAnswersT>(value)); return *this;}
153 template<typename ChoiceAnswersT = ChoiceAnswer>
154 Answer& AddChoiceAnswers(ChoiceAnswersT&& value) { m_choiceAnswersHasBeenSet = true; m_choiceAnswers.emplace_back(std::forward<ChoiceAnswersT>(value)); return *this; }
156
158
159 inline bool GetIsApplicable() const { return m_isApplicable; }
160 inline bool IsApplicableHasBeenSet() const { return m_isApplicableHasBeenSet; }
161 inline void SetIsApplicable(bool value) { m_isApplicableHasBeenSet = true; m_isApplicable = value; }
162 inline Answer& WithIsApplicable(bool value) { SetIsApplicable(value); return *this;}
164
166
167 inline Risk GetRisk() const { return m_risk; }
168 inline bool RiskHasBeenSet() const { return m_riskHasBeenSet; }
169 inline void SetRisk(Risk value) { m_riskHasBeenSet = true; m_risk = value; }
170 inline Answer& WithRisk(Risk value) { SetRisk(value); return *this;}
172
174
175 inline const Aws::String& GetNotes() const { return m_notes; }
176 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
177 template<typename NotesT = Aws::String>
178 void SetNotes(NotesT&& value) { m_notesHasBeenSet = true; m_notes = std::forward<NotesT>(value); }
179 template<typename NotesT = Aws::String>
180 Answer& WithNotes(NotesT&& value) { SetNotes(std::forward<NotesT>(value)); return *this;}
182
184
187 inline AnswerReason GetReason() const { return m_reason; }
188 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
189 inline void SetReason(AnswerReason value) { m_reasonHasBeenSet = true; m_reason = value; }
190 inline Answer& WithReason(AnswerReason value) { SetReason(value); return *this;}
192
194
197 inline const JiraConfiguration& GetJiraConfiguration() const { return m_jiraConfiguration; }
198 inline bool JiraConfigurationHasBeenSet() const { return m_jiraConfigurationHasBeenSet; }
199 template<typename JiraConfigurationT = JiraConfiguration>
200 void SetJiraConfiguration(JiraConfigurationT&& value) { m_jiraConfigurationHasBeenSet = true; m_jiraConfiguration = std::forward<JiraConfigurationT>(value); }
201 template<typename JiraConfigurationT = JiraConfiguration>
202 Answer& WithJiraConfiguration(JiraConfigurationT&& value) { SetJiraConfiguration(std::forward<JiraConfigurationT>(value)); return *this;}
204 private:
205
206 Aws::String m_questionId;
207 bool m_questionIdHasBeenSet = false;
208
209 Aws::String m_pillarId;
210 bool m_pillarIdHasBeenSet = false;
211
212 Aws::String m_questionTitle;
213 bool m_questionTitleHasBeenSet = false;
214
215 Aws::String m_questionDescription;
216 bool m_questionDescriptionHasBeenSet = false;
217
218 Aws::String m_improvementPlanUrl;
219 bool m_improvementPlanUrlHasBeenSet = false;
220
221 Aws::String m_helpfulResourceUrl;
222 bool m_helpfulResourceUrlHasBeenSet = false;
223
224 Aws::String m_helpfulResourceDisplayText;
225 bool m_helpfulResourceDisplayTextHasBeenSet = false;
226
227 Aws::Vector<Choice> m_choices;
228 bool m_choicesHasBeenSet = false;
229
230 Aws::Vector<Aws::String> m_selectedChoices;
231 bool m_selectedChoicesHasBeenSet = false;
232
233 Aws::Vector<ChoiceAnswer> m_choiceAnswers;
234 bool m_choiceAnswersHasBeenSet = false;
235
236 bool m_isApplicable{false};
237 bool m_isApplicableHasBeenSet = false;
238
239 Risk m_risk{Risk::NOT_SET};
240 bool m_riskHasBeenSet = false;
241
242 Aws::String m_notes;
243 bool m_notesHasBeenSet = false;
244
246 bool m_reasonHasBeenSet = false;
247
248 JiraConfiguration m_jiraConfiguration;
249 bool m_jiraConfigurationHasBeenSet = false;
250 };
251
252} // namespace Model
253} // namespace WellArchitected
254} // namespace Aws
Answer & WithHelpfulResourceUrl(HelpfulResourceUrlT &&value)
Definition Answer.h:103
void SetIsApplicable(bool value)
Definition Answer.h:161
void SetQuestionTitle(QuestionTitleT &&value)
Definition Answer.h:71
void SetQuestionId(QuestionIdT &&value)
Definition Answer.h:51
void SetJiraConfiguration(JiraConfigurationT &&value)
Definition Answer.h:200
const Aws::Vector< Choice > & GetChoices() const
Definition Answer.h:121
const Aws::Vector< Aws::String > & GetSelectedChoices() const
Definition Answer.h:133
void SetQuestionDescription(QuestionDescriptionT &&value)
Definition Answer.h:81
bool JiraConfigurationHasBeenSet() const
Definition Answer.h:198
AnswerReason GetReason() const
Definition Answer.h:187
Answer & AddSelectedChoices(SelectedChoicesT &&value)
Definition Answer.h:140
const Aws::String & GetQuestionId() const
Definition Answer.h:48
const JiraConfiguration & GetJiraConfiguration() const
Definition Answer.h:197
Answer & WithPillarId(PillarIdT &&value)
Definition Answer.h:63
void SetPillarId(PillarIdT &&value)
Definition Answer.h:61
Answer & WithChoices(ChoicesT &&value)
Definition Answer.h:126
const Aws::String & GetQuestionTitle() const
Definition Answer.h:68
Answer & WithQuestionTitle(QuestionTitleT &&value)
Definition Answer.h:73
Answer & AddChoices(ChoicesT &&value)
Definition Answer.h:128
Answer & WithNotes(NotesT &&value)
Definition Answer.h:180
Answer & AddChoiceAnswers(ChoiceAnswersT &&value)
Definition Answer.h:154
Answer & WithChoiceAnswers(ChoiceAnswersT &&value)
Definition Answer.h:152
bool ImprovementPlanUrlHasBeenSet() const
Definition Answer.h:89
Answer & WithReason(AnswerReason value)
Definition Answer.h:190
Answer & WithQuestionDescription(QuestionDescriptionT &&value)
Definition Answer.h:83
Answer & WithHelpfulResourceDisplayText(HelpfulResourceDisplayTextT &&value)
Definition Answer.h:116
bool HelpfulResourceUrlHasBeenSet() const
Definition Answer.h:99
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetImprovementPlanUrl() const
Definition Answer.h:88
void SetChoices(ChoicesT &&value)
Definition Answer.h:124
void SetNotes(NotesT &&value)
Definition Answer.h:178
void SetReason(AnswerReason value)
Definition Answer.h:189
AWS_WELLARCHITECTED_API Answer(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetHelpfulResourceDisplayText() const
Definition Answer.h:111
const Aws::String & GetHelpfulResourceUrl() const
Definition Answer.h:98
bool QuestionDescriptionHasBeenSet() const
Definition Answer.h:79
const Aws::String & GetNotes() const
Definition Answer.h:175
Answer & WithJiraConfiguration(JiraConfigurationT &&value)
Definition Answer.h:202
void SetSelectedChoices(SelectedChoicesT &&value)
Definition Answer.h:136
const Aws::String & GetQuestionDescription() const
Definition Answer.h:78
Answer & WithQuestionId(QuestionIdT &&value)
Definition Answer.h:53
AWS_WELLARCHITECTED_API Answer()=default
AWS_WELLARCHITECTED_API Answer & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetChoiceAnswers(ChoiceAnswersT &&value)
Definition Answer.h:150
Answer & WithImprovementPlanUrl(ImprovementPlanUrlT &&value)
Definition Answer.h:93
const Aws::Vector< ChoiceAnswer > & GetChoiceAnswers() const
Definition Answer.h:147
void SetHelpfulResourceUrl(HelpfulResourceUrlT &&value)
Definition Answer.h:101
bool HelpfulResourceDisplayTextHasBeenSet() const
Definition Answer.h:112
void SetHelpfulResourceDisplayText(HelpfulResourceDisplayTextT &&value)
Definition Answer.h:114
void SetImprovementPlanUrl(ImprovementPlanUrlT &&value)
Definition Answer.h:91
Answer & WithSelectedChoices(SelectedChoicesT &&value)
Definition Answer.h:138
const Aws::String & GetPillarId() const
Definition Answer.h:58
Answer & WithRisk(Risk value)
Definition Answer.h:170
Answer & WithIsApplicable(bool value)
Definition Answer.h:162
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue