AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
Evaluation.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/EvaluationAnswerOutput.h>
9#include <aws/connect/model/EvaluationMetadata.h>
10#include <aws/connect/model/EvaluationNote.h>
11#include <aws/connect/model/EvaluationScore.h>
12#include <aws/connect/model/EvaluationStatus.h>
13#include <aws/connect/model/EvaluationType.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Connect {
28namespace Model {
29
36 public:
37 AWS_CONNECT_API Evaluation() = default;
38 AWS_CONNECT_API Evaluation(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECT_API Evaluation& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetEvaluationId() const { return m_evaluationId; }
47 inline bool EvaluationIdHasBeenSet() const { return m_evaluationIdHasBeenSet; }
48 template <typename EvaluationIdT = Aws::String>
49 void SetEvaluationId(EvaluationIdT&& value) {
50 m_evaluationIdHasBeenSet = true;
51 m_evaluationId = std::forward<EvaluationIdT>(value);
52 }
53 template <typename EvaluationIdT = Aws::String>
54 Evaluation& WithEvaluationId(EvaluationIdT&& value) {
55 SetEvaluationId(std::forward<EvaluationIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetEvaluationArn() const { return m_evaluationArn; }
65 inline bool EvaluationArnHasBeenSet() const { return m_evaluationArnHasBeenSet; }
66 template <typename EvaluationArnT = Aws::String>
67 void SetEvaluationArn(EvaluationArnT&& value) {
68 m_evaluationArnHasBeenSet = true;
69 m_evaluationArn = std::forward<EvaluationArnT>(value);
70 }
71 template <typename EvaluationArnT = Aws::String>
72 Evaluation& WithEvaluationArn(EvaluationArnT&& value) {
73 SetEvaluationArn(std::forward<EvaluationArnT>(value));
74 return *this;
75 }
77
79
82 inline const EvaluationMetadata& GetMetadata() const { return m_metadata; }
83 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
84 template <typename MetadataT = EvaluationMetadata>
85 void SetMetadata(MetadataT&& value) {
86 m_metadataHasBeenSet = true;
87 m_metadata = std::forward<MetadataT>(value);
88 }
89 template <typename MetadataT = EvaluationMetadata>
90 Evaluation& WithMetadata(MetadataT&& value) {
91 SetMetadata(std::forward<MetadataT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::Map<Aws::String, EvaluationAnswerOutput>& GetAnswers() const { return m_answers; }
101 inline bool AnswersHasBeenSet() const { return m_answersHasBeenSet; }
102 template <typename AnswersT = Aws::Map<Aws::String, EvaluationAnswerOutput>>
103 void SetAnswers(AnswersT&& value) {
104 m_answersHasBeenSet = true;
105 m_answers = std::forward<AnswersT>(value);
106 }
107 template <typename AnswersT = Aws::Map<Aws::String, EvaluationAnswerOutput>>
108 Evaluation& WithAnswers(AnswersT&& value) {
109 SetAnswers(std::forward<AnswersT>(value));
110 return *this;
111 }
112 template <typename AnswersKeyT = Aws::String, typename AnswersValueT = EvaluationAnswerOutput>
113 Evaluation& AddAnswers(AnswersKeyT&& key, AnswersValueT&& value) {
114 m_answersHasBeenSet = true;
115 m_answers.emplace(std::forward<AnswersKeyT>(key), std::forward<AnswersValueT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::Map<Aws::String, EvaluationNote>& GetNotes() const { return m_notes; }
125 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
126 template <typename NotesT = Aws::Map<Aws::String, EvaluationNote>>
127 void SetNotes(NotesT&& value) {
128 m_notesHasBeenSet = true;
129 m_notes = std::forward<NotesT>(value);
130 }
131 template <typename NotesT = Aws::Map<Aws::String, EvaluationNote>>
132 Evaluation& WithNotes(NotesT&& value) {
133 SetNotes(std::forward<NotesT>(value));
134 return *this;
135 }
136 template <typename NotesKeyT = Aws::String, typename NotesValueT = EvaluationNote>
137 Evaluation& AddNotes(NotesKeyT&& key, NotesValueT&& value) {
138 m_notesHasBeenSet = true;
139 m_notes.emplace(std::forward<NotesKeyT>(key), std::forward<NotesValueT>(value));
140 return *this;
141 }
143
145
148 inline EvaluationStatus GetStatus() const { return m_status; }
149 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
150 inline void SetStatus(EvaluationStatus value) {
151 m_statusHasBeenSet = true;
152 m_status = value;
153 }
155 SetStatus(value);
156 return *this;
157 }
159
161
164 inline const Aws::Map<Aws::String, EvaluationScore>& GetScores() const { return m_scores; }
165 inline bool ScoresHasBeenSet() const { return m_scoresHasBeenSet; }
166 template <typename ScoresT = Aws::Map<Aws::String, EvaluationScore>>
167 void SetScores(ScoresT&& value) {
168 m_scoresHasBeenSet = true;
169 m_scores = std::forward<ScoresT>(value);
170 }
171 template <typename ScoresT = Aws::Map<Aws::String, EvaluationScore>>
172 Evaluation& WithScores(ScoresT&& value) {
173 SetScores(std::forward<ScoresT>(value));
174 return *this;
175 }
176 template <typename ScoresKeyT = Aws::String, typename ScoresValueT = EvaluationScore>
177 Evaluation& AddScores(ScoresKeyT&& key, ScoresValueT&& value) {
178 m_scoresHasBeenSet = true;
179 m_scores.emplace(std::forward<ScoresKeyT>(key), std::forward<ScoresValueT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
189 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
190 template <typename CreatedTimeT = Aws::Utils::DateTime>
191 void SetCreatedTime(CreatedTimeT&& value) {
192 m_createdTimeHasBeenSet = true;
193 m_createdTime = std::forward<CreatedTimeT>(value);
194 }
195 template <typename CreatedTimeT = Aws::Utils::DateTime>
196 Evaluation& WithCreatedTime(CreatedTimeT&& value) {
197 SetCreatedTime(std::forward<CreatedTimeT>(value));
198 return *this;
199 }
201
203
206 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
207 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
208 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
209 void SetLastModifiedTime(LastModifiedTimeT&& value) {
210 m_lastModifiedTimeHasBeenSet = true;
211 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
212 }
213 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
214 Evaluation& WithLastModifiedTime(LastModifiedTimeT&& value) {
215 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
216 return *this;
217 }
219
221
224 inline EvaluationType GetEvaluationType() const { return m_evaluationType; }
225 inline bool EvaluationTypeHasBeenSet() const { return m_evaluationTypeHasBeenSet; }
227 m_evaluationTypeHasBeenSet = true;
228 m_evaluationType = value;
229 }
231 SetEvaluationType(value);
232 return *this;
233 }
235
237
241 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
242 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
243 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
244 void SetTags(TagsT&& value) {
245 m_tagsHasBeenSet = true;
246 m_tags = std::forward<TagsT>(value);
247 }
248 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
249 Evaluation& WithTags(TagsT&& value) {
250 SetTags(std::forward<TagsT>(value));
251 return *this;
252 }
253 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
254 Evaluation& AddTags(TagsKeyT&& key, TagsValueT&& value) {
255 m_tagsHasBeenSet = true;
256 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
257 return *this;
258 }
260 private:
261 Aws::String m_evaluationId;
262
263 Aws::String m_evaluationArn;
264
265 EvaluationMetadata m_metadata;
266
268
270
272
274
275 Aws::Utils::DateTime m_createdTime{};
276
277 Aws::Utils::DateTime m_lastModifiedTime{};
278
279 EvaluationType m_evaluationType{EvaluationType::NOT_SET};
280
282 bool m_evaluationIdHasBeenSet = false;
283 bool m_evaluationArnHasBeenSet = false;
284 bool m_metadataHasBeenSet = false;
285 bool m_answersHasBeenSet = false;
286 bool m_notesHasBeenSet = false;
287 bool m_statusHasBeenSet = false;
288 bool m_scoresHasBeenSet = false;
289 bool m_createdTimeHasBeenSet = false;
290 bool m_lastModifiedTimeHasBeenSet = false;
291 bool m_evaluationTypeHasBeenSet = false;
292 bool m_tagsHasBeenSet = false;
293};
294
295} // namespace Model
296} // namespace Connect
297} // namespace Aws
Evaluation & WithMetadata(MetadataT &&value)
Definition Evaluation.h:90
void SetAnswers(AnswersT &&value)
Definition Evaluation.h:103
const Aws::Map< Aws::String, EvaluationNote > & GetNotes() const
Definition Evaluation.h:124
void SetStatus(EvaluationStatus value)
Definition Evaluation.h:150
bool LastModifiedTimeHasBeenSet() const
Definition Evaluation.h:207
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition Evaluation.h:209
Evaluation & WithAnswers(AnswersT &&value)
Definition Evaluation.h:108
Evaluation & WithStatus(EvaluationStatus value)
Definition Evaluation.h:154
Evaluation & WithEvaluationType(EvaluationType value)
Definition Evaluation.h:230
Evaluation & WithEvaluationArn(EvaluationArnT &&value)
Definition Evaluation.h:72
void SetEvaluationId(EvaluationIdT &&value)
Definition Evaluation.h:49
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Evaluation.h:241
Evaluation & AddNotes(NotesKeyT &&key, NotesValueT &&value)
Definition Evaluation.h:137
AWS_CONNECT_API Evaluation(Aws::Utils::Json::JsonView jsonValue)
Evaluation & WithNotes(NotesT &&value)
Definition Evaluation.h:132
Evaluation & WithTags(TagsT &&value)
Definition Evaluation.h:249
void SetNotes(NotesT &&value)
Definition Evaluation.h:127
void SetTags(TagsT &&value)
Definition Evaluation.h:244
Evaluation & WithScores(ScoresT &&value)
Definition Evaluation.h:172
Evaluation & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition Evaluation.h:214
const Aws::String & GetEvaluationArn() const
Definition Evaluation.h:64
Evaluation & AddAnswers(AnswersKeyT &&key, AnswersValueT &&value)
Definition Evaluation.h:113
const Aws::Utils::DateTime & GetCreatedTime() const
Definition Evaluation.h:188
const Aws::Map< Aws::String, EvaluationScore > & GetScores() const
Definition Evaluation.h:164
AWS_CONNECT_API Evaluation()=default
void SetEvaluationArn(EvaluationArnT &&value)
Definition Evaluation.h:67
const Aws::String & GetEvaluationId() const
Definition Evaluation.h:46
EvaluationStatus GetStatus() const
Definition Evaluation.h:148
EvaluationType GetEvaluationType() const
Definition Evaluation.h:224
void SetScores(ScoresT &&value)
Definition Evaluation.h:167
Evaluation & AddScores(ScoresKeyT &&key, ScoresValueT &&value)
Definition Evaluation.h:177
const Aws::Map< Aws::String, EvaluationAnswerOutput > & GetAnswers() const
Definition Evaluation.h:100
AWS_CONNECT_API Evaluation & operator=(Aws::Utils::Json::JsonView jsonValue)
const EvaluationMetadata & GetMetadata() const
Definition Evaluation.h:82
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Evaluation.h:206
void SetMetadata(MetadataT &&value)
Definition Evaluation.h:85
Evaluation & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Evaluation.h:254
void SetEvaluationType(EvaluationType value)
Definition Evaluation.h:226
Evaluation & WithCreatedTime(CreatedTimeT &&value)
Definition Evaluation.h:196
Evaluation & WithEvaluationId(EvaluationIdT &&value)
Definition Evaluation.h:54
void SetCreatedTime(CreatedTimeT &&value)
Definition Evaluation.h:191
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
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
Aws::Utils::Json::JsonValue JsonValue