AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
UpdateQuestionSetResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elementalinference/ElementalInference_EXPORTS.h>
12#include <aws/elementalinference/model/ChooseOneQuestion.h>
13#include <aws/elementalinference/model/YesNoPerOptionQuestion.h>
14#include <aws/elementalinference/model/YesNoQuestion.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace ElementalInference {
28namespace Model {
30 public:
31 AWS_ELEMENTALINFERENCE_API UpdateQuestionSetResult() = default;
34
36
40 inline const Aws::Vector<YesNoQuestion>& GetYesNo() const { return m_yesNo; }
41 template <typename YesNoT = Aws::Vector<YesNoQuestion>>
42 void SetYesNo(YesNoT&& value) {
43 m_yesNoHasBeenSet = true;
44 m_yesNo = std::forward<YesNoT>(value);
45 }
46 template <typename YesNoT = Aws::Vector<YesNoQuestion>>
48 SetYesNo(std::forward<YesNoT>(value));
49 return *this;
50 }
51 template <typename YesNoT = YesNoQuestion>
53 m_yesNoHasBeenSet = true;
54 m_yesNo.emplace_back(std::forward<YesNoT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::Vector<YesNoPerOptionQuestion>& GetYesNoPerOption() const { return m_yesNoPerOption; }
65 template <typename YesNoPerOptionT = Aws::Vector<YesNoPerOptionQuestion>>
66 void SetYesNoPerOption(YesNoPerOptionT&& value) {
67 m_yesNoPerOptionHasBeenSet = true;
68 m_yesNoPerOption = std::forward<YesNoPerOptionT>(value);
69 }
70 template <typename YesNoPerOptionT = Aws::Vector<YesNoPerOptionQuestion>>
71 UpdateQuestionSetResult& WithYesNoPerOption(YesNoPerOptionT&& value) {
72 SetYesNoPerOption(std::forward<YesNoPerOptionT>(value));
73 return *this;
74 }
75 template <typename YesNoPerOptionT = YesNoPerOptionQuestion>
76 UpdateQuestionSetResult& AddYesNoPerOption(YesNoPerOptionT&& value) {
77 m_yesNoPerOptionHasBeenSet = true;
78 m_yesNoPerOption.emplace_back(std::forward<YesNoPerOptionT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::Vector<ChooseOneQuestion>& GetChooseOne() const { return m_chooseOne; }
89 template <typename ChooseOneT = Aws::Vector<ChooseOneQuestion>>
90 void SetChooseOne(ChooseOneT&& value) {
91 m_chooseOneHasBeenSet = true;
92 m_chooseOne = std::forward<ChooseOneT>(value);
93 }
94 template <typename ChooseOneT = Aws::Vector<ChooseOneQuestion>>
96 SetChooseOne(std::forward<ChooseOneT>(value));
97 return *this;
98 }
99 template <typename ChooseOneT = ChooseOneQuestion>
101 m_chooseOneHasBeenSet = true;
102 m_chooseOne.emplace_back(std::forward<ChooseOneT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetArn() const { return m_arn; }
112 template <typename ArnT = Aws::String>
113 void SetArn(ArnT&& value) {
114 m_arnHasBeenSet = true;
115 m_arn = std::forward<ArnT>(value);
116 }
117 template <typename ArnT = Aws::String>
119 SetArn(std::forward<ArnT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetId() const { return m_id; }
129 template <typename IdT = Aws::String>
130 void SetId(IdT&& value) {
131 m_idHasBeenSet = true;
132 m_id = std::forward<IdT>(value);
133 }
134 template <typename IdT = Aws::String>
136 SetId(std::forward<IdT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetName() const { return m_name; }
146 template <typename NameT = Aws::String>
147 void SetName(NameT&& value) {
148 m_nameHasBeenSet = true;
149 m_name = std::forward<NameT>(value);
150 }
151 template <typename NameT = Aws::String>
153 SetName(std::forward<NameT>(value));
154 return *this;
155 }
157
159
163 inline const Aws::String& GetVersion() const { return m_version; }
164 template <typename VersionT = Aws::String>
165 void SetVersion(VersionT&& value) {
166 m_versionHasBeenSet = true;
167 m_version = std::forward<VersionT>(value);
168 }
169 template <typename VersionT = Aws::String>
171 SetVersion(std::forward<VersionT>(value));
172 return *this;
173 }
175
177
182 inline const Aws::String& GetDescription() const { return m_description; }
183 template <typename DescriptionT = Aws::String>
184 void SetDescription(DescriptionT&& value) {
185 m_descriptionHasBeenSet = true;
186 m_description = std::forward<DescriptionT>(value);
187 }
188 template <typename DescriptionT = Aws::String>
190 SetDescription(std::forward<DescriptionT>(value));
191 return *this;
192 }
194
196
201 inline const Aws::String& GetLatestVersion() const { return m_latestVersion; }
202 template <typename LatestVersionT = Aws::String>
203 void SetLatestVersion(LatestVersionT&& value) {
204 m_latestVersionHasBeenSet = true;
205 m_latestVersion = std::forward<LatestVersionT>(value);
206 }
207 template <typename LatestVersionT = Aws::String>
209 SetLatestVersion(std::forward<LatestVersionT>(value));
210 return *this;
211 }
213
215
222 inline const Aws::String& GetSha256() const { return m_sha256; }
223 template <typename Sha256T = Aws::String>
224 void SetSha256(Sha256T&& value) {
225 m_sha256HasBeenSet = true;
226 m_sha256 = std::forward<Sha256T>(value);
227 }
228 template <typename Sha256T = Aws::String>
230 SetSha256(std::forward<Sha256T>(value));
231 return *this;
232 }
234
236
239 inline const Aws::Vector<Aws::String>& GetReferences() const { return m_references; }
240 template <typename ReferencesT = Aws::Vector<Aws::String>>
241 void SetReferences(ReferencesT&& value) {
242 m_referencesHasBeenSet = true;
243 m_references = std::forward<ReferencesT>(value);
244 }
245 template <typename ReferencesT = Aws::Vector<Aws::String>>
247 SetReferences(std::forward<ReferencesT>(value));
248 return *this;
249 }
250 template <typename ReferencesT = Aws::String>
252 m_referencesHasBeenSet = true;
253 m_references.emplace_back(std::forward<ReferencesT>(value));
254 return *this;
255 }
257
259
262 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
263 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
264 void SetTags(TagsT&& value) {
265 m_tagsHasBeenSet = true;
266 m_tags = std::forward<TagsT>(value);
267 }
268 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
270 SetTags(std::forward<TagsT>(value));
271 return *this;
272 }
273 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
274 UpdateQuestionSetResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
275 m_tagsHasBeenSet = true;
276 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
277 return *this;
278 }
280
282
283 inline const Aws::String& GetRequestId() const { return m_requestId; }
284 template <typename RequestIdT = Aws::String>
285 void SetRequestId(RequestIdT&& value) {
286 m_requestIdHasBeenSet = true;
287 m_requestId = std::forward<RequestIdT>(value);
288 }
289 template <typename RequestIdT = Aws::String>
291 SetRequestId(std::forward<RequestIdT>(value));
292 return *this;
293 }
295 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
296
297 private:
299
301
303
304 Aws::String m_arn;
305
306 Aws::String m_id;
307
308 Aws::String m_name;
309
310 Aws::String m_version;
311
312 Aws::String m_description;
313
314 Aws::String m_latestVersion;
315
316 Aws::String m_sha256;
317
318 Aws::Vector<Aws::String> m_references;
319
321
322 Aws::String m_requestId;
323 Aws::Http::HttpResponseCode m_HttpResponseCode;
324 bool m_yesNoHasBeenSet = false;
325 bool m_yesNoPerOptionHasBeenSet = false;
326 bool m_chooseOneHasBeenSet = false;
327 bool m_arnHasBeenSet = false;
328 bool m_idHasBeenSet = false;
329 bool m_nameHasBeenSet = false;
330 bool m_versionHasBeenSet = false;
331 bool m_descriptionHasBeenSet = false;
332 bool m_latestVersionHasBeenSet = false;
333 bool m_sha256HasBeenSet = false;
334 bool m_referencesHasBeenSet = false;
335 bool m_tagsHasBeenSet = false;
336 bool m_requestIdHasBeenSet = false;
337};
338
339} // namespace Model
340} // namespace ElementalInference
341} // namespace Aws
UpdateQuestionSetResult & WithRequestId(RequestIdT &&value)
UpdateQuestionSetResult & WithReferences(ReferencesT &&value)
UpdateQuestionSetResult & AddReferences(ReferencesT &&value)
UpdateQuestionSetResult & WithYesNoPerOption(YesNoPerOptionT &&value)
const Aws::Vector< YesNoQuestion > & GetYesNo() const
const Aws::Vector< YesNoPerOptionQuestion > & GetYesNoPerOption() const
UpdateQuestionSetResult & WithVersion(VersionT &&value)
UpdateQuestionSetResult & AddYesNoPerOption(YesNoPerOptionT &&value)
AWS_ELEMENTALINFERENCE_API UpdateQuestionSetResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Aws::String > & GetReferences() const
UpdateQuestionSetResult & AddChooseOne(ChooseOneT &&value)
AWS_ELEMENTALINFERENCE_API UpdateQuestionSetResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateQuestionSetResult & WithDescription(DescriptionT &&value)
AWS_ELEMENTALINFERENCE_API UpdateQuestionSetResult()=default
UpdateQuestionSetResult & WithSha256(Sha256T &&value)
const Aws::Vector< ChooseOneQuestion > & GetChooseOne() const
UpdateQuestionSetResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
UpdateQuestionSetResult & WithLatestVersion(LatestVersionT &&value)
UpdateQuestionSetResult & WithChooseOne(ChooseOneT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() 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
Aws::Utils::Json::JsonValue JsonValue