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/QuestionType.h>
13#include <aws/wellarchitected/model/JiraConfiguration.h>
14#include <aws/wellarchitected/model/Choice.h>
15#include <aws/wellarchitected/model/ChoiceAnswerSummary.h>
28namespace WellArchitected
52 template<
typename QuestionIdT = Aws::String>
53 void SetQuestionId(QuestionIdT&& value) { m_questionIdHasBeenSet =
true; m_questionId = std::forward<QuestionIdT>(value); }
54 template<
typename QuestionIdT = Aws::String>
62 template<
typename PillarIdT = Aws::String>
63 void SetPillarId(PillarIdT&& value) { m_pillarIdHasBeenSet =
true; m_pillarId = std::forward<PillarIdT>(value); }
64 template<
typename PillarIdT = Aws::String>
72 template<
typename QuestionTitleT = Aws::String>
73 void SetQuestionTitle(QuestionTitleT&& value) { m_questionTitleHasBeenSet =
true; m_questionTitle = std::forward<QuestionTitleT>(value); }
74 template<
typename QuestionTitleT = Aws::String>
82 template<
typename ChoicesT = Aws::Vector<Choice>>
83 void SetChoices(ChoicesT&& value) { m_choicesHasBeenSet =
true; m_choices = std::forward<ChoicesT>(value); }
84 template<
typename ChoicesT = Aws::Vector<Choice>>
86 template<
typename ChoicesT = Choice>
87 AnswerSummary&
AddChoices(ChoicesT&& value) { m_choicesHasBeenSet =
true; m_choices.emplace_back(std::forward<ChoicesT>(value));
return *
this; }
94 template<
typename SelectedChoicesT = Aws::Vector<Aws::String>>
95 void SetSelectedChoices(SelectedChoicesT&& value) { m_selectedChoicesHasBeenSet =
true; m_selectedChoices = std::forward<SelectedChoicesT>(value); }
96 template<
typename SelectedChoicesT = Aws::Vector<Aws::String>>
98 template<
typename SelectedChoicesT = Aws::String>
99 AnswerSummary&
AddSelectedChoices(SelectedChoicesT&& value) { m_selectedChoicesHasBeenSet =
true; m_selectedChoices.emplace_back(std::forward<SelectedChoicesT>(value));
return *
this; }
108 template<
typename ChoiceAnswerSummariesT = Aws::Vector<ChoiceAnswerSummary>>
109 void SetChoiceAnswerSummaries(ChoiceAnswerSummariesT&& value) { m_choiceAnswerSummariesHasBeenSet =
true; m_choiceAnswerSummaries = std::forward<ChoiceAnswerSummariesT>(value); }
110 template<
typename ChoiceAnswerSummariesT = Aws::Vector<ChoiceAnswerSummary>>
112 template<
typename ChoiceAnswerSummariesT = ChoiceAnswerSummary>
113 AnswerSummary&
AddChoiceAnswerSummaries(ChoiceAnswerSummariesT&& value) { m_choiceAnswerSummariesHasBeenSet =
true; m_choiceAnswerSummaries.emplace_back(std::forward<ChoiceAnswerSummariesT>(value));
return *
this; }
120 inline void SetIsApplicable(
bool value) { m_isApplicableHasBeenSet =
true; m_isApplicable = value; }
128 inline void SetRisk(
Risk value) { m_riskHasBeenSet =
true; m_risk = value; }
158 template<
typename JiraConfigurationT = JiraConfiguration>
159 void SetJiraConfiguration(JiraConfigurationT&& value) { m_jiraConfigurationHasBeenSet =
true; m_jiraConfiguration = std::forward<JiraConfigurationT>(value); }
160 template<
typename JiraConfigurationT = JiraConfiguration>
166 bool m_questionIdHasBeenSet =
false;
169 bool m_pillarIdHasBeenSet =
false;
172 bool m_questionTitleHasBeenSet =
false;
175 bool m_choicesHasBeenSet =
false;
178 bool m_selectedChoicesHasBeenSet =
false;
181 bool m_choiceAnswerSummariesHasBeenSet =
false;
183 bool m_isApplicable{
false};
184 bool m_isApplicableHasBeenSet =
false;
187 bool m_riskHasBeenSet =
false;
190 bool m_reasonHasBeenSet =
false;
193 bool m_questionTypeHasBeenSet =
false;
195 JiraConfiguration m_jiraConfiguration;
196 bool m_jiraConfigurationHasBeenSet =
false;
AnswerSummary & WithQuestionType(QuestionType value)
void SetSelectedChoices(SelectedChoicesT &&value)
bool QuestionIdHasBeenSet() const
const Aws::Vector< Aws::String > & GetSelectedChoices() const
AnswerSummary & WithJiraConfiguration(JiraConfigurationT &&value)
void SetChoices(ChoicesT &&value)
bool ChoiceAnswerSummariesHasBeenSet() const
AnswerSummary & WithChoiceAnswerSummaries(ChoiceAnswerSummariesT &&value)
AnswerSummary & WithRisk(Risk value)
void SetPillarId(PillarIdT &&value)
const Aws::Vector< ChoiceAnswerSummary > & GetChoiceAnswerSummaries() const
void SetQuestionType(QuestionType value)
void SetChoiceAnswerSummaries(ChoiceAnswerSummariesT &&value)
void SetJiraConfiguration(JiraConfigurationT &&value)
bool GetIsApplicable() const
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetPillarId() const
AWS_WELLARCHITECTED_API AnswerSummary()=default
AnswerSummary & AddChoiceAnswerSummaries(ChoiceAnswerSummariesT &&value)
bool IsApplicableHasBeenSet() const
const Aws::Vector< Choice > & GetChoices() const
AWS_WELLARCHITECTED_API AnswerSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AnswerSummary & WithIsApplicable(bool value)
bool PillarIdHasBeenSet() const
const Aws::String & GetQuestionTitle() const
bool RiskHasBeenSet() const
const JiraConfiguration & GetJiraConfiguration() const
void SetQuestionId(QuestionIdT &&value)
bool QuestionTypeHasBeenSet() const
bool ChoicesHasBeenSet() const
AnswerSummary & AddSelectedChoices(SelectedChoicesT &&value)
bool JiraConfigurationHasBeenSet() const
AnswerSummary & WithSelectedChoices(SelectedChoicesT &&value)
void SetIsApplicable(bool value)
AnswerSummary & WithQuestionTitle(QuestionTitleT &&value)
AnswerSummary & WithPillarId(PillarIdT &&value)
AnswerSummary & WithChoices(ChoicesT &&value)
bool ReasonHasBeenSet() const
void SetQuestionTitle(QuestionTitleT &&value)
AnswerSummary & WithReason(AnswerReason value)
QuestionType GetQuestionType() const
AnswerReason GetReason() const
AnswerSummary & WithQuestionId(QuestionIdT &&value)
AWS_WELLARCHITECTED_API AnswerSummary(Aws::Utils::Json::JsonView jsonValue)
bool SelectedChoicesHasBeenSet() const
bool QuestionTitleHasBeenSet() const
const Aws::String & GetQuestionId() const
void SetReason(AnswerReason value)
AnswerSummary & AddChoices(ChoicesT &&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