AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
UpdateEvaluationFormRequest.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/AWSString.h>
17#include <aws/core/utils/memory/stl/AWSVector.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Connect {
23namespace Model {
24
28 public:
29 AWS_CONNECT_API UpdateEvaluationFormRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateEvaluationForm"; }
36
37 AWS_CONNECT_API Aws::String SerializePayload() const override;
38
40
45 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
46 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
47 template <typename InstanceIdT = Aws::String>
48 void SetInstanceId(InstanceIdT&& value) {
49 m_instanceIdHasBeenSet = true;
50 m_instanceId = std::forward<InstanceIdT>(value);
51 }
52 template <typename InstanceIdT = Aws::String>
54 SetInstanceId(std::forward<InstanceIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetEvaluationFormId() const { return m_evaluationFormId; }
64 inline bool EvaluationFormIdHasBeenSet() const { return m_evaluationFormIdHasBeenSet; }
65 template <typename EvaluationFormIdT = Aws::String>
66 void SetEvaluationFormId(EvaluationFormIdT&& value) {
67 m_evaluationFormIdHasBeenSet = true;
68 m_evaluationFormId = std::forward<EvaluationFormIdT>(value);
69 }
70 template <typename EvaluationFormIdT = Aws::String>
72 SetEvaluationFormId(std::forward<EvaluationFormIdT>(value));
73 return *this;
74 }
76
78
81 inline int GetEvaluationFormVersion() const { return m_evaluationFormVersion; }
82 inline bool EvaluationFormVersionHasBeenSet() const { return m_evaluationFormVersionHasBeenSet; }
83 inline void SetEvaluationFormVersion(int value) {
84 m_evaluationFormVersionHasBeenSet = true;
85 m_evaluationFormVersion = value;
86 }
89 return *this;
90 }
92
94
97 inline bool GetCreateNewVersion() const { return m_createNewVersion; }
98 inline bool CreateNewVersionHasBeenSet() const { return m_createNewVersionHasBeenSet; }
99 inline void SetCreateNewVersion(bool value) {
100 m_createNewVersionHasBeenSet = true;
101 m_createNewVersion = value;
102 }
104 SetCreateNewVersion(value);
105 return *this;
106 }
108
110
113 inline const Aws::String& GetTitle() const { return m_title; }
114 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
115 template <typename TitleT = Aws::String>
116 void SetTitle(TitleT&& value) {
117 m_titleHasBeenSet = true;
118 m_title = std::forward<TitleT>(value);
119 }
120 template <typename TitleT = Aws::String>
122 SetTitle(std::forward<TitleT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetDescription() const { return m_description; }
132 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
133 template <typename DescriptionT = Aws::String>
134 void SetDescription(DescriptionT&& value) {
135 m_descriptionHasBeenSet = true;
136 m_description = std::forward<DescriptionT>(value);
137 }
138 template <typename DescriptionT = Aws::String>
140 SetDescription(std::forward<DescriptionT>(value));
141 return *this;
142 }
144
146
151 inline const Aws::Vector<EvaluationFormItem>& GetItems() const { return m_items; }
152 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
153 template <typename ItemsT = Aws::Vector<EvaluationFormItem>>
154 void SetItems(ItemsT&& value) {
155 m_itemsHasBeenSet = true;
156 m_items = std::forward<ItemsT>(value);
157 }
158 template <typename ItemsT = Aws::Vector<EvaluationFormItem>>
160 SetItems(std::forward<ItemsT>(value));
161 return *this;
162 }
163 template <typename ItemsT = EvaluationFormItem>
165 m_itemsHasBeenSet = true;
166 m_items.emplace_back(std::forward<ItemsT>(value));
167 return *this;
168 }
170
172
175 inline const EvaluationFormScoringStrategy& GetScoringStrategy() const { return m_scoringStrategy; }
176 inline bool ScoringStrategyHasBeenSet() const { return m_scoringStrategyHasBeenSet; }
177 template <typename ScoringStrategyT = EvaluationFormScoringStrategy>
178 void SetScoringStrategy(ScoringStrategyT&& value) {
179 m_scoringStrategyHasBeenSet = true;
180 m_scoringStrategy = std::forward<ScoringStrategyT>(value);
181 }
182 template <typename ScoringStrategyT = EvaluationFormScoringStrategy>
184 SetScoringStrategy(std::forward<ScoringStrategyT>(value));
185 return *this;
186 }
188
190
193 inline const EvaluationFormAutoEvaluationConfiguration& GetAutoEvaluationConfiguration() const { return m_autoEvaluationConfiguration; }
194 inline bool AutoEvaluationConfigurationHasBeenSet() const { return m_autoEvaluationConfigurationHasBeenSet; }
195 template <typename AutoEvaluationConfigurationT = EvaluationFormAutoEvaluationConfiguration>
196 void SetAutoEvaluationConfiguration(AutoEvaluationConfigurationT&& value) {
197 m_autoEvaluationConfigurationHasBeenSet = true;
198 m_autoEvaluationConfiguration = std::forward<AutoEvaluationConfigurationT>(value);
199 }
200 template <typename AutoEvaluationConfigurationT = EvaluationFormAutoEvaluationConfiguration>
201 UpdateEvaluationFormRequest& WithAutoEvaluationConfiguration(AutoEvaluationConfigurationT&& value) {
202 SetAutoEvaluationConfiguration(std::forward<AutoEvaluationConfigurationT>(value));
203 return *this;
204 }
206
208
211 inline const EvaluationReviewConfiguration& GetReviewConfiguration() const { return m_reviewConfiguration; }
212 inline bool ReviewConfigurationHasBeenSet() const { return m_reviewConfigurationHasBeenSet; }
213 template <typename ReviewConfigurationT = EvaluationReviewConfiguration>
214 void SetReviewConfiguration(ReviewConfigurationT&& value) {
215 m_reviewConfigurationHasBeenSet = true;
216 m_reviewConfiguration = std::forward<ReviewConfigurationT>(value);
217 }
218 template <typename ReviewConfigurationT = EvaluationReviewConfiguration>
220 SetReviewConfiguration(std::forward<ReviewConfigurationT>(value));
221 return *this;
222 }
224
226
230 inline bool GetAsDraft() const { return m_asDraft; }
231 inline bool AsDraftHasBeenSet() const { return m_asDraftHasBeenSet; }
232 inline void SetAsDraft(bool value) {
233 m_asDraftHasBeenSet = true;
234 m_asDraft = value;
235 }
237 SetAsDraft(value);
238 return *this;
239 }
241
243
250 inline const Aws::String& GetClientToken() const { return m_clientToken; }
251 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
252 template <typename ClientTokenT = Aws::String>
253 void SetClientToken(ClientTokenT&& value) {
254 m_clientTokenHasBeenSet = true;
255 m_clientToken = std::forward<ClientTokenT>(value);
256 }
257 template <typename ClientTokenT = Aws::String>
259 SetClientToken(std::forward<ClientTokenT>(value));
260 return *this;
261 }
263
265
268 inline const EvaluationFormTargetConfiguration& GetTargetConfiguration() const { return m_targetConfiguration; }
269 inline bool TargetConfigurationHasBeenSet() const { return m_targetConfigurationHasBeenSet; }
270 template <typename TargetConfigurationT = EvaluationFormTargetConfiguration>
271 void SetTargetConfiguration(TargetConfigurationT&& value) {
272 m_targetConfigurationHasBeenSet = true;
273 m_targetConfiguration = std::forward<TargetConfigurationT>(value);
274 }
275 template <typename TargetConfigurationT = EvaluationFormTargetConfiguration>
277 SetTargetConfiguration(std::forward<TargetConfigurationT>(value));
278 return *this;
279 }
281
283
286 inline const EvaluationFormLanguageConfiguration& GetLanguageConfiguration() const { return m_languageConfiguration; }
287 inline bool LanguageConfigurationHasBeenSet() const { return m_languageConfigurationHasBeenSet; }
288 template <typename LanguageConfigurationT = EvaluationFormLanguageConfiguration>
289 void SetLanguageConfiguration(LanguageConfigurationT&& value) {
290 m_languageConfigurationHasBeenSet = true;
291 m_languageConfiguration = std::forward<LanguageConfigurationT>(value);
292 }
293 template <typename LanguageConfigurationT = EvaluationFormLanguageConfiguration>
295 SetLanguageConfiguration(std::forward<LanguageConfigurationT>(value));
296 return *this;
297 }
299 private:
300 Aws::String m_instanceId;
301
302 Aws::String m_evaluationFormId;
303
304 int m_evaluationFormVersion{0};
305
306 bool m_createNewVersion{false};
307
308 Aws::String m_title;
309
310 Aws::String m_description;
311
313
314 EvaluationFormScoringStrategy m_scoringStrategy;
315
316 EvaluationFormAutoEvaluationConfiguration m_autoEvaluationConfiguration;
317
318 EvaluationReviewConfiguration m_reviewConfiguration;
319
320 bool m_asDraft{false};
321
323
324 EvaluationFormTargetConfiguration m_targetConfiguration;
325
326 EvaluationFormLanguageConfiguration m_languageConfiguration;
327 bool m_instanceIdHasBeenSet = false;
328 bool m_evaluationFormIdHasBeenSet = false;
329 bool m_evaluationFormVersionHasBeenSet = false;
330 bool m_createNewVersionHasBeenSet = false;
331 bool m_titleHasBeenSet = false;
332 bool m_descriptionHasBeenSet = false;
333 bool m_itemsHasBeenSet = false;
334 bool m_scoringStrategyHasBeenSet = false;
335 bool m_autoEvaluationConfigurationHasBeenSet = false;
336 bool m_reviewConfigurationHasBeenSet = false;
337 bool m_asDraftHasBeenSet = false;
338 bool m_clientTokenHasBeenSet = true;
339 bool m_targetConfigurationHasBeenSet = false;
340 bool m_languageConfigurationHasBeenSet = false;
341};
342
343} // namespace Model
344} // namespace Connect
345} // namespace Aws
const EvaluationFormTargetConfiguration & GetTargetConfiguration() const
UpdateEvaluationFormRequest & WithEvaluationFormId(EvaluationFormIdT &&value)
UpdateEvaluationFormRequest & WithCreateNewVersion(bool value)
const EvaluationFormScoringStrategy & GetScoringStrategy() const
AWS_CONNECT_API UpdateEvaluationFormRequest()=default
const Aws::Vector< EvaluationFormItem > & GetItems() const
UpdateEvaluationFormRequest & WithEvaluationFormVersion(int value)
UpdateEvaluationFormRequest & WithReviewConfiguration(ReviewConfigurationT &&value)
UpdateEvaluationFormRequest & WithClientToken(ClientTokenT &&value)
const EvaluationReviewConfiguration & GetReviewConfiguration() const
void SetLanguageConfiguration(LanguageConfigurationT &&value)
UpdateEvaluationFormRequest & WithItems(ItemsT &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
UpdateEvaluationFormRequest & WithTargetConfiguration(TargetConfigurationT &&value)
UpdateEvaluationFormRequest & WithInstanceId(InstanceIdT &&value)
const EvaluationFormAutoEvaluationConfiguration & GetAutoEvaluationConfiguration() const
UpdateEvaluationFormRequest & AddItems(ItemsT &&value)
void SetAutoEvaluationConfiguration(AutoEvaluationConfigurationT &&value)
UpdateEvaluationFormRequest & WithScoringStrategy(ScoringStrategyT &&value)
UpdateEvaluationFormRequest & WithDescription(DescriptionT &&value)
UpdateEvaluationFormRequest & WithAutoEvaluationConfiguration(AutoEvaluationConfigurationT &&value)
UpdateEvaluationFormRequest & WithTitle(TitleT &&value)
virtual const char * GetServiceRequestName() const override
const EvaluationFormLanguageConfiguration & GetLanguageConfiguration() const
UpdateEvaluationFormRequest & WithAsDraft(bool value)
UpdateEvaluationFormRequest & WithLanguageConfiguration(LanguageConfigurationT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector