AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
UpdateTaskTemplateResult.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/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 UpdateTaskTemplateResult() = 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>
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>
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>
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 UpdateTaskTemplateResult& WithSelfAssignFlowId(SelfAssignFlowIdT&& value) {
155 SetSelfAssignFlowId(std::forward<SelfAssignFlowIdT>(value));
156 return *this;
157 }
159
161
164 inline const TaskTemplateContactHooks& GetContactHooks() const { return m_contactHooks; }
165 template <typename ContactHooksT = TaskTemplateContactHooks>
166 void SetContactHooks(ContactHooksT&& value) {
167 m_contactHooksHasBeenSet = true;
168 m_contactHooks = std::forward<ContactHooksT>(value);
169 }
170 template <typename ContactHooksT = TaskTemplateContactHooks>
172 SetContactHooks(std::forward<ContactHooksT>(value));
173 return *this;
174 }
176
178
186 inline const TaskTemplateConstraints& GetConstraints() const { return m_constraints; }
187 template <typename ConstraintsT = TaskTemplateConstraints>
188 void SetConstraints(ConstraintsT&& value) {
189 m_constraintsHasBeenSet = true;
190 m_constraints = std::forward<ConstraintsT>(value);
191 }
192 template <typename ConstraintsT = TaskTemplateConstraints>
194 SetConstraints(std::forward<ConstraintsT>(value));
195 return *this;
196 }
198
200
204 inline const TaskTemplateDefaults& GetDefaults() const { return m_defaults; }
205 template <typename DefaultsT = TaskTemplateDefaults>
206 void SetDefaults(DefaultsT&& value) {
207 m_defaultsHasBeenSet = true;
208 m_defaults = std::forward<DefaultsT>(value);
209 }
210 template <typename DefaultsT = TaskTemplateDefaults>
212 SetDefaults(std::forward<DefaultsT>(value));
213 return *this;
214 }
216
218
221 inline const Aws::Vector<TaskTemplateField>& GetFields() const { return m_fields; }
222 template <typename FieldsT = Aws::Vector<TaskTemplateField>>
223 void SetFields(FieldsT&& value) {
224 m_fieldsHasBeenSet = true;
225 m_fields = std::forward<FieldsT>(value);
226 }
227 template <typename FieldsT = Aws::Vector<TaskTemplateField>>
229 SetFields(std::forward<FieldsT>(value));
230 return *this;
231 }
232 template <typename FieldsT = TaskTemplateField>
234 m_fieldsHasBeenSet = true;
235 m_fields.emplace_back(std::forward<FieldsT>(value));
236 return *this;
237 }
239
241
247 inline TaskTemplateStatus GetStatus() const { return m_status; }
248 inline void SetStatus(TaskTemplateStatus value) {
249 m_statusHasBeenSet = true;
250 m_status = value;
251 }
253 SetStatus(value);
254 return *this;
255 }
257
259
262 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
263 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
264 void SetLastModifiedTime(LastModifiedTimeT&& value) {
265 m_lastModifiedTimeHasBeenSet = true;
266 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
267 }
268 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
269 UpdateTaskTemplateResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
270 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
271 return *this;
272 }
274
276
279 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
280 template <typename CreatedTimeT = Aws::Utils::DateTime>
281 void SetCreatedTime(CreatedTimeT&& value) {
282 m_createdTimeHasBeenSet = true;
283 m_createdTime = std::forward<CreatedTimeT>(value);
284 }
285 template <typename CreatedTimeT = Aws::Utils::DateTime>
287 SetCreatedTime(std::forward<CreatedTimeT>(value));
288 return *this;
289 }
291
293
294 inline const Aws::String& GetRequestId() const { return m_requestId; }
295 template <typename RequestIdT = Aws::String>
296 void SetRequestId(RequestIdT&& value) {
297 m_requestIdHasBeenSet = true;
298 m_requestId = std::forward<RequestIdT>(value);
299 }
300 template <typename RequestIdT = Aws::String>
302 SetRequestId(std::forward<RequestIdT>(value));
303 return *this;
304 }
306 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
307
308 private:
309 Aws::String m_instanceId;
310
311 Aws::String m_id;
312
313 Aws::String m_arn;
314
315 Aws::String m_name;
316
317 Aws::String m_description;
318
319 Aws::String m_contactFlowId;
320
321 Aws::String m_selfAssignFlowId;
322
323 TaskTemplateContactHooks m_contactHooks;
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
337 Aws::String m_requestId;
338 Aws::Http::HttpResponseCode m_HttpResponseCode;
339 bool m_instanceIdHasBeenSet = false;
340 bool m_idHasBeenSet = false;
341 bool m_arnHasBeenSet = false;
342 bool m_nameHasBeenSet = false;
343 bool m_descriptionHasBeenSet = false;
344 bool m_contactFlowIdHasBeenSet = false;
345 bool m_selfAssignFlowIdHasBeenSet = false;
346 bool m_contactHooksHasBeenSet = false;
347 bool m_constraintsHasBeenSet = false;
348 bool m_defaultsHasBeenSet = false;
349 bool m_fieldsHasBeenSet = false;
350 bool m_statusHasBeenSet = false;
351 bool m_lastModifiedTimeHasBeenSet = false;
352 bool m_createdTimeHasBeenSet = false;
353 bool m_requestIdHasBeenSet = false;
354};
355
356} // namespace Model
357} // namespace Connect
358} // namespace Aws
const TaskTemplateContactHooks & GetContactHooks() const
UpdateTaskTemplateResult & WithLastModifiedTime(LastModifiedTimeT &&value)
UpdateTaskTemplateResult & WithDefaults(DefaultsT &&value)
const Aws::Vector< TaskTemplateField > & GetFields() const
UpdateTaskTemplateResult & WithRequestId(RequestIdT &&value)
AWS_CONNECT_API UpdateTaskTemplateResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateTaskTemplateResult & WithCreatedTime(CreatedTimeT &&value)
UpdateTaskTemplateResult & WithName(NameT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UpdateTaskTemplateResult & WithConstraints(ConstraintsT &&value)
const TaskTemplateDefaults & GetDefaults() const
UpdateTaskTemplateResult & WithArn(ArnT &&value)
AWS_CONNECT_API UpdateTaskTemplateResult()=default
UpdateTaskTemplateResult & AddFields(FieldsT &&value)
UpdateTaskTemplateResult & WithInstanceId(InstanceIdT &&value)
UpdateTaskTemplateResult & WithContactHooks(ContactHooksT &&value)
UpdateTaskTemplateResult & WithStatus(TaskTemplateStatus value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
UpdateTaskTemplateResult & WithContactFlowId(ContactFlowIdT &&value)
UpdateTaskTemplateResult & WithSelfAssignFlowId(SelfAssignFlowIdT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
UpdateTaskTemplateResult & WithFields(FieldsT &&value)
const TaskTemplateConstraints & GetConstraints() const
UpdateTaskTemplateResult & WithDescription(DescriptionT &&value)
AWS_CONNECT_API UpdateTaskTemplateResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateTaskTemplateResult & WithId(IdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue