AWS SDK for C++

AWS SDK for C++ Version 1.11.930

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/TaskTemplateContactHooks.h>
10#include <aws/connect/model/TaskTemplateDefaults.h>
11#include <aws/connect/model/TaskTemplateField.h>
12#include <aws/connect/model/TaskTemplateStatus.h>
13#include <aws/core/http/HttpResponse.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#include <aws/core/utils/memory/stl/AWSVector.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace Connect {
31namespace Model {
33 public:
34 AWS_CONNECT_API GetTaskTemplateResult() = default;
37
39
44 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
45 template <typename InstanceIdT = Aws::String>
46 void SetInstanceId(InstanceIdT&& value) {
47 m_instanceIdHasBeenSet = true;
48 m_instanceId = std::forward<InstanceIdT>(value);
49 }
50 template <typename InstanceIdT = Aws::String>
51 GetTaskTemplateResult& WithInstanceId(InstanceIdT&& value) {
52 SetInstanceId(std::forward<InstanceIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetId() const { return m_id; }
62 template <typename IdT = Aws::String>
63 void SetId(IdT&& value) {
64 m_idHasBeenSet = true;
65 m_id = std::forward<IdT>(value);
66 }
67 template <typename IdT = Aws::String>
69 SetId(std::forward<IdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetArn() const { return m_arn; }
79 template <typename ArnT = Aws::String>
80 void SetArn(ArnT&& value) {
81 m_arnHasBeenSet = true;
82 m_arn = std::forward<ArnT>(value);
83 }
84 template <typename ArnT = Aws::String>
86 SetArn(std::forward<ArnT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetName() const { return m_name; }
96 template <typename NameT = Aws::String>
97 void SetName(NameT&& value) {
98 m_nameHasBeenSet = true;
99 m_name = std::forward<NameT>(value);
100 }
101 template <typename NameT = Aws::String>
103 SetName(std::forward<NameT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetDescription() const { return m_description; }
113 template <typename DescriptionT = Aws::String>
114 void SetDescription(DescriptionT&& value) {
115 m_descriptionHasBeenSet = true;
116 m_description = std::forward<DescriptionT>(value);
117 }
118 template <typename DescriptionT = Aws::String>
119 GetTaskTemplateResult& WithDescription(DescriptionT&& value) {
120 SetDescription(std::forward<DescriptionT>(value));
121 return *this;
122 }
124
126
130 inline const Aws::String& GetContactFlowId() const { return m_contactFlowId; }
131 template <typename ContactFlowIdT = Aws::String>
132 void SetContactFlowId(ContactFlowIdT&& value) {
133 m_contactFlowIdHasBeenSet = true;
134 m_contactFlowId = std::forward<ContactFlowIdT>(value);
135 }
136 template <typename ContactFlowIdT = Aws::String>
137 GetTaskTemplateResult& WithContactFlowId(ContactFlowIdT&& value) {
138 SetContactFlowId(std::forward<ContactFlowIdT>(value));
139 return *this;
140 }
142
144
148 inline const Aws::String& GetSelfAssignFlowId() const { return m_selfAssignFlowId; }
149 template <typename SelfAssignFlowIdT = Aws::String>
150 void SetSelfAssignFlowId(SelfAssignFlowIdT&& value) {
151 m_selfAssignFlowIdHasBeenSet = true;
152 m_selfAssignFlowId = std::forward<SelfAssignFlowIdT>(value);
153 }
154 template <typename SelfAssignFlowIdT = Aws::String>
155 GetTaskTemplateResult& WithSelfAssignFlowId(SelfAssignFlowIdT&& value) {
156 SetSelfAssignFlowId(std::forward<SelfAssignFlowIdT>(value));
157 return *this;
158 }
160
162
165 inline const TaskTemplateContactHooks& GetContactHooks() const { return m_contactHooks; }
166 template <typename ContactHooksT = TaskTemplateContactHooks>
167 void SetContactHooks(ContactHooksT&& value) {
168 m_contactHooksHasBeenSet = true;
169 m_contactHooks = std::forward<ContactHooksT>(value);
170 }
171 template <typename ContactHooksT = TaskTemplateContactHooks>
172 GetTaskTemplateResult& WithContactHooks(ContactHooksT&& value) {
173 SetContactHooks(std::forward<ContactHooksT>(value));
174 return *this;
175 }
177
179
187 inline const TaskTemplateConstraints& GetConstraints() const { return m_constraints; }
188 template <typename ConstraintsT = TaskTemplateConstraints>
189 void SetConstraints(ConstraintsT&& value) {
190 m_constraintsHasBeenSet = true;
191 m_constraints = std::forward<ConstraintsT>(value);
192 }
193 template <typename ConstraintsT = TaskTemplateConstraints>
194 GetTaskTemplateResult& WithConstraints(ConstraintsT&& value) {
195 SetConstraints(std::forward<ConstraintsT>(value));
196 return *this;
197 }
199
201
205 inline const TaskTemplateDefaults& GetDefaults() const { return m_defaults; }
206 template <typename DefaultsT = TaskTemplateDefaults>
207 void SetDefaults(DefaultsT&& value) {
208 m_defaultsHasBeenSet = true;
209 m_defaults = std::forward<DefaultsT>(value);
210 }
211 template <typename DefaultsT = TaskTemplateDefaults>
213 SetDefaults(std::forward<DefaultsT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::Vector<TaskTemplateField>& GetFields() const { return m_fields; }
223 template <typename FieldsT = Aws::Vector<TaskTemplateField>>
224 void SetFields(FieldsT&& value) {
225 m_fieldsHasBeenSet = true;
226 m_fields = std::forward<FieldsT>(value);
227 }
228 template <typename FieldsT = Aws::Vector<TaskTemplateField>>
230 SetFields(std::forward<FieldsT>(value));
231 return *this;
232 }
233 template <typename FieldsT = TaskTemplateField>
235 m_fieldsHasBeenSet = true;
236 m_fields.emplace_back(std::forward<FieldsT>(value));
237 return *this;
238 }
240
242
248 inline TaskTemplateStatus GetStatus() const { return m_status; }
249 inline void SetStatus(TaskTemplateStatus value) {
250 m_statusHasBeenSet = true;
251 m_status = value;
252 }
254 SetStatus(value);
255 return *this;
256 }
258
260
263 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
264 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
265 void SetLastModifiedTime(LastModifiedTimeT&& value) {
266 m_lastModifiedTimeHasBeenSet = true;
267 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
268 }
269 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
270 GetTaskTemplateResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
271 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
272 return *this;
273 }
275
277
280 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
281 template <typename CreatedTimeT = Aws::Utils::DateTime>
282 void SetCreatedTime(CreatedTimeT&& value) {
283 m_createdTimeHasBeenSet = true;
284 m_createdTime = std::forward<CreatedTimeT>(value);
285 }
286 template <typename CreatedTimeT = Aws::Utils::DateTime>
287 GetTaskTemplateResult& WithCreatedTime(CreatedTimeT&& value) {
288 SetCreatedTime(std::forward<CreatedTimeT>(value));
289 return *this;
290 }
292
294
298 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
299 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
300 void SetTags(TagsT&& value) {
301 m_tagsHasBeenSet = true;
302 m_tags = std::forward<TagsT>(value);
303 }
304 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
306 SetTags(std::forward<TagsT>(value));
307 return *this;
308 }
309 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
310 GetTaskTemplateResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
311 m_tagsHasBeenSet = true;
312 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
313 return *this;
314 }
316
318
319 inline const Aws::String& GetRequestId() const { return m_requestId; }
320 template <typename RequestIdT = Aws::String>
321 void SetRequestId(RequestIdT&& value) {
322 m_requestIdHasBeenSet = true;
323 m_requestId = std::forward<RequestIdT>(value);
324 }
325 template <typename RequestIdT = Aws::String>
327 SetRequestId(std::forward<RequestIdT>(value));
328 return *this;
329 }
331 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
332
333 private:
334 Aws::String m_instanceId;
335
336 Aws::String m_id;
337
338 Aws::String m_arn;
339
340 Aws::String m_name;
341
342 Aws::String m_description;
343
344 Aws::String m_contactFlowId;
345
346 Aws::String m_selfAssignFlowId;
347
348 TaskTemplateContactHooks m_contactHooks;
349
350 TaskTemplateConstraints m_constraints;
351
352 TaskTemplateDefaults m_defaults;
353
355
357
358 Aws::Utils::DateTime m_lastModifiedTime{};
359
360 Aws::Utils::DateTime m_createdTime{};
361
363
364 Aws::String m_requestId;
365 Aws::Http::HttpResponseCode m_HttpResponseCode;
366 bool m_instanceIdHasBeenSet = false;
367 bool m_idHasBeenSet = false;
368 bool m_arnHasBeenSet = false;
369 bool m_nameHasBeenSet = false;
370 bool m_descriptionHasBeenSet = false;
371 bool m_contactFlowIdHasBeenSet = false;
372 bool m_selfAssignFlowIdHasBeenSet = false;
373 bool m_contactHooksHasBeenSet = false;
374 bool m_constraintsHasBeenSet = false;
375 bool m_defaultsHasBeenSet = false;
376 bool m_fieldsHasBeenSet = false;
377 bool m_statusHasBeenSet = false;
378 bool m_lastModifiedTimeHasBeenSet = false;
379 bool m_createdTimeHasBeenSet = false;
380 bool m_tagsHasBeenSet = false;
381 bool m_requestIdHasBeenSet = false;
382};
383
384} // namespace Model
385} // namespace Connect
386} // 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
const TaskTemplateContactHooks & GetContactHooks() 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
GetTaskTemplateResult & WithContactHooks(ContactHooksT &&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