AWS SDK for C++

AWS SDK for C++ Version 1.11.686

Loading...
Searching...
No Matches
UpdateAnswerRequest.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
27 public:
28 AWS_WELLARCHITECTED_API UpdateAnswerRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateAnswer"; }
35
36 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
37
39
40 inline const Aws::String& GetWorkloadId() const { return m_workloadId; }
41 inline bool WorkloadIdHasBeenSet() const { return m_workloadIdHasBeenSet; }
42 template <typename WorkloadIdT = Aws::String>
43 void SetWorkloadId(WorkloadIdT&& value) {
44 m_workloadIdHasBeenSet = true;
45 m_workloadId = std::forward<WorkloadIdT>(value);
46 }
47 template <typename WorkloadIdT = Aws::String>
48 UpdateAnswerRequest& WithWorkloadId(WorkloadIdT&& value) {
49 SetWorkloadId(std::forward<WorkloadIdT>(value));
50 return *this;
51 }
53
55
56 inline const Aws::String& GetLensAlias() const { return m_lensAlias; }
57 inline bool LensAliasHasBeenSet() const { return m_lensAliasHasBeenSet; }
58 template <typename LensAliasT = Aws::String>
59 void SetLensAlias(LensAliasT&& value) {
60 m_lensAliasHasBeenSet = true;
61 m_lensAlias = std::forward<LensAliasT>(value);
62 }
63 template <typename LensAliasT = Aws::String>
64 UpdateAnswerRequest& WithLensAlias(LensAliasT&& value) {
65 SetLensAlias(std::forward<LensAliasT>(value));
66 return *this;
67 }
69
71
72 inline const Aws::String& GetQuestionId() const { return m_questionId; }
73 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
74 template <typename QuestionIdT = Aws::String>
75 void SetQuestionId(QuestionIdT&& value) {
76 m_questionIdHasBeenSet = true;
77 m_questionId = std::forward<QuestionIdT>(value);
78 }
79 template <typename QuestionIdT = Aws::String>
80 UpdateAnswerRequest& WithQuestionId(QuestionIdT&& value) {
81 SetQuestionId(std::forward<QuestionIdT>(value));
82 return *this;
83 }
85
87
88 inline const Aws::Vector<Aws::String>& GetSelectedChoices() const { return m_selectedChoices; }
89 inline bool SelectedChoicesHasBeenSet() const { return m_selectedChoicesHasBeenSet; }
90 template <typename SelectedChoicesT = Aws::Vector<Aws::String>>
91 void SetSelectedChoices(SelectedChoicesT&& value) {
92 m_selectedChoicesHasBeenSet = true;
93 m_selectedChoices = std::forward<SelectedChoicesT>(value);
94 }
95 template <typename SelectedChoicesT = Aws::Vector<Aws::String>>
96 UpdateAnswerRequest& WithSelectedChoices(SelectedChoicesT&& value) {
97 SetSelectedChoices(std::forward<SelectedChoicesT>(value));
98 return *this;
99 }
100 template <typename SelectedChoicesT = Aws::String>
101 UpdateAnswerRequest& AddSelectedChoices(SelectedChoicesT&& value) {
102 m_selectedChoicesHasBeenSet = true;
103 m_selectedChoices.emplace_back(std::forward<SelectedChoicesT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::Map<Aws::String, ChoiceUpdate>& GetChoiceUpdates() const { return m_choiceUpdates; }
114 inline bool ChoiceUpdatesHasBeenSet() const { return m_choiceUpdatesHasBeenSet; }
115 template <typename ChoiceUpdatesT = Aws::Map<Aws::String, ChoiceUpdate>>
116 void SetChoiceUpdates(ChoiceUpdatesT&& value) {
117 m_choiceUpdatesHasBeenSet = true;
118 m_choiceUpdates = std::forward<ChoiceUpdatesT>(value);
119 }
120 template <typename ChoiceUpdatesT = Aws::Map<Aws::String, ChoiceUpdate>>
121 UpdateAnswerRequest& WithChoiceUpdates(ChoiceUpdatesT&& value) {
122 SetChoiceUpdates(std::forward<ChoiceUpdatesT>(value));
123 return *this;
124 }
125 template <typename ChoiceUpdatesKeyT = Aws::String, typename ChoiceUpdatesValueT = ChoiceUpdate>
126 UpdateAnswerRequest& AddChoiceUpdates(ChoiceUpdatesKeyT&& key, ChoiceUpdatesValueT&& value) {
127 m_choiceUpdatesHasBeenSet = true;
128 m_choiceUpdates.emplace(std::forward<ChoiceUpdatesKeyT>(key), std::forward<ChoiceUpdatesValueT>(value));
129 return *this;
130 }
132
134
135 inline const Aws::String& GetNotes() const { return m_notes; }
136 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
137 template <typename NotesT = Aws::String>
138 void SetNotes(NotesT&& value) {
139 m_notesHasBeenSet = true;
140 m_notes = std::forward<NotesT>(value);
141 }
142 template <typename NotesT = Aws::String>
144 SetNotes(std::forward<NotesT>(value));
145 return *this;
146 }
148
150
151 inline bool GetIsApplicable() const { return m_isApplicable; }
152 inline bool IsApplicableHasBeenSet() const { return m_isApplicableHasBeenSet; }
153 inline void SetIsApplicable(bool value) {
154 m_isApplicableHasBeenSet = true;
155 m_isApplicable = value;
156 }
158 SetIsApplicable(value);
159 return *this;
160 }
162
164
167 inline AnswerReason GetReason() const { return m_reason; }
168 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
169 inline void SetReason(AnswerReason value) {
170 m_reasonHasBeenSet = true;
171 m_reason = value;
172 }
174 SetReason(value);
175 return *this;
176 }
178 private:
179 Aws::String m_workloadId;
180 bool m_workloadIdHasBeenSet = false;
181
182 Aws::String m_lensAlias;
183 bool m_lensAliasHasBeenSet = false;
184
185 Aws::String m_questionId;
186 bool m_questionIdHasBeenSet = false;
187
188 Aws::Vector<Aws::String> m_selectedChoices;
189 bool m_selectedChoicesHasBeenSet = false;
190
192 bool m_choiceUpdatesHasBeenSet = false;
193
194 Aws::String m_notes;
195 bool m_notesHasBeenSet = false;
196
197 bool m_isApplicable{false};
198 bool m_isApplicableHasBeenSet = false;
199
201 bool m_reasonHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace WellArchitected
206} // namespace Aws
const Aws::Vector< Aws::String > & GetSelectedChoices() const
UpdateAnswerRequest & WithReason(AnswerReason value)
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
UpdateAnswerRequest & WithSelectedChoices(SelectedChoicesT &&value)
UpdateAnswerRequest & WithChoiceUpdates(ChoiceUpdatesT &&value)
UpdateAnswerRequest & AddSelectedChoices(SelectedChoicesT &&value)
AWS_WELLARCHITECTED_API UpdateAnswerRequest()=default
UpdateAnswerRequest & WithQuestionId(QuestionIdT &&value)
UpdateAnswerRequest & WithWorkloadId(WorkloadIdT &&value)
UpdateAnswerRequest & AddChoiceUpdates(ChoiceUpdatesKeyT &&key, ChoiceUpdatesValueT &&value)
UpdateAnswerRequest & WithIsApplicable(bool value)
UpdateAnswerRequest & WithLensAlias(LensAliasT &&value)
UpdateAnswerRequest & WithNotes(NotesT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, ChoiceUpdate > & GetChoiceUpdates() const
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