AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
CreateQuestionSetResult.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 CreateQuestionSetResult() = default;
34
36
41 inline const Aws::Vector<YesNoQuestion>& GetYesNo() const { return m_yesNo; }
42 template <typename YesNoT = Aws::Vector<YesNoQuestion>>
43 void SetYesNo(YesNoT&& value) {
44 m_yesNoHasBeenSet = true;
45 m_yesNo = std::forward<YesNoT>(value);
46 }
47 template <typename YesNoT = Aws::Vector<YesNoQuestion>>
49 SetYesNo(std::forward<YesNoT>(value));
50 return *this;
51 }
52 template <typename YesNoT = YesNoQuestion>
54 m_yesNoHasBeenSet = true;
55 m_yesNo.emplace_back(std::forward<YesNoT>(value));
56 return *this;
57 }
59
61
66 inline const Aws::Vector<YesNoPerOptionQuestion>& GetYesNoPerOption() const { return m_yesNoPerOption; }
67 template <typename YesNoPerOptionT = Aws::Vector<YesNoPerOptionQuestion>>
68 void SetYesNoPerOption(YesNoPerOptionT&& value) {
69 m_yesNoPerOptionHasBeenSet = true;
70 m_yesNoPerOption = std::forward<YesNoPerOptionT>(value);
71 }
72 template <typename YesNoPerOptionT = Aws::Vector<YesNoPerOptionQuestion>>
73 CreateQuestionSetResult& WithYesNoPerOption(YesNoPerOptionT&& value) {
74 SetYesNoPerOption(std::forward<YesNoPerOptionT>(value));
75 return *this;
76 }
77 template <typename YesNoPerOptionT = YesNoPerOptionQuestion>
78 CreateQuestionSetResult& AddYesNoPerOption(YesNoPerOptionT&& value) {
79 m_yesNoPerOptionHasBeenSet = true;
80 m_yesNoPerOption.emplace_back(std::forward<YesNoPerOptionT>(value));
81 return *this;
82 }
84
86
91 inline const Aws::Vector<ChooseOneQuestion>& GetChooseOne() const { return m_chooseOne; }
92 template <typename ChooseOneT = Aws::Vector<ChooseOneQuestion>>
93 void SetChooseOne(ChooseOneT&& value) {
94 m_chooseOneHasBeenSet = true;
95 m_chooseOne = std::forward<ChooseOneT>(value);
96 }
97 template <typename ChooseOneT = Aws::Vector<ChooseOneQuestion>>
99 SetChooseOne(std::forward<ChooseOneT>(value));
100 return *this;
101 }
102 template <typename ChooseOneT = ChooseOneQuestion>
104 m_chooseOneHasBeenSet = true;
105 m_chooseOne.emplace_back(std::forward<ChooseOneT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetArn() const { return m_arn; }
115 template <typename ArnT = Aws::String>
116 void SetArn(ArnT&& value) {
117 m_arnHasBeenSet = true;
118 m_arn = std::forward<ArnT>(value);
119 }
120 template <typename ArnT = Aws::String>
122 SetArn(std::forward<ArnT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetId() const { return m_id; }
132 template <typename IdT = Aws::String>
133 void SetId(IdT&& value) {
134 m_idHasBeenSet = true;
135 m_id = std::forward<IdT>(value);
136 }
137 template <typename IdT = Aws::String>
139 SetId(std::forward<IdT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetName() const { return m_name; }
149 template <typename NameT = Aws::String>
150 void SetName(NameT&& value) {
151 m_nameHasBeenSet = true;
152 m_name = std::forward<NameT>(value);
153 }
154 template <typename NameT = Aws::String>
156 SetName(std::forward<NameT>(value));
157 return *this;
158 }
160
162
166 inline const Aws::String& GetVersion() const { return m_version; }
167 template <typename VersionT = Aws::String>
168 void SetVersion(VersionT&& value) {
169 m_versionHasBeenSet = true;
170 m_version = std::forward<VersionT>(value);
171 }
172 template <typename VersionT = Aws::String>
174 SetVersion(std::forward<VersionT>(value));
175 return *this;
176 }
178
180
185 inline const Aws::String& GetDescription() const { return m_description; }
186 template <typename DescriptionT = Aws::String>
187 void SetDescription(DescriptionT&& value) {
188 m_descriptionHasBeenSet = true;
189 m_description = std::forward<DescriptionT>(value);
190 }
191 template <typename DescriptionT = Aws::String>
193 SetDescription(std::forward<DescriptionT>(value));
194 return *this;
195 }
197
199
204 inline const Aws::String& GetLatestVersion() const { return m_latestVersion; }
205 template <typename LatestVersionT = Aws::String>
206 void SetLatestVersion(LatestVersionT&& value) {
207 m_latestVersionHasBeenSet = true;
208 m_latestVersion = std::forward<LatestVersionT>(value);
209 }
210 template <typename LatestVersionT = Aws::String>
212 SetLatestVersion(std::forward<LatestVersionT>(value));
213 return *this;
214 }
216
218
224 inline const Aws::String& GetSha256() const { return m_sha256; }
225 template <typename Sha256T = Aws::String>
226 void SetSha256(Sha256T&& value) {
227 m_sha256HasBeenSet = true;
228 m_sha256 = std::forward<Sha256T>(value);
229 }
230 template <typename Sha256T = Aws::String>
232 SetSha256(std::forward<Sha256T>(value));
233 return *this;
234 }
236
238
242 inline const Aws::Vector<Aws::String>& GetReferences() const { return m_references; }
243 template <typename ReferencesT = Aws::Vector<Aws::String>>
244 void SetReferences(ReferencesT&& value) {
245 m_referencesHasBeenSet = true;
246 m_references = std::forward<ReferencesT>(value);
247 }
248 template <typename ReferencesT = Aws::Vector<Aws::String>>
250 SetReferences(std::forward<ReferencesT>(value));
251 return *this;
252 }
253 template <typename ReferencesT = Aws::String>
255 m_referencesHasBeenSet = true;
256 m_references.emplace_back(std::forward<ReferencesT>(value));
257 return *this;
258 }
260
262
265 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
266 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
267 void SetTags(TagsT&& value) {
268 m_tagsHasBeenSet = true;
269 m_tags = std::forward<TagsT>(value);
270 }
271 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
273 SetTags(std::forward<TagsT>(value));
274 return *this;
275 }
276 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
277 CreateQuestionSetResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
278 m_tagsHasBeenSet = true;
279 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
280 return *this;
281 }
283
285
286 inline const Aws::String& GetRequestId() const { return m_requestId; }
287 template <typename RequestIdT = Aws::String>
288 void SetRequestId(RequestIdT&& value) {
289 m_requestIdHasBeenSet = true;
290 m_requestId = std::forward<RequestIdT>(value);
291 }
292 template <typename RequestIdT = Aws::String>
294 SetRequestId(std::forward<RequestIdT>(value));
295 return *this;
296 }
298 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
299
300 private:
302
304
306
307 Aws::String m_arn;
308
309 Aws::String m_id;
310
311 Aws::String m_name;
312
313 Aws::String m_version;
314
315 Aws::String m_description;
316
317 Aws::String m_latestVersion;
318
319 Aws::String m_sha256;
320
321 Aws::Vector<Aws::String> m_references;
322
324
325 Aws::String m_requestId;
326 Aws::Http::HttpResponseCode m_HttpResponseCode;
327 bool m_yesNoHasBeenSet = false;
328 bool m_yesNoPerOptionHasBeenSet = false;
329 bool m_chooseOneHasBeenSet = false;
330 bool m_arnHasBeenSet = false;
331 bool m_idHasBeenSet = false;
332 bool m_nameHasBeenSet = false;
333 bool m_versionHasBeenSet = false;
334 bool m_descriptionHasBeenSet = false;
335 bool m_latestVersionHasBeenSet = false;
336 bool m_sha256HasBeenSet = false;
337 bool m_referencesHasBeenSet = false;
338 bool m_tagsHasBeenSet = false;
339 bool m_requestIdHasBeenSet = false;
340};
341
342} // namespace Model
343} // namespace ElementalInference
344} // namespace Aws
const Aws::Vector< ChooseOneQuestion > & GetChooseOne() const
const Aws::Vector< YesNoQuestion > & GetYesNo() const
CreateQuestionSetResult & AddYesNoPerOption(YesNoPerOptionT &&value)
CreateQuestionSetResult & WithChooseOne(ChooseOneT &&value)
CreateQuestionSetResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateQuestionSetResult & AddChooseOne(ChooseOneT &&value)
CreateQuestionSetResult & WithRequestId(RequestIdT &&value)
AWS_ELEMENTALINFERENCE_API CreateQuestionSetResult()=default
const Aws::Vector< Aws::String > & GetReferences() const
CreateQuestionSetResult & WithYesNoPerOption(YesNoPerOptionT &&value)
const Aws::Vector< YesNoPerOptionQuestion > & GetYesNoPerOption() const
CreateQuestionSetResult & WithSha256(Sha256T &&value)
AWS_ELEMENTALINFERENCE_API CreateQuestionSetResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateQuestionSetResult & AddReferences(ReferencesT &&value)
AWS_ELEMENTALINFERENCE_API CreateQuestionSetResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateQuestionSetResult & WithVersion(VersionT &&value)
CreateQuestionSetResult & WithLatestVersion(LatestVersionT &&value)
CreateQuestionSetResult & WithReferences(ReferencesT &&value)
CreateQuestionSetResult & WithDescription(DescriptionT &&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
Aws::Utils::Json::JsonValue JsonValue