AWS SDK for C++

AWS SDK for C++ Version 1.11.869

Loading...
Searching...
No Matches
GetTaskTemplateResult.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/TaskTemplateConstraints.h>
9#include <aws/connect/model/TaskTemplateDefaults.h>
10#include <aws/connect/model/TaskTemplateField.h>
11#include <aws/connect/model/TaskTemplateStatus.h>
12#include <aws/core/http/HttpResponse.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace Connect {
30namespace Model {
32 public:
33 AWS_CONNECT_API GetTaskTemplateResult() = default;
36
38
43 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
44 template <typename InstanceIdT = Aws::String>
45 void SetInstanceId(InstanceIdT&& value) {
46 m_instanceIdHasBeenSet = true;
47 m_instanceId = std::forward<InstanceIdT>(value);
48 }
49 template <typename InstanceIdT = Aws::String>
50 GetTaskTemplateResult& WithInstanceId(InstanceIdT&& value) {
51 SetInstanceId(std::forward<InstanceIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetId() const { return m_id; }
61 template <typename IdT = Aws::String>
62 void SetId(IdT&& value) {
63 m_idHasBeenSet = true;
64 m_id = std::forward<IdT>(value);
65 }
66 template <typename IdT = Aws::String>
68 SetId(std::forward<IdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetArn() const { return m_arn; }
78 template <typename ArnT = Aws::String>
79 void SetArn(ArnT&& value) {
80 m_arnHasBeenSet = true;
81 m_arn = std::forward<ArnT>(value);
82 }
83 template <typename ArnT = Aws::String>
85 SetArn(std::forward<ArnT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetName() const { return m_name; }
95 template <typename NameT = Aws::String>
96 void SetName(NameT&& value) {
97 m_nameHasBeenSet = true;
98 m_name = std::forward<NameT>(value);
99 }
100 template <typename NameT = Aws::String>
102 SetName(std::forward<NameT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetDescription() const { return m_description; }
112 template <typename DescriptionT = Aws::String>
113 void SetDescription(DescriptionT&& value) {
114 m_descriptionHasBeenSet = true;
115 m_description = std::forward<DescriptionT>(value);
116 }
117 template <typename DescriptionT = Aws::String>
118 GetTaskTemplateResult& WithDescription(DescriptionT&& value) {
119 SetDescription(std::forward<DescriptionT>(value));
120 return *this;
121 }
123
125
129 inline const Aws::String& GetContactFlowId() const { return m_contactFlowId; }
130 template <typename ContactFlowIdT = Aws::String>
131 void SetContactFlowId(ContactFlowIdT&& value) {
132 m_contactFlowIdHasBeenSet = true;
133 m_contactFlowId = std::forward<ContactFlowIdT>(value);
134 }
135 template <typename ContactFlowIdT = Aws::String>
136 GetTaskTemplateResult& WithContactFlowId(ContactFlowIdT&& value) {
137 SetContactFlowId(std::forward<ContactFlowIdT>(value));
138 return *this;
139 }
141
143
147 inline const Aws::String& GetSelfAssignFlowId() const { return m_selfAssignFlowId; }
148 template <typename SelfAssignFlowIdT = Aws::String>
149 void SetSelfAssignFlowId(SelfAssignFlowIdT&& value) {
150 m_selfAssignFlowIdHasBeenSet = true;
151 m_selfAssignFlowId = std::forward<SelfAssignFlowIdT>(value);
152 }
153 template <typename SelfAssignFlowIdT = Aws::String>
154 GetTaskTemplateResult& WithSelfAssignFlowId(SelfAssignFlowIdT&& value) {
155 SetSelfAssignFlowId(std::forward<SelfAssignFlowIdT>(value));
156 return *this;
157 }
159
161
169 inline const TaskTemplateConstraints& GetConstraints() const { return m_constraints; }
170 template <typename ConstraintsT = TaskTemplateConstraints>
171 void SetConstraints(ConstraintsT&& value) {
172 m_constraintsHasBeenSet = true;
173 m_constraints = std::forward<ConstraintsT>(value);
174 }
175 template <typename ConstraintsT = TaskTemplateConstraints>
176 GetTaskTemplateResult& WithConstraints(ConstraintsT&& value) {
177 SetConstraints(std::forward<ConstraintsT>(value));
178 return *this;
179 }
181
183
187 inline const TaskTemplateDefaults& GetDefaults() const { return m_defaults; }
188 template <typename DefaultsT = TaskTemplateDefaults>
189 void SetDefaults(DefaultsT&& value) {
190 m_defaultsHasBeenSet = true;
191 m_defaults = std::forward<DefaultsT>(value);
192 }
193 template <typename DefaultsT = TaskTemplateDefaults>
195 SetDefaults(std::forward<DefaultsT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::Vector<TaskTemplateField>& GetFields() const { return m_fields; }
205 template <typename FieldsT = Aws::Vector<TaskTemplateField>>
206 void SetFields(FieldsT&& value) {
207 m_fieldsHasBeenSet = true;
208 m_fields = std::forward<FieldsT>(value);
209 }
210 template <typename FieldsT = Aws::Vector<TaskTemplateField>>
212 SetFields(std::forward<FieldsT>(value));
213 return *this;
214 }
215 template <typename FieldsT = TaskTemplateField>
217 m_fieldsHasBeenSet = true;
218 m_fields.emplace_back(std::forward<FieldsT>(value));
219 return *this;
220 }
222
224
230 inline TaskTemplateStatus GetStatus() const { return m_status; }
231 inline void SetStatus(TaskTemplateStatus value) {
232 m_statusHasBeenSet = true;
233 m_status = value;
234 }
236 SetStatus(value);
237 return *this;
238 }
240
242
245 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
246 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
247 void SetLastModifiedTime(LastModifiedTimeT&& value) {
248 m_lastModifiedTimeHasBeenSet = true;
249 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
250 }
251 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
252 GetTaskTemplateResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
253 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
254 return *this;
255 }
257
259
262 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
263 template <typename CreatedTimeT = Aws::Utils::DateTime>
264 void SetCreatedTime(CreatedTimeT&& value) {
265 m_createdTimeHasBeenSet = true;
266 m_createdTime = std::forward<CreatedTimeT>(value);
267 }
268 template <typename CreatedTimeT = Aws::Utils::DateTime>
269 GetTaskTemplateResult& WithCreatedTime(CreatedTimeT&& value) {
270 SetCreatedTime(std::forward<CreatedTimeT>(value));
271 return *this;
272 }
274
276
280 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
281 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
282 void SetTags(TagsT&& value) {
283 m_tagsHasBeenSet = true;
284 m_tags = std::forward<TagsT>(value);
285 }
286 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
288 SetTags(std::forward<TagsT>(value));
289 return *this;
290 }
291 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
292 GetTaskTemplateResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
293 m_tagsHasBeenSet = true;
294 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
295 return *this;
296 }
298
300
301 inline const Aws::String& GetRequestId() const { return m_requestId; }
302 template <typename RequestIdT = Aws::String>
303 void SetRequestId(RequestIdT&& value) {
304 m_requestIdHasBeenSet = true;
305 m_requestId = std::forward<RequestIdT>(value);
306 }
307 template <typename RequestIdT = Aws::String>
309 SetRequestId(std::forward<RequestIdT>(value));
310 return *this;
311 }
313 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
314
315 private:
316 Aws::String m_instanceId;
317
318 Aws::String m_id;
319
320 Aws::String m_arn;
321
322 Aws::String m_name;
323
324 Aws::String m_description;
325
326 Aws::String m_contactFlowId;
327
328 Aws::String m_selfAssignFlowId;
329
330 TaskTemplateConstraints m_constraints;
331
332 TaskTemplateDefaults m_defaults;
333
335
337
338 Aws::Utils::DateTime m_lastModifiedTime{};
339
340 Aws::Utils::DateTime m_createdTime{};
341
343
344 Aws::String m_requestId;
345 Aws::Http::HttpResponseCode m_HttpResponseCode;
346 bool m_instanceIdHasBeenSet = false;
347 bool m_idHasBeenSet = false;
348 bool m_arnHasBeenSet = false;
349 bool m_nameHasBeenSet = false;
350 bool m_descriptionHasBeenSet = false;
351 bool m_contactFlowIdHasBeenSet = false;
352 bool m_selfAssignFlowIdHasBeenSet = false;
353 bool m_constraintsHasBeenSet = false;
354 bool m_defaultsHasBeenSet = false;
355 bool m_fieldsHasBeenSet = false;
356 bool m_statusHasBeenSet = false;
357 bool m_lastModifiedTimeHasBeenSet = false;
358 bool m_createdTimeHasBeenSet = false;
359 bool m_tagsHasBeenSet = false;
360 bool m_requestIdHasBeenSet = false;
361};
362
363} // namespace Model
364} // namespace Connect
365} // namespace Aws
const TaskTemplateDefaults & GetDefaults() const
GetTaskTemplateResult & WithArn(ArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetTaskTemplateResult & WithStatus(TaskTemplateStatus value)
GetTaskTemplateResult & WithTags(TagsT &&value)
GetTaskTemplateResult & WithName(NameT &&value)
GetTaskTemplateResult & WithLastModifiedTime(LastModifiedTimeT &&value)
const TaskTemplateConstraints & GetConstraints() const
AWS_CONNECT_API GetTaskTemplateResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetSelfAssignFlowId(SelfAssignFlowIdT &&value)
GetTaskTemplateResult & WithRequestId(RequestIdT &&value)
GetTaskTemplateResult & WithDescription(DescriptionT &&value)
GetTaskTemplateResult & WithConstraints(ConstraintsT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
GetTaskTemplateResult & WithId(IdT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
GetTaskTemplateResult & WithFields(FieldsT &&value)
AWS_CONNECT_API GetTaskTemplateResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
GetTaskTemplateResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetTaskTemplateResult & WithDefaults(DefaultsT &&value)
GetTaskTemplateResult & WithInstanceId(InstanceIdT &&value)
GetTaskTemplateResult & AddFields(FieldsT &&value)
GetTaskTemplateResult & WithCreatedTime(CreatedTimeT &&value)
GetTaskTemplateResult & WithContactFlowId(ContactFlowIdT &&value)
AWS_CONNECT_API GetTaskTemplateResult()=default
GetTaskTemplateResult & WithSelfAssignFlowId(SelfAssignFlowIdT &&value)
const Aws::Vector< TaskTemplateField > & GetFields() 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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue