AWS SDK for C++

AWS SDK for C++ Version 1.11.849

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/EvaluationFormValidationStatus.h>
14#include <aws/connect/model/EvaluationFormVersionStatus.h>
15#include <aws/connect/model/EvaluationReviewConfiguration.h>
16#include <aws/core/utils/DateTime.h>
17#include <aws/core/utils/memory/stl/AWSMap.h>
18#include <aws/core/utils/memory/stl/AWSString.h>
19#include <aws/core/utils/memory/stl/AWSVector.h>
20
21#include <utility>
22
23namespace Aws {
24namespace Utils {
25namespace Json {
26class JsonValue;
27class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace Connect {
31namespace Model {
32
39 public:
40 AWS_CONNECT_API EvaluationForm() = default;
41 AWS_CONNECT_API EvaluationForm(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
49 inline const Aws::String& GetEvaluationFormId() const { return m_evaluationFormId; }
50 inline bool EvaluationFormIdHasBeenSet() const { return m_evaluationFormIdHasBeenSet; }
51 template <typename EvaluationFormIdT = Aws::String>
52 void SetEvaluationFormId(EvaluationFormIdT&& value) {
53 m_evaluationFormIdHasBeenSet = true;
54 m_evaluationFormId = std::forward<EvaluationFormIdT>(value);
55 }
56 template <typename EvaluationFormIdT = Aws::String>
57 EvaluationForm& WithEvaluationFormId(EvaluationFormIdT&& value) {
58 SetEvaluationFormId(std::forward<EvaluationFormIdT>(value));
59 return *this;
60 }
62
64
67 inline int GetEvaluationFormVersion() const { return m_evaluationFormVersion; }
68 inline bool EvaluationFormVersionHasBeenSet() const { return m_evaluationFormVersionHasBeenSet; }
69 inline void SetEvaluationFormVersion(int value) {
70 m_evaluationFormVersionHasBeenSet = true;
71 m_evaluationFormVersion = value;
72 }
75 return *this;
76 }
78
80
83 inline bool GetLocked() const { return m_locked; }
84 inline bool LockedHasBeenSet() const { return m_lockedHasBeenSet; }
85 inline void SetLocked(bool value) {
86 m_lockedHasBeenSet = true;
87 m_locked = value;
88 }
89 inline EvaluationForm& WithLocked(bool value) {
90 SetLocked(value);
91 return *this;
92 }
94
96
99 inline const Aws::String& GetEvaluationFormArn() const { return m_evaluationFormArn; }
100 inline bool EvaluationFormArnHasBeenSet() const { return m_evaluationFormArnHasBeenSet; }
101 template <typename EvaluationFormArnT = Aws::String>
102 void SetEvaluationFormArn(EvaluationFormArnT&& value) {
103 m_evaluationFormArnHasBeenSet = true;
104 m_evaluationFormArn = std::forward<EvaluationFormArnT>(value);
105 }
106 template <typename EvaluationFormArnT = Aws::String>
107 EvaluationForm& WithEvaluationFormArn(EvaluationFormArnT&& value) {
108 SetEvaluationFormArn(std::forward<EvaluationFormArnT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetTitle() const { return m_title; }
118 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
119 template <typename TitleT = Aws::String>
120 void SetTitle(TitleT&& value) {
121 m_titleHasBeenSet = true;
122 m_title = std::forward<TitleT>(value);
123 }
124 template <typename TitleT = Aws::String>
125 EvaluationForm& WithTitle(TitleT&& value) {
126 SetTitle(std::forward<TitleT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetDescription() const { return m_description; }
136 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
137 template <typename DescriptionT = Aws::String>
138 void SetDescription(DescriptionT&& value) {
139 m_descriptionHasBeenSet = true;
140 m_description = std::forward<DescriptionT>(value);
141 }
142 template <typename DescriptionT = Aws::String>
143 EvaluationForm& WithDescription(DescriptionT&& value) {
144 SetDescription(std::forward<DescriptionT>(value));
145 return *this;
146 }
148
150
153 inline EvaluationFormVersionStatus GetStatus() const { return m_status; }
154 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
156 m_statusHasBeenSet = true;
157 m_status = value;
158 }
160 SetStatus(value);
161 return *this;
162 }
164
166
171 inline const Aws::Vector<EvaluationFormItem>& GetItems() const { return m_items; }
172 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
173 template <typename ItemsT = Aws::Vector<EvaluationFormItem>>
174 void SetItems(ItemsT&& value) {
175 m_itemsHasBeenSet = true;
176 m_items = std::forward<ItemsT>(value);
177 }
178 template <typename ItemsT = Aws::Vector<EvaluationFormItem>>
179 EvaluationForm& WithItems(ItemsT&& value) {
180 SetItems(std::forward<ItemsT>(value));
181 return *this;
182 }
183 template <typename ItemsT = EvaluationFormItem>
184 EvaluationForm& AddItems(ItemsT&& value) {
185 m_itemsHasBeenSet = true;
186 m_items.emplace_back(std::forward<ItemsT>(value));
187 return *this;
188 }
190
192
195 inline const EvaluationFormScoringStrategy& GetScoringStrategy() const { return m_scoringStrategy; }
196 inline bool ScoringStrategyHasBeenSet() const { return m_scoringStrategyHasBeenSet; }
197 template <typename ScoringStrategyT = EvaluationFormScoringStrategy>
198 void SetScoringStrategy(ScoringStrategyT&& value) {
199 m_scoringStrategyHasBeenSet = true;
200 m_scoringStrategy = std::forward<ScoringStrategyT>(value);
201 }
202 template <typename ScoringStrategyT = EvaluationFormScoringStrategy>
203 EvaluationForm& WithScoringStrategy(ScoringStrategyT&& value) {
204 SetScoringStrategy(std::forward<ScoringStrategyT>(value));
205 return *this;
206 }
208
210
213 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
214 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
215 template <typename CreatedTimeT = Aws::Utils::DateTime>
216 void SetCreatedTime(CreatedTimeT&& value) {
217 m_createdTimeHasBeenSet = true;
218 m_createdTime = std::forward<CreatedTimeT>(value);
219 }
220 template <typename CreatedTimeT = Aws::Utils::DateTime>
221 EvaluationForm& WithCreatedTime(CreatedTimeT&& value) {
222 SetCreatedTime(std::forward<CreatedTimeT>(value));
223 return *this;
224 }
226
228
232 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
233 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
234 template <typename CreatedByT = Aws::String>
235 void SetCreatedBy(CreatedByT&& value) {
236 m_createdByHasBeenSet = true;
237 m_createdBy = std::forward<CreatedByT>(value);
238 }
239 template <typename CreatedByT = Aws::String>
240 EvaluationForm& WithCreatedBy(CreatedByT&& value) {
241 SetCreatedBy(std::forward<CreatedByT>(value));
242 return *this;
243 }
245
247
250 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
251 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
252 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
253 void SetLastModifiedTime(LastModifiedTimeT&& value) {
254 m_lastModifiedTimeHasBeenSet = true;
255 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
256 }
257 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
258 EvaluationForm& WithLastModifiedTime(LastModifiedTimeT&& value) {
259 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
260 return *this;
261 }
263
265
269 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
270 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
271 template <typename LastModifiedByT = Aws::String>
272 void SetLastModifiedBy(LastModifiedByT&& value) {
273 m_lastModifiedByHasBeenSet = true;
274 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
275 }
276 template <typename LastModifiedByT = Aws::String>
277 EvaluationForm& WithLastModifiedBy(LastModifiedByT&& value) {
278 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
279 return *this;
280 }
282
284
287 inline const EvaluationFormAutoEvaluationConfiguration& GetAutoEvaluationConfiguration() const { return m_autoEvaluationConfiguration; }
288 inline bool AutoEvaluationConfigurationHasBeenSet() const { return m_autoEvaluationConfigurationHasBeenSet; }
289 template <typename AutoEvaluationConfigurationT = EvaluationFormAutoEvaluationConfiguration>
290 void SetAutoEvaluationConfiguration(AutoEvaluationConfigurationT&& value) {
291 m_autoEvaluationConfigurationHasBeenSet = true;
292 m_autoEvaluationConfiguration = std::forward<AutoEvaluationConfigurationT>(value);
293 }
294 template <typename AutoEvaluationConfigurationT = EvaluationFormAutoEvaluationConfiguration>
295 EvaluationForm& WithAutoEvaluationConfiguration(AutoEvaluationConfigurationT&& value) {
296 SetAutoEvaluationConfiguration(std::forward<AutoEvaluationConfigurationT>(value));
297 return *this;
298 }
300
302
305 inline const EvaluationReviewConfiguration& GetReviewConfiguration() const { return m_reviewConfiguration; }
306 inline bool ReviewConfigurationHasBeenSet() const { return m_reviewConfigurationHasBeenSet; }
307 template <typename ReviewConfigurationT = EvaluationReviewConfiguration>
308 void SetReviewConfiguration(ReviewConfigurationT&& value) {
309 m_reviewConfigurationHasBeenSet = true;
310 m_reviewConfiguration = std::forward<ReviewConfigurationT>(value);
311 }
312 template <typename ReviewConfigurationT = EvaluationReviewConfiguration>
313 EvaluationForm& WithReviewConfiguration(ReviewConfigurationT&& value) {
314 SetReviewConfiguration(std::forward<ReviewConfigurationT>(value));
315 return *this;
316 }
318
320
324 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
325 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
326 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
327 void SetTags(TagsT&& value) {
328 m_tagsHasBeenSet = true;
329 m_tags = std::forward<TagsT>(value);
330 }
331 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
332 EvaluationForm& WithTags(TagsT&& value) {
333 SetTags(std::forward<TagsT>(value));
334 return *this;
335 }
336 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
337 EvaluationForm& AddTags(TagsKeyT&& key, TagsValueT&& value) {
338 m_tagsHasBeenSet = true;
339 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
340 return *this;
341 }
343
345
348 inline const EvaluationFormTargetConfiguration& GetTargetConfiguration() const { return m_targetConfiguration; }
349 inline bool TargetConfigurationHasBeenSet() const { return m_targetConfigurationHasBeenSet; }
350 template <typename TargetConfigurationT = EvaluationFormTargetConfiguration>
351 void SetTargetConfiguration(TargetConfigurationT&& value) {
352 m_targetConfigurationHasBeenSet = true;
353 m_targetConfiguration = std::forward<TargetConfigurationT>(value);
354 }
355 template <typename TargetConfigurationT = EvaluationFormTargetConfiguration>
356 EvaluationForm& WithTargetConfiguration(TargetConfigurationT&& value) {
357 SetTargetConfiguration(std::forward<TargetConfigurationT>(value));
358 return *this;
359 }
361
363
366 inline const EvaluationFormLanguageConfiguration& GetLanguageConfiguration() const { return m_languageConfiguration; }
367 inline bool LanguageConfigurationHasBeenSet() const { return m_languageConfigurationHasBeenSet; }
368 template <typename LanguageConfigurationT = EvaluationFormLanguageConfiguration>
369 void SetLanguageConfiguration(LanguageConfigurationT&& value) {
370 m_languageConfigurationHasBeenSet = true;
371 m_languageConfiguration = std::forward<LanguageConfigurationT>(value);
372 }
373 template <typename LanguageConfigurationT = EvaluationFormLanguageConfiguration>
374 EvaluationForm& WithLanguageConfiguration(LanguageConfigurationT&& value) {
375 SetLanguageConfiguration(std::forward<LanguageConfigurationT>(value));
376 return *this;
377 }
379
381
386 inline EvaluationFormValidationStatus GetLatestValidationStatus() const { return m_latestValidationStatus; }
387 inline bool LatestValidationStatusHasBeenSet() const { return m_latestValidationStatusHasBeenSet; }
389 m_latestValidationStatusHasBeenSet = true;
390 m_latestValidationStatus = value;
391 }
394 return *this;
395 }
397
399
403 inline const Aws::Utils::DateTime& GetLastValidationTime() const { return m_lastValidationTime; }
404 inline bool LastValidationTimeHasBeenSet() const { return m_lastValidationTimeHasBeenSet; }
405 template <typename LastValidationTimeT = Aws::Utils::DateTime>
406 void SetLastValidationTime(LastValidationTimeT&& value) {
407 m_lastValidationTimeHasBeenSet = true;
408 m_lastValidationTime = std::forward<LastValidationTimeT>(value);
409 }
410 template <typename LastValidationTimeT = Aws::Utils::DateTime>
411 EvaluationForm& WithLastValidationTime(LastValidationTimeT&& value) {
412 SetLastValidationTime(std::forward<LastValidationTimeT>(value));
413 return *this;
414 }
416 private:
417 Aws::String m_evaluationFormId;
418
419 int m_evaluationFormVersion{0};
420
421 bool m_locked{false};
422
423 Aws::String m_evaluationFormArn;
424
425 Aws::String m_title;
426
427 Aws::String m_description;
428
430
432
433 EvaluationFormScoringStrategy m_scoringStrategy;
434
435 Aws::Utils::DateTime m_createdTime{};
436
437 Aws::String m_createdBy;
438
439 Aws::Utils::DateTime m_lastModifiedTime{};
440
441 Aws::String m_lastModifiedBy;
442
443 EvaluationFormAutoEvaluationConfiguration m_autoEvaluationConfiguration;
444
445 EvaluationReviewConfiguration m_reviewConfiguration;
446
448
449 EvaluationFormTargetConfiguration m_targetConfiguration;
450
451 EvaluationFormLanguageConfiguration m_languageConfiguration;
452
454
455 Aws::Utils::DateTime m_lastValidationTime{};
456 bool m_evaluationFormIdHasBeenSet = false;
457 bool m_evaluationFormVersionHasBeenSet = false;
458 bool m_lockedHasBeenSet = false;
459 bool m_evaluationFormArnHasBeenSet = false;
460 bool m_titleHasBeenSet = false;
461 bool m_descriptionHasBeenSet = false;
462 bool m_statusHasBeenSet = false;
463 bool m_itemsHasBeenSet = false;
464 bool m_scoringStrategyHasBeenSet = false;
465 bool m_createdTimeHasBeenSet = false;
466 bool m_createdByHasBeenSet = false;
467 bool m_lastModifiedTimeHasBeenSet = false;
468 bool m_lastModifiedByHasBeenSet = false;
469 bool m_autoEvaluationConfigurationHasBeenSet = false;
470 bool m_reviewConfigurationHasBeenSet = false;
471 bool m_tagsHasBeenSet = false;
472 bool m_targetConfigurationHasBeenSet = false;
473 bool m_languageConfigurationHasBeenSet = false;
474 bool m_latestValidationStatusHasBeenSet = false;
475 bool m_lastValidationTimeHasBeenSet = false;
476};
477
478} // namespace Model
479} // namespace Connect
480} // namespace Aws
const EvaluationFormAutoEvaluationConfiguration & GetAutoEvaluationConfiguration() const
void SetStatus(EvaluationFormVersionStatus value)
void SetCreatedTime(CreatedTimeT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
EvaluationForm & WithLatestValidationStatus(EvaluationFormValidationStatus value)
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)
const Aws::Utils::DateTime & GetLastValidationTime() const
EvaluationForm & WithAutoEvaluationConfiguration(AutoEvaluationConfigurationT &&value)
const EvaluationFormLanguageConfiguration & GetLanguageConfiguration() const
void SetReviewConfiguration(ReviewConfigurationT &&value)
EvaluationForm & WithEvaluationFormId(EvaluationFormIdT &&value)
void SetLatestValidationStatus(EvaluationFormValidationStatus 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
EvaluationFormValidationStatus GetLatestValidationStatus() const
EvaluationForm & WithEvaluationFormArn(EvaluationFormArnT &&value)
void SetCreatedBy(CreatedByT &&value)
EvaluationForm & WithCreatedTime(CreatedTimeT &&value)
EvaluationForm & WithDescription(DescriptionT &&value)
EvaluationForm & WithTitle(TitleT &&value)
EvaluationForm & WithLastValidationTime(LastValidationTimeT &&value)
void SetEvaluationFormArn(EvaluationFormArnT &&value)
EvaluationForm & WithTags(TagsT &&value)
const Aws::String & GetEvaluationFormId() const
const Aws::Utils::DateTime & GetCreatedTime() const
void SetLastValidationTime(LastValidationTimeT &&value)
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