AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
CreateQuestionSetRequest.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/elementalinference/ElementalInferenceRequest.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 {
19namespace ElementalInference {
20namespace Model {
21
25 public:
26 AWS_ELEMENTALINFERENCE_API CreateQuestionSetRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateQuestionSet"; }
33
34 AWS_ELEMENTALINFERENCE_API Aws::String SerializePayload() const override;
35
37
42 inline const Aws::Vector<YesNoQuestion>& GetYesNo() const { return m_yesNo; }
43 inline bool YesNoHasBeenSet() const { return m_yesNoHasBeenSet; }
44 template <typename YesNoT = Aws::Vector<YesNoQuestion>>
45 void SetYesNo(YesNoT&& value) {
46 m_yesNoHasBeenSet = true;
47 m_yesNo = std::forward<YesNoT>(value);
48 }
49 template <typename YesNoT = Aws::Vector<YesNoQuestion>>
51 SetYesNo(std::forward<YesNoT>(value));
52 return *this;
53 }
54 template <typename YesNoT = YesNoQuestion>
56 m_yesNoHasBeenSet = true;
57 m_yesNo.emplace_back(std::forward<YesNoT>(value));
58 return *this;
59 }
61
63
69 inline const Aws::Vector<YesNoPerOptionQuestion>& GetYesNoPerOption() const { return m_yesNoPerOption; }
70 inline bool YesNoPerOptionHasBeenSet() const { return m_yesNoPerOptionHasBeenSet; }
71 template <typename YesNoPerOptionT = Aws::Vector<YesNoPerOptionQuestion>>
72 void SetYesNoPerOption(YesNoPerOptionT&& value) {
73 m_yesNoPerOptionHasBeenSet = true;
74 m_yesNoPerOption = std::forward<YesNoPerOptionT>(value);
75 }
76 template <typename YesNoPerOptionT = Aws::Vector<YesNoPerOptionQuestion>>
77 CreateQuestionSetRequest& WithYesNoPerOption(YesNoPerOptionT&& value) {
78 SetYesNoPerOption(std::forward<YesNoPerOptionT>(value));
79 return *this;
80 }
81 template <typename YesNoPerOptionT = YesNoPerOptionQuestion>
82 CreateQuestionSetRequest& AddYesNoPerOption(YesNoPerOptionT&& value) {
83 m_yesNoPerOptionHasBeenSet = true;
84 m_yesNoPerOption.emplace_back(std::forward<YesNoPerOptionT>(value));
85 return *this;
86 }
88
90
95 inline const Aws::Vector<ChooseOneQuestion>& GetChooseOne() const { return m_chooseOne; }
96 inline bool ChooseOneHasBeenSet() const { return m_chooseOneHasBeenSet; }
97 template <typename ChooseOneT = Aws::Vector<ChooseOneQuestion>>
98 void SetChooseOne(ChooseOneT&& value) {
99 m_chooseOneHasBeenSet = true;
100 m_chooseOne = std::forward<ChooseOneT>(value);
101 }
102 template <typename ChooseOneT = Aws::Vector<ChooseOneQuestion>>
104 SetChooseOne(std::forward<ChooseOneT>(value));
105 return *this;
106 }
107 template <typename ChooseOneT = ChooseOneQuestion>
109 m_chooseOneHasBeenSet = true;
110 m_chooseOne.emplace_back(std::forward<ChooseOneT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetName() const { return m_name; }
120 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
121 template <typename NameT = Aws::String>
122 void SetName(NameT&& value) {
123 m_nameHasBeenSet = true;
124 m_name = std::forward<NameT>(value);
125 }
126 template <typename NameT = Aws::String>
128 SetName(std::forward<NameT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
139 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
140 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
141 void SetTags(TagsT&& value) {
142 m_tagsHasBeenSet = true;
143 m_tags = std::forward<TagsT>(value);
144 }
145 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
147 SetTags(std::forward<TagsT>(value));
148 return *this;
149 }
150 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
151 CreateQuestionSetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
152 m_tagsHasBeenSet = true;
153 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
154 return *this;
155 }
157 private:
159
161
163
164 Aws::String m_name;
165
167 bool m_yesNoHasBeenSet = false;
168 bool m_yesNoPerOptionHasBeenSet = false;
169 bool m_chooseOneHasBeenSet = false;
170 bool m_nameHasBeenSet = false;
171 bool m_tagsHasBeenSet = false;
172};
173
174} // namespace Model
175} // namespace ElementalInference
176} // namespace Aws
CreateQuestionSetRequest & WithChooseOne(ChooseOneT &&value)
AWS_ELEMENTALINFERENCE_API CreateQuestionSetRequest()=default
CreateQuestionSetRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateQuestionSetRequest & WithYesNoPerOption(YesNoPerOptionT &&value)
CreateQuestionSetRequest & AddYesNoPerOption(YesNoPerOptionT &&value)
const Aws::Vector< ChooseOneQuestion > & GetChooseOne() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::Vector< YesNoPerOptionQuestion > & GetYesNoPerOption() const
AWS_ELEMENTALINFERENCE_API Aws::String SerializePayload() const override
CreateQuestionSetRequest & AddChooseOne(ChooseOneT &&value)
const Aws::Vector< YesNoQuestion > & GetYesNo() 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