AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
GetQuestionSetResult.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 GetQuestionSetResult() = 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>
52 GetQuestionSetResult& AddYesNo(YesNoT&& value) {
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 GetQuestionSetResult& WithYesNoPerOption(YesNoPerOptionT&& value) {
72 SetYesNoPerOption(std::forward<YesNoPerOptionT>(value));
73 return *this;
74 }
75 template <typename YesNoPerOptionT = YesNoPerOptionQuestion>
76 GetQuestionSetResult& 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>>
95 GetQuestionSetResult& WithChooseOne(ChooseOneT&& value) {
96 SetChooseOne(std::forward<ChooseOneT>(value));
97 return *this;
98 }
99 template <typename ChooseOneT = ChooseOneQuestion>
100 GetQuestionSetResult& AddChooseOne(ChooseOneT&& value) {
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
146 inline const Aws::String& GetName() const { return m_name; }
147 template <typename NameT = Aws::String>
148 void SetName(NameT&& value) {
149 m_nameHasBeenSet = true;
150 m_name = std::forward<NameT>(value);
151 }
152 template <typename NameT = Aws::String>
154 SetName(std::forward<NameT>(value));
155 return *this;
156 }
158
160
164 inline const Aws::String& GetVersion() const { return m_version; }
165 template <typename VersionT = Aws::String>
166 void SetVersion(VersionT&& value) {
167 m_versionHasBeenSet = true;
168 m_version = std::forward<VersionT>(value);
169 }
170 template <typename VersionT = Aws::String>
172 SetVersion(std::forward<VersionT>(value));
173 return *this;
174 }
176
178
183 inline const Aws::String& GetDescription() const { return m_description; }
184 template <typename DescriptionT = Aws::String>
185 void SetDescription(DescriptionT&& value) {
186 m_descriptionHasBeenSet = true;
187 m_description = std::forward<DescriptionT>(value);
188 }
189 template <typename DescriptionT = Aws::String>
190 GetQuestionSetResult& WithDescription(DescriptionT&& value) {
191 SetDescription(std::forward<DescriptionT>(value));
192 return *this;
193 }
195
197
202 inline const Aws::String& GetLatestVersion() const { return m_latestVersion; }
203 template <typename LatestVersionT = Aws::String>
204 void SetLatestVersion(LatestVersionT&& value) {
205 m_latestVersionHasBeenSet = true;
206 m_latestVersion = std::forward<LatestVersionT>(value);
207 }
208 template <typename LatestVersionT = Aws::String>
209 GetQuestionSetResult& WithLatestVersion(LatestVersionT&& value) {
210 SetLatestVersion(std::forward<LatestVersionT>(value));
211 return *this;
212 }
214
216
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
240 inline const Aws::Vector<Aws::String>& GetReferences() const { return m_references; }
241 template <typename ReferencesT = Aws::Vector<Aws::String>>
242 void SetReferences(ReferencesT&& value) {
243 m_referencesHasBeenSet = true;
244 m_references = std::forward<ReferencesT>(value);
245 }
246 template <typename ReferencesT = Aws::Vector<Aws::String>>
247 GetQuestionSetResult& WithReferences(ReferencesT&& value) {
248 SetReferences(std::forward<ReferencesT>(value));
249 return *this;
250 }
251 template <typename ReferencesT = Aws::String>
252 GetQuestionSetResult& AddReferences(ReferencesT&& value) {
253 m_referencesHasBeenSet = true;
254 m_references.emplace_back(std::forward<ReferencesT>(value));
255 return *this;
256 }
258
260
263 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
264 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
265 void SetTags(TagsT&& value) {
266 m_tagsHasBeenSet = true;
267 m_tags = std::forward<TagsT>(value);
268 }
269 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
271 SetTags(std::forward<TagsT>(value));
272 return *this;
273 }
274 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
275 GetQuestionSetResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
276 m_tagsHasBeenSet = true;
277 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
278 return *this;
279 }
281
283
284 inline const Aws::String& GetRequestId() const { return m_requestId; }
285 template <typename RequestIdT = Aws::String>
286 void SetRequestId(RequestIdT&& value) {
287 m_requestIdHasBeenSet = true;
288 m_requestId = std::forward<RequestIdT>(value);
289 }
290 template <typename RequestIdT = Aws::String>
291 GetQuestionSetResult& WithRequestId(RequestIdT&& value) {
292 SetRequestId(std::forward<RequestIdT>(value));
293 return *this;
294 }
296 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
297
298 private:
300
302
304
305 Aws::String m_arn;
306
307 Aws::String m_id;
308
309 Aws::String m_name;
310
311 Aws::String m_version;
312
313 Aws::String m_description;
314
315 Aws::String m_latestVersion;
316
317 Aws::String m_sha256;
318
319 Aws::Vector<Aws::String> m_references;
320
322
323 Aws::String m_requestId;
324 Aws::Http::HttpResponseCode m_HttpResponseCode;
325 bool m_yesNoHasBeenSet = false;
326 bool m_yesNoPerOptionHasBeenSet = false;
327 bool m_chooseOneHasBeenSet = false;
328 bool m_arnHasBeenSet = false;
329 bool m_idHasBeenSet = false;
330 bool m_nameHasBeenSet = false;
331 bool m_versionHasBeenSet = false;
332 bool m_descriptionHasBeenSet = false;
333 bool m_latestVersionHasBeenSet = false;
334 bool m_sha256HasBeenSet = false;
335 bool m_referencesHasBeenSet = false;
336 bool m_tagsHasBeenSet = false;
337 bool m_requestIdHasBeenSet = false;
338};
339
340} // namespace Model
341} // namespace ElementalInference
342} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetQuestionSetResult & WithYesNoPerOption(YesNoPerOptionT &&value)
GetQuestionSetResult & WithVersion(VersionT &&value)
GetQuestionSetResult & WithSha256(Sha256T &&value)
const Aws::Vector< YesNoQuestion > & GetYesNo() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetQuestionSetResult & WithRequestId(RequestIdT &&value)
GetQuestionSetResult & AddChooseOne(ChooseOneT &&value)
GetQuestionSetResult & AddYesNo(YesNoT &&value)
GetQuestionSetResult & AddReferences(ReferencesT &&value)
AWS_ELEMENTALINFERENCE_API GetQuestionSetResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetQuestionSetResult & WithReferences(ReferencesT &&value)
GetQuestionSetResult & WithYesNo(YesNoT &&value)
AWS_ELEMENTALINFERENCE_API GetQuestionSetResult()=default
AWS_ELEMENTALINFERENCE_API GetQuestionSetResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< ChooseOneQuestion > & GetChooseOne() const
GetQuestionSetResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetQuestionSetResult & WithDescription(DescriptionT &&value)
const Aws::Vector< Aws::String > & GetReferences() const
GetQuestionSetResult & WithLatestVersion(LatestVersionT &&value)
GetQuestionSetResult & AddYesNoPerOption(YesNoPerOptionT &&value)
GetQuestionSetResult & WithChooseOne(ChooseOneT &&value)
const Aws::Vector< YesNoPerOptionQuestion > & GetYesNoPerOption() 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