7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/wellarchitected/WellArchitectedRequest.h>
11#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
12#include <aws/wellarchitected/model/AnswerReason.h>
13#include <aws/wellarchitected/model/ChoiceUpdate.h>
18namespace WellArchitected {
42 template <
typename WorkloadIdT = Aws::String>
44 m_workloadIdHasBeenSet =
true;
45 m_workloadId = std::forward<WorkloadIdT>(value);
47 template <
typename WorkloadIdT = Aws::String>
58 template <
typename LensAliasT = Aws::String>
60 m_lensAliasHasBeenSet =
true;
61 m_lensAlias = std::forward<LensAliasT>(value);
63 template <
typename LensAliasT = Aws::String>
74 template <
typename QuestionIdT = Aws::String>
76 m_questionIdHasBeenSet =
true;
77 m_questionId = std::forward<QuestionIdT>(value);
79 template <
typename QuestionIdT = Aws::String>
90 template <
typename SelectedChoicesT = Aws::Vector<Aws::String>>
92 m_selectedChoicesHasBeenSet =
true;
93 m_selectedChoices = std::forward<SelectedChoicesT>(value);
95 template <
typename SelectedChoicesT = Aws::Vector<Aws::String>>
100 template <
typename SelectedChoicesT = Aws::String>
102 m_selectedChoicesHasBeenSet =
true;
103 m_selectedChoices.emplace_back(std::forward<SelectedChoicesT>(value));
115 template <
typename ChoiceUpdatesT = Aws::Map<Aws::String, ChoiceUpdate>>
117 m_choiceUpdatesHasBeenSet =
true;
118 m_choiceUpdates = std::forward<ChoiceUpdatesT>(value);
120 template <
typename ChoiceUpdatesT = Aws::Map<Aws::String, ChoiceUpdate>>
125 template <
typename ChoiceUpdatesKeyT = Aws::String,
typename ChoiceUpdatesValueT = ChoiceUpdate>
127 m_choiceUpdatesHasBeenSet =
true;
128 m_choiceUpdates.emplace(std::forward<ChoiceUpdatesKeyT>(key), std::forward<ChoiceUpdatesValueT>(value));
137 template <
typename NotesT = Aws::String>
139 m_notesHasBeenSet =
true;
140 m_notes = std::forward<NotesT>(value);
142 template <
typename NotesT = Aws::String>
144 SetNotes(std::forward<NotesT>(value));
154 m_isApplicableHasBeenSet =
true;
155 m_isApplicable = value;
170 m_reasonHasBeenSet =
true;
180 bool m_workloadIdHasBeenSet =
false;
183 bool m_lensAliasHasBeenSet =
false;
186 bool m_questionIdHasBeenSet =
false;
189 bool m_selectedChoicesHasBeenSet =
false;
192 bool m_choiceUpdatesHasBeenSet =
false;
195 bool m_notesHasBeenSet =
false;
197 bool m_isApplicable{
false};
198 bool m_isApplicableHasBeenSet =
false;
201 bool m_reasonHasBeenSet =
false;
const Aws::Vector< Aws::String > & GetSelectedChoices() const
UpdateAnswerRequest & WithReason(AnswerReason value)
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
bool QuestionIdHasBeenSet() const
const Aws::String & GetQuestionId() const
bool SelectedChoicesHasBeenSet() const
bool ChoiceUpdatesHasBeenSet() const
UpdateAnswerRequest & WithSelectedChoices(SelectedChoicesT &&value)
UpdateAnswerRequest & WithChoiceUpdates(ChoiceUpdatesT &&value)
const Aws::String & GetLensAlias() const
bool WorkloadIdHasBeenSet() const
bool LensAliasHasBeenSet() const
void SetWorkloadId(WorkloadIdT &&value)
bool IsApplicableHasBeenSet() const
void SetSelectedChoices(SelectedChoicesT &&value)
UpdateAnswerRequest & AddSelectedChoices(SelectedChoicesT &&value)
AWS_WELLARCHITECTED_API UpdateAnswerRequest()=default
void SetLensAlias(LensAliasT &&value)
void SetNotes(NotesT &&value)
UpdateAnswerRequest & WithQuestionId(QuestionIdT &&value)
const Aws::String & GetWorkloadId() const
UpdateAnswerRequest & WithWorkloadId(WorkloadIdT &&value)
UpdateAnswerRequest & AddChoiceUpdates(ChoiceUpdatesKeyT &&key, ChoiceUpdatesValueT &&value)
UpdateAnswerRequest & WithIsApplicable(bool value)
void SetReason(AnswerReason value)
UpdateAnswerRequest & WithLensAlias(LensAliasT &&value)
UpdateAnswerRequest & WithNotes(NotesT &&value)
bool GetIsApplicable() const
void SetChoiceUpdates(ChoiceUpdatesT &&value)
const Aws::String & GetNotes() const
virtual const char * GetServiceRequestName() const override
AnswerReason GetReason() const
bool ReasonHasBeenSet() const
const Aws::Map< Aws::String, ChoiceUpdate > & GetChoiceUpdates() const
void SetQuestionId(QuestionIdT &&value)
bool NotesHasBeenSet() const
void SetIsApplicable(bool value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector