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>
27namespace WellArchitected
40 AWS_WELLARCHITECTED_API
Answer() =
default;
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>
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>
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>
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>
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>
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>
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>
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>>
127 template<
typename ChoicesT = Choice>
128 Answer&
AddChoices(ChoicesT&& value) { m_choicesHasBeenSet =
true; m_choices.emplace_back(std::forward<ChoicesT>(value));
return *
this; }
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>>
139 template<
typename SelectedChoicesT = Aws::String>
140 Answer&
AddSelectedChoices(SelectedChoicesT&& value) { m_selectedChoicesHasBeenSet =
true; m_selectedChoices.emplace_back(std::forward<SelectedChoicesT>(value));
return *
this; }
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>>
153 template<
typename ChoiceAnswersT = ChoiceAnswer>
154 Answer&
AddChoiceAnswers(ChoiceAnswersT&& value) { m_choiceAnswersHasBeenSet =
true; m_choiceAnswers.emplace_back(std::forward<ChoiceAnswersT>(value));
return *
this; }
161 inline void SetIsApplicable(
bool value) { m_isApplicableHasBeenSet =
true; m_isApplicable = value; }
169 inline void SetRisk(
Risk value) { m_riskHasBeenSet =
true; m_risk = value; }
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>
199 template<
typename JiraConfigurationT = JiraConfiguration>
200 void SetJiraConfiguration(JiraConfigurationT&& value) { m_jiraConfigurationHasBeenSet =
true; m_jiraConfiguration = std::forward<JiraConfigurationT>(value); }
201 template<
typename JiraConfigurationT = JiraConfiguration>
207 bool m_questionIdHasBeenSet =
false;
210 bool m_pillarIdHasBeenSet =
false;
213 bool m_questionTitleHasBeenSet =
false;
216 bool m_questionDescriptionHasBeenSet =
false;
219 bool m_improvementPlanUrlHasBeenSet =
false;
222 bool m_helpfulResourceUrlHasBeenSet =
false;
225 bool m_helpfulResourceDisplayTextHasBeenSet =
false;
228 bool m_choicesHasBeenSet =
false;
231 bool m_selectedChoicesHasBeenSet =
false;
234 bool m_choiceAnswersHasBeenSet =
false;
236 bool m_isApplicable{
false};
237 bool m_isApplicableHasBeenSet =
false;
240 bool m_riskHasBeenSet =
false;
243 bool m_notesHasBeenSet =
false;
246 bool m_reasonHasBeenSet =
false;
248 JiraConfiguration m_jiraConfiguration;
249 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