AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EvaluationForm.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connect/model/EvaluationFormVersionStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/connect/model/EvaluationFormScoringStrategy.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/connect/model/EvaluationFormItem.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Connect
28{
29namespace Model
30{
31
38 {
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
45
47
50 inline const Aws::String& GetEvaluationFormId() const { return m_evaluationFormId; }
51 inline bool EvaluationFormIdHasBeenSet() const { return m_evaluationFormIdHasBeenSet; }
52 template<typename EvaluationFormIdT = Aws::String>
53 void SetEvaluationFormId(EvaluationFormIdT&& value) { m_evaluationFormIdHasBeenSet = true; m_evaluationFormId = std::forward<EvaluationFormIdT>(value); }
54 template<typename EvaluationFormIdT = Aws::String>
55 EvaluationForm& WithEvaluationFormId(EvaluationFormIdT&& value) { SetEvaluationFormId(std::forward<EvaluationFormIdT>(value)); return *this;}
57
59
62 inline int GetEvaluationFormVersion() const { return m_evaluationFormVersion; }
63 inline bool EvaluationFormVersionHasBeenSet() const { return m_evaluationFormVersionHasBeenSet; }
64 inline void SetEvaluationFormVersion(int value) { m_evaluationFormVersionHasBeenSet = true; m_evaluationFormVersion = value; }
65 inline EvaluationForm& WithEvaluationFormVersion(int value) { SetEvaluationFormVersion(value); return *this;}
67
69
72 inline bool GetLocked() const { return m_locked; }
73 inline bool LockedHasBeenSet() const { return m_lockedHasBeenSet; }
74 inline void SetLocked(bool value) { m_lockedHasBeenSet = true; m_locked = value; }
75 inline EvaluationForm& WithLocked(bool value) { SetLocked(value); return *this;}
77
79
82 inline const Aws::String& GetEvaluationFormArn() const { return m_evaluationFormArn; }
83 inline bool EvaluationFormArnHasBeenSet() const { return m_evaluationFormArnHasBeenSet; }
84 template<typename EvaluationFormArnT = Aws::String>
85 void SetEvaluationFormArn(EvaluationFormArnT&& value) { m_evaluationFormArnHasBeenSet = true; m_evaluationFormArn = std::forward<EvaluationFormArnT>(value); }
86 template<typename EvaluationFormArnT = Aws::String>
87 EvaluationForm& WithEvaluationFormArn(EvaluationFormArnT&& value) { SetEvaluationFormArn(std::forward<EvaluationFormArnT>(value)); return *this;}
89
91
94 inline const Aws::String& GetTitle() const { return m_title; }
95 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
96 template<typename TitleT = Aws::String>
97 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
98 template<typename TitleT = Aws::String>
99 EvaluationForm& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
101
103
106 inline const Aws::String& GetDescription() const { return m_description; }
107 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
108 template<typename DescriptionT = Aws::String>
109 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
110 template<typename DescriptionT = Aws::String>
111 EvaluationForm& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
113
115
118 inline EvaluationFormVersionStatus GetStatus() const { return m_status; }
119 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
120 inline void SetStatus(EvaluationFormVersionStatus value) { m_statusHasBeenSet = true; m_status = value; }
121 inline EvaluationForm& WithStatus(EvaluationFormVersionStatus value) { SetStatus(value); return *this;}
123
125
130 inline const Aws::Vector<EvaluationFormItem>& GetItems() const { return m_items; }
131 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
132 template<typename ItemsT = Aws::Vector<EvaluationFormItem>>
133 void SetItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items = std::forward<ItemsT>(value); }
134 template<typename ItemsT = Aws::Vector<EvaluationFormItem>>
135 EvaluationForm& WithItems(ItemsT&& value) { SetItems(std::forward<ItemsT>(value)); return *this;}
136 template<typename ItemsT = EvaluationFormItem>
137 EvaluationForm& AddItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items.emplace_back(std::forward<ItemsT>(value)); return *this; }
139
141
144 inline const EvaluationFormScoringStrategy& GetScoringStrategy() const { return m_scoringStrategy; }
145 inline bool ScoringStrategyHasBeenSet() const { return m_scoringStrategyHasBeenSet; }
146 template<typename ScoringStrategyT = EvaluationFormScoringStrategy>
147 void SetScoringStrategy(ScoringStrategyT&& value) { m_scoringStrategyHasBeenSet = true; m_scoringStrategy = std::forward<ScoringStrategyT>(value); }
148 template<typename ScoringStrategyT = EvaluationFormScoringStrategy>
149 EvaluationForm& WithScoringStrategy(ScoringStrategyT&& value) { SetScoringStrategy(std::forward<ScoringStrategyT>(value)); return *this;}
151
153
156 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
157 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
158 template<typename CreatedTimeT = Aws::Utils::DateTime>
159 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
160 template<typename CreatedTimeT = Aws::Utils::DateTime>
161 EvaluationForm& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
163
165
169 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
170 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
171 template<typename CreatedByT = Aws::String>
172 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
173 template<typename CreatedByT = Aws::String>
174 EvaluationForm& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
176
178
181 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
182 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
183 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
184 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
185 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
186 EvaluationForm& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
188
190
194 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
195 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
196 template<typename LastModifiedByT = Aws::String>
197 void SetLastModifiedBy(LastModifiedByT&& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = std::forward<LastModifiedByT>(value); }
198 template<typename LastModifiedByT = Aws::String>
199 EvaluationForm& WithLastModifiedBy(LastModifiedByT&& value) { SetLastModifiedBy(std::forward<LastModifiedByT>(value)); return *this;}
201
203
207 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
208 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
209 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
210 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
211 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
212 EvaluationForm& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
213 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
214 EvaluationForm& AddTags(TagsKeyT&& key, TagsValueT&& value) {
215 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
216 }
218 private:
219
220 Aws::String m_evaluationFormId;
221 bool m_evaluationFormIdHasBeenSet = false;
222
223 int m_evaluationFormVersion{0};
224 bool m_evaluationFormVersionHasBeenSet = false;
225
226 bool m_locked{false};
227 bool m_lockedHasBeenSet = false;
228
229 Aws::String m_evaluationFormArn;
230 bool m_evaluationFormArnHasBeenSet = false;
231
232 Aws::String m_title;
233 bool m_titleHasBeenSet = false;
234
235 Aws::String m_description;
236 bool m_descriptionHasBeenSet = false;
237
239 bool m_statusHasBeenSet = false;
240
242 bool m_itemsHasBeenSet = false;
243
244 EvaluationFormScoringStrategy m_scoringStrategy;
245 bool m_scoringStrategyHasBeenSet = false;
246
247 Aws::Utils::DateTime m_createdTime{};
248 bool m_createdTimeHasBeenSet = false;
249
250 Aws::String m_createdBy;
251 bool m_createdByHasBeenSet = false;
252
253 Aws::Utils::DateTime m_lastModifiedTime{};
254 bool m_lastModifiedTimeHasBeenSet = false;
255
256 Aws::String m_lastModifiedBy;
257 bool m_lastModifiedByHasBeenSet = false;
258
260 bool m_tagsHasBeenSet = false;
261 };
262
263} // namespace Model
264} // namespace Connect
265} // namespace Aws
void SetStatus(EvaluationFormVersionStatus value)
void SetCreatedTime(CreatedTimeT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
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
EvaluationForm & WithEvaluationFormId(EvaluationFormIdT &&value)
const Aws::String & GetLastModifiedBy() const
AWS_CONNECT_API EvaluationForm()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
EvaluationForm & WithCreatedBy(CreatedByT &&value)
void SetLastModifiedBy(LastModifiedByT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
EvaluationForm & AddItems(ItemsT &&value)
const Aws::Vector< EvaluationFormItem > & GetItems() const
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)
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 & 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