AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
UpdateReviewTemplateAnswerRequest.h
1
6#pragma once
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>
14
15#include <utility>
16
17namespace Aws {
18namespace WellArchitected {
19namespace Model {
20
24 public:
25 AWS_WELLARCHITECTED_API UpdateReviewTemplateAnswerRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateReviewTemplateAnswer"; }
32
33 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetTemplateArn() const { return m_templateArn; }
40 inline bool TemplateArnHasBeenSet() const { return m_templateArnHasBeenSet; }
41 template <typename TemplateArnT = Aws::String>
42 void SetTemplateArn(TemplateArnT&& value) {
43 m_templateArnHasBeenSet = true;
44 m_templateArn = std::forward<TemplateArnT>(value);
45 }
46 template <typename TemplateArnT = Aws::String>
48 SetTemplateArn(std::forward<TemplateArnT>(value));
49 return *this;
50 }
52
54
55 inline const Aws::String& GetLensAlias() const { return m_lensAlias; }
56 inline bool LensAliasHasBeenSet() const { return m_lensAliasHasBeenSet; }
57 template <typename LensAliasT = Aws::String>
58 void SetLensAlias(LensAliasT&& value) {
59 m_lensAliasHasBeenSet = true;
60 m_lensAlias = std::forward<LensAliasT>(value);
61 }
62 template <typename LensAliasT = Aws::String>
64 SetLensAlias(std::forward<LensAliasT>(value));
65 return *this;
66 }
68
70
71 inline const Aws::String& GetQuestionId() const { return m_questionId; }
72 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
73 template <typename QuestionIdT = Aws::String>
74 void SetQuestionId(QuestionIdT&& value) {
75 m_questionIdHasBeenSet = true;
76 m_questionId = std::forward<QuestionIdT>(value);
77 }
78 template <typename QuestionIdT = Aws::String>
80 SetQuestionId(std::forward<QuestionIdT>(value));
81 return *this;
82 }
84
86
87 inline const Aws::Vector<Aws::String>& GetSelectedChoices() const { return m_selectedChoices; }
88 inline bool SelectedChoicesHasBeenSet() const { return m_selectedChoicesHasBeenSet; }
89 template <typename SelectedChoicesT = Aws::Vector<Aws::String>>
90 void SetSelectedChoices(SelectedChoicesT&& value) {
91 m_selectedChoicesHasBeenSet = true;
92 m_selectedChoices = std::forward<SelectedChoicesT>(value);
93 }
94 template <typename SelectedChoicesT = Aws::Vector<Aws::String>>
96 SetSelectedChoices(std::forward<SelectedChoicesT>(value));
97 return *this;
98 }
99 template <typename SelectedChoicesT = Aws::String>
101 m_selectedChoicesHasBeenSet = true;
102 m_selectedChoices.emplace_back(std::forward<SelectedChoicesT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Map<Aws::String, ChoiceUpdate>& GetChoiceUpdates() const { return m_choiceUpdates; }
112 inline bool ChoiceUpdatesHasBeenSet() const { return m_choiceUpdatesHasBeenSet; }
113 template <typename ChoiceUpdatesT = Aws::Map<Aws::String, ChoiceUpdate>>
114 void SetChoiceUpdates(ChoiceUpdatesT&& value) {
115 m_choiceUpdatesHasBeenSet = true;
116 m_choiceUpdates = std::forward<ChoiceUpdatesT>(value);
117 }
118 template <typename ChoiceUpdatesT = Aws::Map<Aws::String, ChoiceUpdate>>
120 SetChoiceUpdates(std::forward<ChoiceUpdatesT>(value));
121 return *this;
122 }
123 template <typename ChoiceUpdatesKeyT = Aws::String, typename ChoiceUpdatesValueT = ChoiceUpdate>
124 UpdateReviewTemplateAnswerRequest& AddChoiceUpdates(ChoiceUpdatesKeyT&& key, ChoiceUpdatesValueT&& value) {
125 m_choiceUpdatesHasBeenSet = true;
126 m_choiceUpdates.emplace(std::forward<ChoiceUpdatesKeyT>(key), std::forward<ChoiceUpdatesValueT>(value));
127 return *this;
128 }
130
132
133 inline const Aws::String& GetNotes() const { return m_notes; }
134 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
135 template <typename NotesT = Aws::String>
136 void SetNotes(NotesT&& value) {
137 m_notesHasBeenSet = true;
138 m_notes = std::forward<NotesT>(value);
139 }
140 template <typename NotesT = Aws::String>
142 SetNotes(std::forward<NotesT>(value));
143 return *this;
144 }
146
148
149 inline bool GetIsApplicable() const { return m_isApplicable; }
150 inline bool IsApplicableHasBeenSet() const { return m_isApplicableHasBeenSet; }
151 inline void SetIsApplicable(bool value) {
152 m_isApplicableHasBeenSet = true;
153 m_isApplicable = value;
154 }
156 SetIsApplicable(value);
157 return *this;
158 }
160
162
165 inline AnswerReason GetReason() const { return m_reason; }
166 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
167 inline void SetReason(AnswerReason value) {
168 m_reasonHasBeenSet = true;
169 m_reason = value;
170 }
172 SetReason(value);
173 return *this;
174 }
176 private:
177 Aws::String m_templateArn;
178 bool m_templateArnHasBeenSet = false;
179
180 Aws::String m_lensAlias;
181 bool m_lensAliasHasBeenSet = false;
182
183 Aws::String m_questionId;
184 bool m_questionIdHasBeenSet = false;
185
186 Aws::Vector<Aws::String> m_selectedChoices;
187 bool m_selectedChoicesHasBeenSet = false;
188
190 bool m_choiceUpdatesHasBeenSet = false;
191
192 Aws::String m_notes;
193 bool m_notesHasBeenSet = false;
194
195 bool m_isApplicable{false};
196 bool m_isApplicableHasBeenSet = false;
197
199 bool m_reasonHasBeenSet = false;
200};
201
202} // namespace Model
203} // namespace WellArchitected
204} // namespace Aws
UpdateReviewTemplateAnswerRequest & WithChoiceUpdates(ChoiceUpdatesT &&value)
UpdateReviewTemplateAnswerRequest & WithTemplateArn(TemplateArnT &&value)
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
UpdateReviewTemplateAnswerRequest & WithSelectedChoices(SelectedChoicesT &&value)
AWS_WELLARCHITECTED_API UpdateReviewTemplateAnswerRequest()=default
const Aws::Map< Aws::String, ChoiceUpdate > & GetChoiceUpdates() const
UpdateReviewTemplateAnswerRequest & WithQuestionId(QuestionIdT &&value)
UpdateReviewTemplateAnswerRequest & WithReason(AnswerReason value)
UpdateReviewTemplateAnswerRequest & AddSelectedChoices(SelectedChoicesT &&value)
UpdateReviewTemplateAnswerRequest & WithLensAlias(LensAliasT &&value)
UpdateReviewTemplateAnswerRequest & AddChoiceUpdates(ChoiceUpdatesKeyT &&key, ChoiceUpdatesValueT &&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