AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
EvaluationForm.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/EvaluationFormAutoEvaluationConfiguration.h>
9#include <aws/connect/model/EvaluationFormItem.h>
10#include <aws/connect/model/EvaluationFormLanguageConfiguration.h>
11#include <aws/connect/model/EvaluationFormScoringStrategy.h>
12#include <aws/connect/model/EvaluationFormTargetConfiguration.h>
13#include <aws/connect/model/EvaluationFormVersionStatus.h>
14#include <aws/connect/model/EvaluationReviewConfiguration.h>
15#include <aws/core/utils/DateTime.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 Utils {
24namespace Json {
25class JsonValue;
26class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace Connect {
30namespace Model {
31
38 public:
39 AWS_CONNECT_API EvaluationForm() = default;
40 AWS_CONNECT_API EvaluationForm(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const Aws::String& GetEvaluationFormId() const { return m_evaluationFormId; }
49 inline bool EvaluationFormIdHasBeenSet() const { return m_evaluationFormIdHasBeenSet; }
50 template <typename EvaluationFormIdT = Aws::String>
51 void SetEvaluationFormId(EvaluationFormIdT&& value) {
52 m_evaluationFormIdHasBeenSet = true;
53 m_evaluationFormId = std::forward<EvaluationFormIdT>(value);
54 }
55 template <typename EvaluationFormIdT = Aws::String>
56 EvaluationForm& WithEvaluationFormId(EvaluationFormIdT&& value) {
57 SetEvaluationFormId(std::forward<EvaluationFormIdT>(value));
58 return *this;
59 }
61
63
66 inline int GetEvaluationFormVersion() const { return m_evaluationFormVersion; }
67 inline bool EvaluationFormVersionHasBeenSet() const { return m_evaluationFormVersionHasBeenSet; }
68 inline void SetEvaluationFormVersion(int value) {
69 m_evaluationFormVersionHasBeenSet = true;
70 m_evaluationFormVersion = value;
71 }
74 return *this;
75 }
77
79
82 inline bool GetLocked() const { return m_locked; }
83 inline bool LockedHasBeenSet() const { return m_lockedHasBeenSet; }
84 inline void SetLocked(bool value) {
85 m_lockedHasBeenSet = true;
86 m_locked = value;
87 }
88 inline EvaluationForm& WithLocked(bool value) {
89 SetLocked(value);
90 return *this;
91 }
93
95
98 inline const Aws::String& GetEvaluationFormArn() const { return m_evaluationFormArn; }
99 inline bool EvaluationFormArnHasBeenSet() const { return m_evaluationFormArnHasBeenSet; }
100 template <typename EvaluationFormArnT = Aws::String>
101 void SetEvaluationFormArn(EvaluationFormArnT&& value) {
102 m_evaluationFormArnHasBeenSet = true;
103 m_evaluationFormArn = std::forward<EvaluationFormArnT>(value);
104 }
105 template <typename EvaluationFormArnT = Aws::String>
106 EvaluationForm& WithEvaluationFormArn(EvaluationFormArnT&& value) {
107 SetEvaluationFormArn(std::forward<EvaluationFormArnT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetTitle() const { return m_title; }
117 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
118 template <typename TitleT = Aws::String>
119 void SetTitle(TitleT&& value) {
120 m_titleHasBeenSet = true;
121 m_title = std::forward<TitleT>(value);
122 }
123 template <typename TitleT = Aws::String>
124 EvaluationForm& WithTitle(TitleT&& value) {
125 SetTitle(std::forward<TitleT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetDescription() const { return m_description; }
135 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
136 template <typename DescriptionT = Aws::String>
137 void SetDescription(DescriptionT&& value) {
138 m_descriptionHasBeenSet = true;
139 m_description = std::forward<DescriptionT>(value);
140 }
141 template <typename DescriptionT = Aws::String>
142 EvaluationForm& WithDescription(DescriptionT&& value) {
143 SetDescription(std::forward<DescriptionT>(value));
144 return *this;
145 }
147
149
152 inline EvaluationFormVersionStatus GetStatus() const { return m_status; }
153 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
155 m_statusHasBeenSet = true;
156 m_status = value;
157 }
159 SetStatus(value);
160 return *this;
161 }
163
165
170 inline const Aws::Vector<EvaluationFormItem>& GetItems() const { return m_items; }
171 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
172 template <typename ItemsT = Aws::Vector<EvaluationFormItem>>
173 void SetItems(ItemsT&& value) {
174 m_itemsHasBeenSet = true;
175 m_items = std::forward<ItemsT>(value);
176 }
177 template <typename ItemsT = Aws::Vector<EvaluationFormItem>>
178 EvaluationForm& WithItems(ItemsT&& value) {
179 SetItems(std::forward<ItemsT>(value));
180 return *this;
181 }
182 template <typename ItemsT = EvaluationFormItem>
183 EvaluationForm& AddItems(ItemsT&& value) {
184 m_itemsHasBeenSet = true;
185 m_items.emplace_back(std::forward<ItemsT>(value));
186 return *this;
187 }
189
191
194 inline const EvaluationFormScoringStrategy& GetScoringStrategy() const { return m_scoringStrategy; }
195 inline bool ScoringStrategyHasBeenSet() const { return m_scoringStrategyHasBeenSet; }
196 template <typename ScoringStrategyT = EvaluationFormScoringStrategy>
197 void SetScoringStrategy(ScoringStrategyT&& value) {
198 m_scoringStrategyHasBeenSet = true;
199 m_scoringStrategy = std::forward<ScoringStrategyT>(value);
200 }
201 template <typename ScoringStrategyT = EvaluationFormScoringStrategy>
202 EvaluationForm& WithScoringStrategy(ScoringStrategyT&& value) {
203 SetScoringStrategy(std::forward<ScoringStrategyT>(value));
204 return *this;
205 }
207
209
212 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
213 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
214 template <typename CreatedTimeT = Aws::Utils::DateTime>
215 void SetCreatedTime(CreatedTimeT&& value) {
216 m_createdTimeHasBeenSet = true;
217 m_createdTime = std::forward<CreatedTimeT>(value);
218 }
219 template <typename CreatedTimeT = Aws::Utils::DateTime>
220 EvaluationForm& WithCreatedTime(CreatedTimeT&& value) {
221 SetCreatedTime(std::forward<CreatedTimeT>(value));
222 return *this;
223 }
225
227
231 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
232 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
233 template <typename CreatedByT = Aws::String>
234 void SetCreatedBy(CreatedByT&& value) {
235 m_createdByHasBeenSet = true;
236 m_createdBy = std::forward<CreatedByT>(value);
237 }
238 template <typename CreatedByT = Aws::String>
239 EvaluationForm& WithCreatedBy(CreatedByT&& value) {
240 SetCreatedBy(std::forward<CreatedByT>(value));
241 return *this;
242 }
244
246
249 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
250 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
251 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
252 void SetLastModifiedTime(LastModifiedTimeT&& value) {
253 m_lastModifiedTimeHasBeenSet = true;
254 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
255 }
256 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
257 EvaluationForm& WithLastModifiedTime(LastModifiedTimeT&& value) {
258 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
259 return *this;
260 }
262
264
268 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
269 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
270 template <typename LastModifiedByT = Aws::String>
271 void SetLastModifiedBy(LastModifiedByT&& value) {
272 m_lastModifiedByHasBeenSet = true;
273 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
274 }
275 template <typename LastModifiedByT = Aws::String>
276 EvaluationForm& WithLastModifiedBy(LastModifiedByT&& value) {
277 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
278 return *this;
279 }
281
283
286 inline const EvaluationFormAutoEvaluationConfiguration& GetAutoEvaluationConfiguration() const { return m_autoEvaluationConfiguration; }
287 inline bool AutoEvaluationConfigurationHasBeenSet() const { return m_autoEvaluationConfigurationHasBeenSet; }
288 template <typename AutoEvaluationConfigurationT = EvaluationFormAutoEvaluationConfiguration>
289 void SetAutoEvaluationConfiguration(AutoEvaluationConfigurationT&& value) {
290 m_autoEvaluationConfigurationHasBeenSet = true;
291 m_autoEvaluationConfiguration = std::forward<AutoEvaluationConfigurationT>(value);
292 }
293 template <typename AutoEvaluationConfigurationT = EvaluationFormAutoEvaluationConfiguration>
294 EvaluationForm& WithAutoEvaluationConfiguration(AutoEvaluationConfigurationT&& value) {
295 SetAutoEvaluationConfiguration(std::forward<AutoEvaluationConfigurationT>(value));
296 return *this;
297 }
299
301
304 inline const EvaluationReviewConfiguration& GetReviewConfiguration() const { return m_reviewConfiguration; }
305 inline bool ReviewConfigurationHasBeenSet() const { return m_reviewConfigurationHasBeenSet; }
306 template <typename ReviewConfigurationT = EvaluationReviewConfiguration>
307 void SetReviewConfiguration(ReviewConfigurationT&& value) {
308 m_reviewConfigurationHasBeenSet = true;
309 m_reviewConfiguration = std::forward<ReviewConfigurationT>(value);
310 }
311 template <typename ReviewConfigurationT = EvaluationReviewConfiguration>
312 EvaluationForm& WithReviewConfiguration(ReviewConfigurationT&& value) {
313 SetReviewConfiguration(std::forward<ReviewConfigurationT>(value));
314 return *this;
315 }
317
319
323 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
324 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
325 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
326 void SetTags(TagsT&& value) {
327 m_tagsHasBeenSet = true;
328 m_tags = std::forward<TagsT>(value);
329 }
330 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
331 EvaluationForm& WithTags(TagsT&& value) {
332 SetTags(std::forward<TagsT>(value));
333 return *this;
334 }
335 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
336 EvaluationForm& AddTags(TagsKeyT&& key, TagsValueT&& value) {
337 m_tagsHasBeenSet = true;
338 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
339 return *this;
340 }
342
344
347 inline const EvaluationFormTargetConfiguration& GetTargetConfiguration() const { return m_targetConfiguration; }
348 inline bool TargetConfigurationHasBeenSet() const { return m_targetConfigurationHasBeenSet; }
349 template <typename TargetConfigurationT = EvaluationFormTargetConfiguration>
350 void SetTargetConfiguration(TargetConfigurationT&& value) {
351 m_targetConfigurationHasBeenSet = true;
352 m_targetConfiguration = std::forward<TargetConfigurationT>(value);
353 }
354 template <typename TargetConfigurationT = EvaluationFormTargetConfiguration>
355 EvaluationForm& WithTargetConfiguration(TargetConfigurationT&& value) {
356 SetTargetConfiguration(std::forward<TargetConfigurationT>(value));
357 return *this;
358 }
360
362
365 inline const EvaluationFormLanguageConfiguration& GetLanguageConfiguration() const { return m_languageConfiguration; }
366 inline bool LanguageConfigurationHasBeenSet() const { return m_languageConfigurationHasBeenSet; }
367 template <typename LanguageConfigurationT = EvaluationFormLanguageConfiguration>
368 void SetLanguageConfiguration(LanguageConfigurationT&& value) {
369 m_languageConfigurationHasBeenSet = true;
370 m_languageConfiguration = std::forward<LanguageConfigurationT>(value);
371 }
372 template <typename LanguageConfigurationT = EvaluationFormLanguageConfiguration>
373 EvaluationForm& WithLanguageConfiguration(LanguageConfigurationT&& value) {
374 SetLanguageConfiguration(std::forward<LanguageConfigurationT>(value));
375 return *this;
376 }
378 private:
379 Aws::String m_evaluationFormId;
380
381 int m_evaluationFormVersion{0};
382
383 bool m_locked{false};
384
385 Aws::String m_evaluationFormArn;
386
387 Aws::String m_title;
388
389 Aws::String m_description;
390
392
394
395 EvaluationFormScoringStrategy m_scoringStrategy;
396
397 Aws::Utils::DateTime m_createdTime{};
398
399 Aws::String m_createdBy;
400
401 Aws::Utils::DateTime m_lastModifiedTime{};
402
403 Aws::String m_lastModifiedBy;
404
405 EvaluationFormAutoEvaluationConfiguration m_autoEvaluationConfiguration;
406
407 EvaluationReviewConfiguration m_reviewConfiguration;
408
410
411 EvaluationFormTargetConfiguration m_targetConfiguration;
412
413 EvaluationFormLanguageConfiguration m_languageConfiguration;
414 bool m_evaluationFormIdHasBeenSet = false;
415 bool m_evaluationFormVersionHasBeenSet = false;
416 bool m_lockedHasBeenSet = false;
417 bool m_evaluationFormArnHasBeenSet = false;
418 bool m_titleHasBeenSet = false;
419 bool m_descriptionHasBeenSet = false;
420 bool m_statusHasBeenSet = false;
421 bool m_itemsHasBeenSet = false;
422 bool m_scoringStrategyHasBeenSet = false;
423 bool m_createdTimeHasBeenSet = false;
424 bool m_createdByHasBeenSet = false;
425 bool m_lastModifiedTimeHasBeenSet = false;
426 bool m_lastModifiedByHasBeenSet = false;
427 bool m_autoEvaluationConfigurationHasBeenSet = false;
428 bool m_reviewConfigurationHasBeenSet = false;
429 bool m_tagsHasBeenSet = false;
430 bool m_targetConfigurationHasBeenSet = false;
431 bool m_languageConfigurationHasBeenSet = false;
432};
433
434} // namespace Model
435} // namespace Connect
436} // namespace Aws
const EvaluationFormAutoEvaluationConfiguration & GetAutoEvaluationConfiguration() const
void SetStatus(EvaluationFormVersionStatus value)
void SetCreatedTime(CreatedTimeT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAutoEvaluationConfiguration(AutoEvaluationConfigurationT &&value)
void SetScoringStrategy(ScoringStrategyT &&value)
const Aws::String & GetCreatedBy() const
EvaluationFormVersionStatus GetStatus() const
const Aws::String & GetEvaluationFormArn() const
const Aws::String & GetTitle() const
AWS_CONNECT_API EvaluationForm & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastModifiedTime() const
void SetTargetConfiguration(TargetConfigurationT &&value)
EvaluationForm & WithAutoEvaluationConfiguration(AutoEvaluationConfigurationT &&value)
const EvaluationFormLanguageConfiguration & GetLanguageConfiguration() const
void SetReviewConfiguration(ReviewConfigurationT &&value)
EvaluationForm & WithEvaluationFormId(EvaluationFormIdT &&value)
const Aws::String & GetLastModifiedBy() const
AWS_CONNECT_API EvaluationForm()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const EvaluationFormTargetConfiguration & GetTargetConfiguration() const
EvaluationForm & WithCreatedBy(CreatedByT &&value)
void SetLastModifiedBy(LastModifiedByT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
EvaluationForm & AddItems(ItemsT &&value)
EvaluationForm & WithTargetConfiguration(TargetConfigurationT &&value)
const Aws::Vector< EvaluationFormItem > & GetItems() const
EvaluationForm & WithLanguageConfiguration(LanguageConfigurationT &&value)
EvaluationForm & WithLastModifiedBy(LastModifiedByT &&value)
void SetEvaluationFormId(EvaluationFormIdT &&value)
EvaluationForm & WithItems(ItemsT &&value)
EvaluationForm & WithLocked(bool value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
EvaluationForm & WithEvaluationFormArn(EvaluationFormArnT &&value)
void SetCreatedBy(CreatedByT &&value)
EvaluationForm & WithCreatedTime(CreatedTimeT &&value)
EvaluationForm & WithDescription(DescriptionT &&value)
EvaluationForm & WithTitle(TitleT &&value)
void SetEvaluationFormArn(EvaluationFormArnT &&value)
EvaluationForm & WithTags(TagsT &&value)
const Aws::String & GetEvaluationFormId() const
const Aws::Utils::DateTime & GetCreatedTime() const
EvaluationForm & WithScoringStrategy(ScoringStrategyT &&value)
void SetLanguageConfiguration(LanguageConfigurationT &&value)
const EvaluationReviewConfiguration & GetReviewConfiguration() const
const EvaluationFormScoringStrategy & GetScoringStrategy() const
EvaluationForm & WithStatus(EvaluationFormVersionStatus value)
EvaluationForm & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_CONNECT_API EvaluationForm(Aws::Utils::Json::JsonView jsonValue)
EvaluationForm & WithLastModifiedTime(LastModifiedTimeT &&value)
EvaluationForm & WithReviewConfiguration(ReviewConfigurationT &&value)
EvaluationForm & WithEvaluationFormVersion(int value)
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