AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
UpdateQuestionSetRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elementalinference/ElementalInferenceRequest.h>
10#include <aws/elementalinference/ElementalInference_EXPORTS.h>
11#include <aws/elementalinference/model/ChooseOneQuestion.h>
12#include <aws/elementalinference/model/YesNoPerOptionQuestion.h>
13#include <aws/elementalinference/model/YesNoQuestion.h>
14
15#include <utility>
16
17namespace Aws {
18namespace ElementalInference {
19namespace Model {
20
24 public:
25 AWS_ELEMENTALINFERENCE_API UpdateQuestionSetRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateQuestionSet"; }
32
33 AWS_ELEMENTALINFERENCE_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetId() const { return m_id; }
40 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
60 inline const Aws::Vector<YesNoQuestion>& GetYesNo() const { return m_yesNo; }
61 inline bool YesNoHasBeenSet() const { return m_yesNoHasBeenSet; }
62 template <typename YesNoT = Aws::Vector<YesNoQuestion>>
63 void SetYesNo(YesNoT&& value) {
64 m_yesNoHasBeenSet = true;
65 m_yesNo = std::forward<YesNoT>(value);
66 }
67 template <typename YesNoT = Aws::Vector<YesNoQuestion>>
69 SetYesNo(std::forward<YesNoT>(value));
70 return *this;
71 }
72 template <typename YesNoT = YesNoQuestion>
74 m_yesNoHasBeenSet = true;
75 m_yesNo.emplace_back(std::forward<YesNoT>(value));
76 return *this;
77 }
79
81
88 inline const Aws::Vector<YesNoPerOptionQuestion>& GetYesNoPerOption() const { return m_yesNoPerOption; }
89 inline bool YesNoPerOptionHasBeenSet() const { return m_yesNoPerOptionHasBeenSet; }
90 template <typename YesNoPerOptionT = Aws::Vector<YesNoPerOptionQuestion>>
91 void SetYesNoPerOption(YesNoPerOptionT&& value) {
92 m_yesNoPerOptionHasBeenSet = true;
93 m_yesNoPerOption = std::forward<YesNoPerOptionT>(value);
94 }
95 template <typename YesNoPerOptionT = Aws::Vector<YesNoPerOptionQuestion>>
96 UpdateQuestionSetRequest& WithYesNoPerOption(YesNoPerOptionT&& value) {
97 SetYesNoPerOption(std::forward<YesNoPerOptionT>(value));
98 return *this;
99 }
100 template <typename YesNoPerOptionT = YesNoPerOptionQuestion>
101 UpdateQuestionSetRequest& AddYesNoPerOption(YesNoPerOptionT&& value) {
102 m_yesNoPerOptionHasBeenSet = true;
103 m_yesNoPerOption.emplace_back(std::forward<YesNoPerOptionT>(value));
104 return *this;
105 }
107
109
115 inline const Aws::Vector<ChooseOneQuestion>& GetChooseOne() const { return m_chooseOne; }
116 inline bool ChooseOneHasBeenSet() const { return m_chooseOneHasBeenSet; }
117 template <typename ChooseOneT = Aws::Vector<ChooseOneQuestion>>
118 void SetChooseOne(ChooseOneT&& value) {
119 m_chooseOneHasBeenSet = true;
120 m_chooseOne = std::forward<ChooseOneT>(value);
121 }
122 template <typename ChooseOneT = Aws::Vector<ChooseOneQuestion>>
124 SetChooseOne(std::forward<ChooseOneT>(value));
125 return *this;
126 }
127 template <typename ChooseOneT = ChooseOneQuestion>
129 m_chooseOneHasBeenSet = true;
130 m_chooseOne.emplace_back(std::forward<ChooseOneT>(value));
131 return *this;
132 }
134
136
140 inline const Aws::String& GetName() const { return m_name; }
141 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
142 template <typename NameT = Aws::String>
143 void SetName(NameT&& value) {
144 m_nameHasBeenSet = true;
145 m_name = std::forward<NameT>(value);
146 }
147 template <typename NameT = Aws::String>
149 SetName(std::forward<NameT>(value));
150 return *this;
151 }
153 private:
154 Aws::String m_id;
155
157
159
161
162 Aws::String m_name;
163 bool m_idHasBeenSet = false;
164 bool m_yesNoHasBeenSet = false;
165 bool m_yesNoPerOptionHasBeenSet = false;
166 bool m_chooseOneHasBeenSet = false;
167 bool m_nameHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace ElementalInference
172} // namespace Aws
AWS_ELEMENTALINFERENCE_API UpdateQuestionSetRequest()=default
const Aws::Vector< YesNoPerOptionQuestion > & GetYesNoPerOption() const
UpdateQuestionSetRequest & WithYesNoPerOption(YesNoPerOptionT &&value)
const Aws::Vector< YesNoQuestion > & GetYesNo() const
UpdateQuestionSetRequest & AddChooseOne(ChooseOneT &&value)
AWS_ELEMENTALINFERENCE_API Aws::String SerializePayload() const override
const Aws::Vector< ChooseOneQuestion > & GetChooseOne() const
UpdateQuestionSetRequest & AddYesNoPerOption(YesNoPerOptionT &&value)
UpdateQuestionSetRequest & WithChooseOne(ChooseOneT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector