AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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
164 inline const TaskTemplateConstraints& GetConstraints() const { return m_constraints; }
165 template <typename ConstraintsT = TaskTemplateConstraints>
166 void SetConstraints(ConstraintsT&& value) {
167 m_constraintsHasBeenSet = true;
168 m_constraints = std::forward<ConstraintsT>(value);
169 }
170 template <typename ConstraintsT = TaskTemplateConstraints>
171 GetTaskTemplateResult& WithConstraints(ConstraintsT&& value) {
172 SetConstraints(std::forward<ConstraintsT>(value));
173 return *this;
174 }
176
178
182 inline const TaskTemplateDefaults& GetDefaults() const { return m_defaults; }
183 template <typename DefaultsT = TaskTemplateDefaults>
184 void SetDefaults(DefaultsT&& value) {
185 m_defaultsHasBeenSet = true;
186 m_defaults = std::forward<DefaultsT>(value);
187 }
188 template <typename DefaultsT = TaskTemplateDefaults>
190 SetDefaults(std::forward<DefaultsT>(value));
191 return *this;
192 }
194
196
199 inline const Aws::Vector<TaskTemplateField>& GetFields() const { return m_fields; }
200 template <typename FieldsT = Aws::Vector<TaskTemplateField>>
201 void SetFields(FieldsT&& value) {
202 m_fieldsHasBeenSet = true;
203 m_fields = std::forward<FieldsT>(value);
204 }
205 template <typename FieldsT = Aws::Vector<TaskTemplateField>>
207 SetFields(std::forward<FieldsT>(value));
208 return *this;
209 }
210 template <typename FieldsT = TaskTemplateField>
212 m_fieldsHasBeenSet = true;
213 m_fields.emplace_back(std::forward<FieldsT>(value));
214 return *this;
215 }
217
219
225 inline TaskTemplateStatus GetStatus() const { return m_status; }
226 inline void SetStatus(TaskTemplateStatus value) {
227 m_statusHasBeenSet = true;
228 m_status = value;
229 }
231 SetStatus(value);
232 return *this;
233 }
235
237
240 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
241 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
242 void SetLastModifiedTime(LastModifiedTimeT&& value) {
243 m_lastModifiedTimeHasBeenSet = true;
244 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
245 }
246 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
247 GetTaskTemplateResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
248 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
249 return *this;
250 }
252
254
257 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
258 template <typename CreatedTimeT = Aws::Utils::DateTime>
259 void SetCreatedTime(CreatedTimeT&& value) {
260 m_createdTimeHasBeenSet = true;
261 m_createdTime = std::forward<CreatedTimeT>(value);
262 }
263 template <typename CreatedTimeT = Aws::Utils::DateTime>
264 GetTaskTemplateResult& WithCreatedTime(CreatedTimeT&& value) {
265 SetCreatedTime(std::forward<CreatedTimeT>(value));
266 return *this;
267 }
269
271
275 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
276 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
277 void SetTags(TagsT&& value) {
278 m_tagsHasBeenSet = true;
279 m_tags = std::forward<TagsT>(value);
280 }
281 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
283 SetTags(std::forward<TagsT>(value));
284 return *this;
285 }
286 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
287 GetTaskTemplateResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
288 m_tagsHasBeenSet = true;
289 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
290 return *this;
291 }
293
295
296 inline const Aws::String& GetRequestId() const { return m_requestId; }
297 template <typename RequestIdT = Aws::String>
298 void SetRequestId(RequestIdT&& value) {
299 m_requestIdHasBeenSet = true;
300 m_requestId = std::forward<RequestIdT>(value);
301 }
302 template <typename RequestIdT = Aws::String>
304 SetRequestId(std::forward<RequestIdT>(value));
305 return *this;
306 }
308 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
309
310 private:
311 Aws::String m_instanceId;
312
313 Aws::String m_id;
314
315 Aws::String m_arn;
316
317 Aws::String m_name;
318
319 Aws::String m_description;
320
321 Aws::String m_contactFlowId;
322
323 Aws::String m_selfAssignFlowId;
324
325 TaskTemplateConstraints m_constraints;
326
327 TaskTemplateDefaults m_defaults;
328
330
332
333 Aws::Utils::DateTime m_lastModifiedTime{};
334
335 Aws::Utils::DateTime m_createdTime{};
336
338
339 Aws::String m_requestId;
340 Aws::Http::HttpResponseCode m_HttpResponseCode;
341 bool m_instanceIdHasBeenSet = false;
342 bool m_idHasBeenSet = false;
343 bool m_arnHasBeenSet = false;
344 bool m_nameHasBeenSet = false;
345 bool m_descriptionHasBeenSet = false;
346 bool m_contactFlowIdHasBeenSet = false;
347 bool m_selfAssignFlowIdHasBeenSet = false;
348 bool m_constraintsHasBeenSet = false;
349 bool m_defaultsHasBeenSet = false;
350 bool m_fieldsHasBeenSet = false;
351 bool m_statusHasBeenSet = false;
352 bool m_lastModifiedTimeHasBeenSet = false;
353 bool m_createdTimeHasBeenSet = false;
354 bool m_tagsHasBeenSet = false;
355 bool m_requestIdHasBeenSet = false;
356};
357
358} // namespace Model
359} // namespace Connect
360} // 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