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>
25namespace WellArchitected {
35 AWS_WELLARCHITECTED_API
Answer() =
default;
44 template <
typename QuestionIdT = Aws::String>
46 m_questionIdHasBeenSet =
true;
47 m_questionId = std::forward<QuestionIdT>(value);
49 template <
typename QuestionIdT = Aws::String>
60 template <
typename PillarIdT = Aws::String>
62 m_pillarIdHasBeenSet =
true;
63 m_pillarId = std::forward<PillarIdT>(value);
65 template <
typename PillarIdT = Aws::String>
76 template <
typename QuestionTitleT = Aws::String>
78 m_questionTitleHasBeenSet =
true;
79 m_questionTitle = std::forward<QuestionTitleT>(value);
81 template <
typename QuestionTitleT = Aws::String>
92 template <
typename QuestionDescriptionT = Aws::String>
94 m_questionDescriptionHasBeenSet =
true;
95 m_questionDescription = std::forward<QuestionDescriptionT>(value);
97 template <
typename QuestionDescriptionT = Aws::String>
108 template <
typename ImprovementPlanUrlT = Aws::String>
110 m_improvementPlanUrlHasBeenSet =
true;
111 m_improvementPlanUrl = std::forward<ImprovementPlanUrlT>(value);
113 template <
typename ImprovementPlanUrlT = Aws::String>
124 template <
typename HelpfulResourceUrlT = Aws::String>
126 m_helpfulResourceUrlHasBeenSet =
true;
127 m_helpfulResourceUrl = std::forward<HelpfulResourceUrlT>(value);
129 template <
typename HelpfulResourceUrlT = Aws::String>
143 template <
typename HelpfulResourceDisplayTextT = Aws::String>
145 m_helpfulResourceDisplayTextHasBeenSet =
true;
146 m_helpfulResourceDisplayText = std::forward<HelpfulResourceDisplayTextT>(value);
148 template <
typename HelpfulResourceDisplayTextT = Aws::String>
159 template <
typename ChoicesT = Aws::Vector<Choice>>
161 m_choicesHasBeenSet =
true;
162 m_choices = std::forward<ChoicesT>(value);
164 template <
typename ChoicesT = Aws::Vector<Choice>>
169 template <
typename ChoicesT = Choice>
171 m_choicesHasBeenSet =
true;
172 m_choices.emplace_back(std::forward<ChoicesT>(value));
181 template <
typename SelectedChoicesT = Aws::Vector<Aws::String>>
183 m_selectedChoicesHasBeenSet =
true;
184 m_selectedChoices = std::forward<SelectedChoicesT>(value);
186 template <
typename SelectedChoicesT = Aws::Vector<Aws::String>>
191 template <
typename SelectedChoicesT = Aws::String>
193 m_selectedChoicesHasBeenSet =
true;
194 m_selectedChoices.emplace_back(std::forward<SelectedChoicesT>(value));
205 template <
typename ChoiceAnswersT = Aws::Vector<ChoiceAnswer>>
207 m_choiceAnswersHasBeenSet =
true;
208 m_choiceAnswers = std::forward<ChoiceAnswersT>(value);
210 template <
typename ChoiceAnswersT = Aws::Vector<ChoiceAnswer>>
215 template <
typename ChoiceAnswersT = ChoiceAnswer>
217 m_choiceAnswersHasBeenSet =
true;
218 m_choiceAnswers.emplace_back(std::forward<ChoiceAnswersT>(value));
228 m_isApplicableHasBeenSet =
true;
229 m_isApplicable = value;
242 m_riskHasBeenSet =
true;
255 template <
typename NotesT = Aws::String>
257 m_notesHasBeenSet =
true;
258 m_notes = std::forward<NotesT>(value);
260 template <
typename NotesT = Aws::String>
262 SetNotes(std::forward<NotesT>(value));
274 m_reasonHasBeenSet =
true;
289 template <
typename JiraConfigurationT = JiraConfiguration>
291 m_jiraConfigurationHasBeenSet =
true;
292 m_jiraConfiguration = std::forward<JiraConfigurationT>(value);
294 template <
typename JiraConfigurationT = JiraConfiguration>
321 bool m_isApplicable{
false};
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;
bool ChoiceAnswersHasBeenSet() const
Answer & WithHelpfulResourceUrl(HelpfulResourceUrlT &&value)
void SetIsApplicable(bool value)
void SetQuestionTitle(QuestionTitleT &&value)
bool QuestionTitleHasBeenSet() const
void SetQuestionId(QuestionIdT &&value)
bool GetIsApplicable() const
bool NotesHasBeenSet() const
void SetJiraConfiguration(JiraConfigurationT &&value)
const Aws::Vector< Choice > & GetChoices() const
const Aws::Vector< Aws::String > & GetSelectedChoices() const
void SetQuestionDescription(QuestionDescriptionT &&value)
bool RiskHasBeenSet() const
bool JiraConfigurationHasBeenSet() const
AnswerReason GetReason() const
Answer & AddSelectedChoices(SelectedChoicesT &&value)
const Aws::String & GetQuestionId() const
bool ReasonHasBeenSet() const
const JiraConfiguration & GetJiraConfiguration() const
Answer & WithPillarId(PillarIdT &&value)
void SetPillarId(PillarIdT &&value)
Answer & WithChoices(ChoicesT &&value)
const Aws::String & GetQuestionTitle() const
Answer & WithQuestionTitle(QuestionTitleT &&value)
Answer & AddChoices(ChoicesT &&value)
Answer & WithNotes(NotesT &&value)
Answer & AddChoiceAnswers(ChoiceAnswersT &&value)
Answer & WithChoiceAnswers(ChoiceAnswersT &&value)
bool ImprovementPlanUrlHasBeenSet() const
bool IsApplicableHasBeenSet() const
Answer & WithReason(AnswerReason value)
Answer & WithQuestionDescription(QuestionDescriptionT &&value)
Answer & WithHelpfulResourceDisplayText(HelpfulResourceDisplayTextT &&value)
bool HelpfulResourceUrlHasBeenSet() const
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
bool PillarIdHasBeenSet() const
const Aws::String & GetImprovementPlanUrl() const
bool SelectedChoicesHasBeenSet() const
void SetChoices(ChoicesT &&value)
void SetNotes(NotesT &&value)
bool ChoicesHasBeenSet() const
void SetReason(AnswerReason value)
AWS_WELLARCHITECTED_API Answer(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetHelpfulResourceDisplayText() const
const Aws::String & GetHelpfulResourceUrl() const
bool QuestionDescriptionHasBeenSet() const
const Aws::String & GetNotes() const
Answer & WithJiraConfiguration(JiraConfigurationT &&value)
void SetSelectedChoices(SelectedChoicesT &&value)
const Aws::String & GetQuestionDescription() const
Answer & WithQuestionId(QuestionIdT &&value)
AWS_WELLARCHITECTED_API Answer()=default
AWS_WELLARCHITECTED_API Answer & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetChoiceAnswers(ChoiceAnswersT &&value)
Answer & WithImprovementPlanUrl(ImprovementPlanUrlT &&value)
const Aws::Vector< ChoiceAnswer > & GetChoiceAnswers() const
void SetHelpfulResourceUrl(HelpfulResourceUrlT &&value)
bool HelpfulResourceDisplayTextHasBeenSet() const
void SetHelpfulResourceDisplayText(HelpfulResourceDisplayTextT &&value)
void SetImprovementPlanUrl(ImprovementPlanUrlT &&value)
Answer & WithSelectedChoices(SelectedChoicesT &&value)
bool QuestionIdHasBeenSet() const
const Aws::String & GetPillarId() const
Answer & WithRisk(Risk value)
Answer & WithIsApplicable(bool 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