AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Evaluation.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/EvaluationMetadata.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/connect/model/EvaluationStatus.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/connect/model/EvaluationAnswerOutput.h>
14#include <aws/connect/model/EvaluationNote.h>
15#include <aws/connect/model/EvaluationScore.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace Connect
29{
30namespace Model
31{
32
39 {
40 public:
41 AWS_CONNECT_API Evaluation() = default;
42 AWS_CONNECT_API Evaluation(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CONNECT_API Evaluation& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetEvaluationId() const { return m_evaluationId; }
52 inline bool EvaluationIdHasBeenSet() const { return m_evaluationIdHasBeenSet; }
53 template<typename EvaluationIdT = Aws::String>
54 void SetEvaluationId(EvaluationIdT&& value) { m_evaluationIdHasBeenSet = true; m_evaluationId = std::forward<EvaluationIdT>(value); }
55 template<typename EvaluationIdT = Aws::String>
56 Evaluation& WithEvaluationId(EvaluationIdT&& value) { SetEvaluationId(std::forward<EvaluationIdT>(value)); return *this;}
58
60
63 inline const Aws::String& GetEvaluationArn() const { return m_evaluationArn; }
64 inline bool EvaluationArnHasBeenSet() const { return m_evaluationArnHasBeenSet; }
65 template<typename EvaluationArnT = Aws::String>
66 void SetEvaluationArn(EvaluationArnT&& value) { m_evaluationArnHasBeenSet = true; m_evaluationArn = std::forward<EvaluationArnT>(value); }
67 template<typename EvaluationArnT = Aws::String>
68 Evaluation& WithEvaluationArn(EvaluationArnT&& value) { SetEvaluationArn(std::forward<EvaluationArnT>(value)); return *this;}
70
72
75 inline const EvaluationMetadata& GetMetadata() const { return m_metadata; }
76 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
77 template<typename MetadataT = EvaluationMetadata>
78 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
79 template<typename MetadataT = EvaluationMetadata>
80 Evaluation& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
82
84
87 inline const Aws::Map<Aws::String, EvaluationAnswerOutput>& GetAnswers() const { return m_answers; }
88 inline bool AnswersHasBeenSet() const { return m_answersHasBeenSet; }
89 template<typename AnswersT = Aws::Map<Aws::String, EvaluationAnswerOutput>>
90 void SetAnswers(AnswersT&& value) { m_answersHasBeenSet = true; m_answers = std::forward<AnswersT>(value); }
91 template<typename AnswersT = Aws::Map<Aws::String, EvaluationAnswerOutput>>
92 Evaluation& WithAnswers(AnswersT&& value) { SetAnswers(std::forward<AnswersT>(value)); return *this;}
93 template<typename AnswersKeyT = Aws::String, typename AnswersValueT = EvaluationAnswerOutput>
94 Evaluation& AddAnswers(AnswersKeyT&& key, AnswersValueT&& value) {
95 m_answersHasBeenSet = true; m_answers.emplace(std::forward<AnswersKeyT>(key), std::forward<AnswersValueT>(value)); return *this;
96 }
98
100
103 inline const Aws::Map<Aws::String, EvaluationNote>& GetNotes() const { return m_notes; }
104 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
105 template<typename NotesT = Aws::Map<Aws::String, EvaluationNote>>
106 void SetNotes(NotesT&& value) { m_notesHasBeenSet = true; m_notes = std::forward<NotesT>(value); }
107 template<typename NotesT = Aws::Map<Aws::String, EvaluationNote>>
108 Evaluation& WithNotes(NotesT&& value) { SetNotes(std::forward<NotesT>(value)); return *this;}
109 template<typename NotesKeyT = Aws::String, typename NotesValueT = EvaluationNote>
110 Evaluation& AddNotes(NotesKeyT&& key, NotesValueT&& value) {
111 m_notesHasBeenSet = true; m_notes.emplace(std::forward<NotesKeyT>(key), std::forward<NotesValueT>(value)); return *this;
112 }
114
116
119 inline EvaluationStatus GetStatus() const { return m_status; }
120 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
121 inline void SetStatus(EvaluationStatus value) { m_statusHasBeenSet = true; m_status = value; }
122 inline Evaluation& WithStatus(EvaluationStatus value) { SetStatus(value); return *this;}
124
126
129 inline const Aws::Map<Aws::String, EvaluationScore>& GetScores() const { return m_scores; }
130 inline bool ScoresHasBeenSet() const { return m_scoresHasBeenSet; }
131 template<typename ScoresT = Aws::Map<Aws::String, EvaluationScore>>
132 void SetScores(ScoresT&& value) { m_scoresHasBeenSet = true; m_scores = std::forward<ScoresT>(value); }
133 template<typename ScoresT = Aws::Map<Aws::String, EvaluationScore>>
134 Evaluation& WithScores(ScoresT&& value) { SetScores(std::forward<ScoresT>(value)); return *this;}
135 template<typename ScoresKeyT = Aws::String, typename ScoresValueT = EvaluationScore>
136 Evaluation& AddScores(ScoresKeyT&& key, ScoresValueT&& value) {
137 m_scoresHasBeenSet = true; m_scores.emplace(std::forward<ScoresKeyT>(key), std::forward<ScoresValueT>(value)); return *this;
138 }
140
142
145 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
146 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
147 template<typename CreatedTimeT = Aws::Utils::DateTime>
148 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
149 template<typename CreatedTimeT = Aws::Utils::DateTime>
150 Evaluation& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
152
154
157 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
158 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
159 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
160 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
161 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
162 Evaluation& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
164
166
170 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
171 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
172 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
173 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
174 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
175 Evaluation& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
176 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
177 Evaluation& AddTags(TagsKeyT&& key, TagsValueT&& value) {
178 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
179 }
181 private:
182
183 Aws::String m_evaluationId;
184 bool m_evaluationIdHasBeenSet = false;
185
186 Aws::String m_evaluationArn;
187 bool m_evaluationArnHasBeenSet = false;
188
189 EvaluationMetadata m_metadata;
190 bool m_metadataHasBeenSet = false;
191
193 bool m_answersHasBeenSet = false;
194
196 bool m_notesHasBeenSet = false;
197
199 bool m_statusHasBeenSet = false;
200
202 bool m_scoresHasBeenSet = false;
203
204 Aws::Utils::DateTime m_createdTime{};
205 bool m_createdTimeHasBeenSet = false;
206
207 Aws::Utils::DateTime m_lastModifiedTime{};
208 bool m_lastModifiedTimeHasBeenSet = false;
209
211 bool m_tagsHasBeenSet = false;
212 };
213
214} // namespace Model
215} // namespace Connect
216} // namespace Aws
Evaluation & WithMetadata(MetadataT &&value)
Definition Evaluation.h:80
void SetAnswers(AnswersT &&value)
Definition Evaluation.h:90
const Aws::Map< Aws::String, EvaluationNote > & GetNotes() const
Definition Evaluation.h:103
void SetStatus(EvaluationStatus value)
Definition Evaluation.h:121
bool LastModifiedTimeHasBeenSet() const
Definition Evaluation.h:158
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition Evaluation.h:160
Evaluation & WithAnswers(AnswersT &&value)
Definition Evaluation.h:92
Evaluation & WithStatus(EvaluationStatus value)
Definition Evaluation.h:122
Evaluation & WithEvaluationArn(EvaluationArnT &&value)
Definition Evaluation.h:68
void SetEvaluationId(EvaluationIdT &&value)
Definition Evaluation.h:54
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Evaluation.h:170
Evaluation & AddNotes(NotesKeyT &&key, NotesValueT &&value)
Definition Evaluation.h:110
AWS_CONNECT_API Evaluation(Aws::Utils::Json::JsonView jsonValue)
Evaluation & WithNotes(NotesT &&value)
Definition Evaluation.h:108
Evaluation & WithTags(TagsT &&value)
Definition Evaluation.h:175
void SetNotes(NotesT &&value)
Definition Evaluation.h:106
void SetTags(TagsT &&value)
Definition Evaluation.h:173
Evaluation & WithScores(ScoresT &&value)
Definition Evaluation.h:134
Evaluation & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition Evaluation.h:162
const Aws::String & GetEvaluationArn() const
Definition Evaluation.h:63
Evaluation & AddAnswers(AnswersKeyT &&key, AnswersValueT &&value)
Definition Evaluation.h:94
const Aws::Utils::DateTime & GetCreatedTime() const
Definition Evaluation.h:145
const Aws::Map< Aws::String, EvaluationScore > & GetScores() const
Definition Evaluation.h:129
AWS_CONNECT_API Evaluation()=default
void SetEvaluationArn(EvaluationArnT &&value)
Definition Evaluation.h:66
const Aws::String & GetEvaluationId() const
Definition Evaluation.h:51
EvaluationStatus GetStatus() const
Definition Evaluation.h:119
void SetScores(ScoresT &&value)
Definition Evaluation.h:132
Evaluation & AddScores(ScoresKeyT &&key, ScoresValueT &&value)
Definition Evaluation.h:136
const Aws::Map< Aws::String, EvaluationAnswerOutput > & GetAnswers() const
Definition Evaluation.h:87
AWS_CONNECT_API Evaluation & operator=(Aws::Utils::Json::JsonView jsonValue)
const EvaluationMetadata & GetMetadata() const
Definition Evaluation.h:75
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Evaluation.h:157
void SetMetadata(MetadataT &&value)
Definition Evaluation.h:78
Evaluation & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Evaluation.h:177
Evaluation & WithCreatedTime(CreatedTimeT &&value)
Definition Evaluation.h:150
Evaluation & WithEvaluationId(EvaluationIdT &&value)
Definition Evaluation.h:56
void SetCreatedTime(CreatedTimeT &&value)
Definition Evaluation.h:148
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