AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateEvaluationFormRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/EvaluationFormAutoEvaluationConfiguration.h>
10#include <aws/connect/model/EvaluationFormItem.h>
11#include <aws/connect/model/EvaluationFormLanguageConfiguration.h>
12#include <aws/connect/model/EvaluationFormScoringStrategy.h>
13#include <aws/connect/model/EvaluationFormTargetConfiguration.h>
14#include <aws/connect/model/EvaluationReviewConfiguration.h>
15#include <aws/core/utils/UUID.h>
16#include <aws/core/utils/memory/stl/AWSMap.h>
17#include <aws/core/utils/memory/stl/AWSString.h>
18#include <aws/core/utils/memory/stl/AWSVector.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Connect {
24namespace Model {
25
29 public:
30 AWS_CONNECT_API CreateEvaluationFormRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateEvaluationForm"; }
37
38 AWS_CONNECT_API Aws::String SerializePayload() const override;
39
41
46 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
47 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
48 template <typename InstanceIdT = Aws::String>
49 void SetInstanceId(InstanceIdT&& value) {
50 m_instanceIdHasBeenSet = true;
51 m_instanceId = std::forward<InstanceIdT>(value);
52 }
53 template <typename InstanceIdT = Aws::String>
55 SetInstanceId(std::forward<InstanceIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetTitle() const { return m_title; }
65 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
66 template <typename TitleT = Aws::String>
67 void SetTitle(TitleT&& value) {
68 m_titleHasBeenSet = true;
69 m_title = std::forward<TitleT>(value);
70 }
71 template <typename TitleT = Aws::String>
73 SetTitle(std::forward<TitleT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetDescription() const { return m_description; }
83 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
84 template <typename DescriptionT = Aws::String>
85 void SetDescription(DescriptionT&& value) {
86 m_descriptionHasBeenSet = true;
87 m_description = std::forward<DescriptionT>(value);
88 }
89 template <typename DescriptionT = Aws::String>
91 SetDescription(std::forward<DescriptionT>(value));
92 return *this;
93 }
95
97
102 inline const Aws::Vector<EvaluationFormItem>& GetItems() const { return m_items; }
103 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
104 template <typename ItemsT = Aws::Vector<EvaluationFormItem>>
105 void SetItems(ItemsT&& value) {
106 m_itemsHasBeenSet = true;
107 m_items = std::forward<ItemsT>(value);
108 }
109 template <typename ItemsT = Aws::Vector<EvaluationFormItem>>
111 SetItems(std::forward<ItemsT>(value));
112 return *this;
113 }
114 template <typename ItemsT = EvaluationFormItem>
116 m_itemsHasBeenSet = true;
117 m_items.emplace_back(std::forward<ItemsT>(value));
118 return *this;
119 }
121
123
126 inline const EvaluationFormScoringStrategy& GetScoringStrategy() const { return m_scoringStrategy; }
127 inline bool ScoringStrategyHasBeenSet() const { return m_scoringStrategyHasBeenSet; }
128 template <typename ScoringStrategyT = EvaluationFormScoringStrategy>
129 void SetScoringStrategy(ScoringStrategyT&& value) {
130 m_scoringStrategyHasBeenSet = true;
131 m_scoringStrategy = std::forward<ScoringStrategyT>(value);
132 }
133 template <typename ScoringStrategyT = EvaluationFormScoringStrategy>
135 SetScoringStrategy(std::forward<ScoringStrategyT>(value));
136 return *this;
137 }
139
141
144 inline const EvaluationFormAutoEvaluationConfiguration& GetAutoEvaluationConfiguration() const { return m_autoEvaluationConfiguration; }
145 inline bool AutoEvaluationConfigurationHasBeenSet() const { return m_autoEvaluationConfigurationHasBeenSet; }
146 template <typename AutoEvaluationConfigurationT = EvaluationFormAutoEvaluationConfiguration>
147 void SetAutoEvaluationConfiguration(AutoEvaluationConfigurationT&& value) {
148 m_autoEvaluationConfigurationHasBeenSet = true;
149 m_autoEvaluationConfiguration = std::forward<AutoEvaluationConfigurationT>(value);
150 }
151 template <typename AutoEvaluationConfigurationT = EvaluationFormAutoEvaluationConfiguration>
152 CreateEvaluationFormRequest& WithAutoEvaluationConfiguration(AutoEvaluationConfigurationT&& value) {
153 SetAutoEvaluationConfiguration(std::forward<AutoEvaluationConfigurationT>(value));
154 return *this;
155 }
157
159
166 inline const Aws::String& GetClientToken() const { return m_clientToken; }
167 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
168 template <typename ClientTokenT = Aws::String>
169 void SetClientToken(ClientTokenT&& value) {
170 m_clientTokenHasBeenSet = true;
171 m_clientToken = std::forward<ClientTokenT>(value);
172 }
173 template <typename ClientTokenT = Aws::String>
175 SetClientToken(std::forward<ClientTokenT>(value));
176 return *this;
177 }
179
181
185 inline bool GetAsDraft() const { return m_asDraft; }
186 inline bool AsDraftHasBeenSet() const { return m_asDraftHasBeenSet; }
187 inline void SetAsDraft(bool value) {
188 m_asDraftHasBeenSet = true;
189 m_asDraft = value;
190 }
192 SetAsDraft(value);
193 return *this;
194 }
196
198
202 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
203 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
204 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
205 void SetTags(TagsT&& value) {
206 m_tagsHasBeenSet = true;
207 m_tags = std::forward<TagsT>(value);
208 }
209 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
211 SetTags(std::forward<TagsT>(value));
212 return *this;
213 }
214 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
215 CreateEvaluationFormRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
216 m_tagsHasBeenSet = true;
217 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
218 return *this;
219 }
221
223
226 inline const EvaluationReviewConfiguration& GetReviewConfiguration() const { return m_reviewConfiguration; }
227 inline bool ReviewConfigurationHasBeenSet() const { return m_reviewConfigurationHasBeenSet; }
228 template <typename ReviewConfigurationT = EvaluationReviewConfiguration>
229 void SetReviewConfiguration(ReviewConfigurationT&& value) {
230 m_reviewConfigurationHasBeenSet = true;
231 m_reviewConfiguration = std::forward<ReviewConfigurationT>(value);
232 }
233 template <typename ReviewConfigurationT = EvaluationReviewConfiguration>
235 SetReviewConfiguration(std::forward<ReviewConfigurationT>(value));
236 return *this;
237 }
239
241
244 inline const EvaluationFormTargetConfiguration& GetTargetConfiguration() const { return m_targetConfiguration; }
245 inline bool TargetConfigurationHasBeenSet() const { return m_targetConfigurationHasBeenSet; }
246 template <typename TargetConfigurationT = EvaluationFormTargetConfiguration>
247 void SetTargetConfiguration(TargetConfigurationT&& value) {
248 m_targetConfigurationHasBeenSet = true;
249 m_targetConfiguration = std::forward<TargetConfigurationT>(value);
250 }
251 template <typename TargetConfigurationT = EvaluationFormTargetConfiguration>
253 SetTargetConfiguration(std::forward<TargetConfigurationT>(value));
254 return *this;
255 }
257
259
262 inline const EvaluationFormLanguageConfiguration& GetLanguageConfiguration() const { return m_languageConfiguration; }
263 inline bool LanguageConfigurationHasBeenSet() const { return m_languageConfigurationHasBeenSet; }
264 template <typename LanguageConfigurationT = EvaluationFormLanguageConfiguration>
265 void SetLanguageConfiguration(LanguageConfigurationT&& value) {
266 m_languageConfigurationHasBeenSet = true;
267 m_languageConfiguration = std::forward<LanguageConfigurationT>(value);
268 }
269 template <typename LanguageConfigurationT = EvaluationFormLanguageConfiguration>
271 SetLanguageConfiguration(std::forward<LanguageConfigurationT>(value));
272 return *this;
273 }
275 private:
276 Aws::String m_instanceId;
277
278 Aws::String m_title;
279
280 Aws::String m_description;
281
283
284 EvaluationFormScoringStrategy m_scoringStrategy;
285
286 EvaluationFormAutoEvaluationConfiguration m_autoEvaluationConfiguration;
287
289
290 bool m_asDraft{false};
291
293
294 EvaluationReviewConfiguration m_reviewConfiguration;
295
296 EvaluationFormTargetConfiguration m_targetConfiguration;
297
298 EvaluationFormLanguageConfiguration m_languageConfiguration;
299 bool m_instanceIdHasBeenSet = false;
300 bool m_titleHasBeenSet = false;
301 bool m_descriptionHasBeenSet = false;
302 bool m_itemsHasBeenSet = false;
303 bool m_scoringStrategyHasBeenSet = false;
304 bool m_autoEvaluationConfigurationHasBeenSet = false;
305 bool m_clientTokenHasBeenSet = true;
306 bool m_asDraftHasBeenSet = false;
307 bool m_tagsHasBeenSet = false;
308 bool m_reviewConfigurationHasBeenSet = false;
309 bool m_targetConfigurationHasBeenSet = false;
310 bool m_languageConfigurationHasBeenSet = false;
311};
312
313} // namespace Model
314} // namespace Connect
315} // namespace Aws
CreateEvaluationFormRequest & WithTags(TagsT &&value)
CreateEvaluationFormRequest & WithInstanceId(InstanceIdT &&value)
const EvaluationFormScoringStrategy & GetScoringStrategy() const
CreateEvaluationFormRequest & WithAsDraft(bool value)
CreateEvaluationFormRequest & WithDescription(DescriptionT &&value)
CreateEvaluationFormRequest & WithItems(ItemsT &&value)
virtual const char * GetServiceRequestName() const override
CreateEvaluationFormRequest & AddItems(ItemsT &&value)
CreateEvaluationFormRequest & WithLanguageConfiguration(LanguageConfigurationT &&value)
void SetLanguageConfiguration(LanguageConfigurationT &&value)
CreateEvaluationFormRequest & WithReviewConfiguration(ReviewConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateEvaluationFormRequest & WithTitle(TitleT &&value)
const EvaluationFormTargetConfiguration & GetTargetConfiguration() const
const EvaluationReviewConfiguration & GetReviewConfiguration() const
CreateEvaluationFormRequest & WithTargetConfiguration(TargetConfigurationT &&value)
AWS_CONNECT_API CreateEvaluationFormRequest()=default
const Aws::Vector< EvaluationFormItem > & GetItems() const
void SetAutoEvaluationConfiguration(AutoEvaluationConfigurationT &&value)
CreateEvaluationFormRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const EvaluationFormLanguageConfiguration & GetLanguageConfiguration() const
CreateEvaluationFormRequest & WithScoringStrategy(ScoringStrategyT &&value)
const EvaluationFormAutoEvaluationConfiguration & GetAutoEvaluationConfiguration() const
CreateEvaluationFormRequest & WithClientToken(ClientTokenT &&value)
CreateEvaluationFormRequest & WithAutoEvaluationConfiguration(AutoEvaluationConfigurationT &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
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