AWS SDK for C++

AWS SDK for C++ Version 1.11.869

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/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/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace Connect {
29namespace Model {
31 public:
32 AWS_CONNECT_API UpdateTaskTemplateResult() = default;
35
37
42 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
43 template <typename InstanceIdT = Aws::String>
44 void SetInstanceId(InstanceIdT&& value) {
45 m_instanceIdHasBeenSet = true;
46 m_instanceId = std::forward<InstanceIdT>(value);
47 }
48 template <typename InstanceIdT = Aws::String>
50 SetInstanceId(std::forward<InstanceIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetId() const { return m_id; }
60 template <typename IdT = Aws::String>
61 void SetId(IdT&& value) {
62 m_idHasBeenSet = true;
63 m_id = std::forward<IdT>(value);
64 }
65 template <typename IdT = Aws::String>
67 SetId(std::forward<IdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetArn() const { return m_arn; }
77 template <typename ArnT = Aws::String>
78 void SetArn(ArnT&& value) {
79 m_arnHasBeenSet = true;
80 m_arn = std::forward<ArnT>(value);
81 }
82 template <typename ArnT = Aws::String>
84 SetArn(std::forward<ArnT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetName() const { return m_name; }
94 template <typename NameT = Aws::String>
95 void SetName(NameT&& value) {
96 m_nameHasBeenSet = true;
97 m_name = std::forward<NameT>(value);
98 }
99 template <typename NameT = Aws::String>
101 SetName(std::forward<NameT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetDescription() const { return m_description; }
111 template <typename DescriptionT = Aws::String>
112 void SetDescription(DescriptionT&& value) {
113 m_descriptionHasBeenSet = true;
114 m_description = std::forward<DescriptionT>(value);
115 }
116 template <typename DescriptionT = Aws::String>
118 SetDescription(std::forward<DescriptionT>(value));
119 return *this;
120 }
122
124
128 inline const Aws::String& GetContactFlowId() const { return m_contactFlowId; }
129 template <typename ContactFlowIdT = Aws::String>
130 void SetContactFlowId(ContactFlowIdT&& value) {
131 m_contactFlowIdHasBeenSet = true;
132 m_contactFlowId = std::forward<ContactFlowIdT>(value);
133 }
134 template <typename ContactFlowIdT = Aws::String>
136 SetContactFlowId(std::forward<ContactFlowIdT>(value));
137 return *this;
138 }
140
142
146 inline const Aws::String& GetSelfAssignFlowId() const { return m_selfAssignFlowId; }
147 template <typename SelfAssignFlowIdT = Aws::String>
148 void SetSelfAssignFlowId(SelfAssignFlowIdT&& value) {
149 m_selfAssignFlowIdHasBeenSet = true;
150 m_selfAssignFlowId = std::forward<SelfAssignFlowIdT>(value);
151 }
152 template <typename SelfAssignFlowIdT = Aws::String>
153 UpdateTaskTemplateResult& WithSelfAssignFlowId(SelfAssignFlowIdT&& value) {
154 SetSelfAssignFlowId(std::forward<SelfAssignFlowIdT>(value));
155 return *this;
156 }
158
160
168 inline const TaskTemplateConstraints& GetConstraints() const { return m_constraints; }
169 template <typename ConstraintsT = TaskTemplateConstraints>
170 void SetConstraints(ConstraintsT&& value) {
171 m_constraintsHasBeenSet = true;
172 m_constraints = std::forward<ConstraintsT>(value);
173 }
174 template <typename ConstraintsT = TaskTemplateConstraints>
176 SetConstraints(std::forward<ConstraintsT>(value));
177 return *this;
178 }
180
182
186 inline const TaskTemplateDefaults& GetDefaults() const { return m_defaults; }
187 template <typename DefaultsT = TaskTemplateDefaults>
188 void SetDefaults(DefaultsT&& value) {
189 m_defaultsHasBeenSet = true;
190 m_defaults = std::forward<DefaultsT>(value);
191 }
192 template <typename DefaultsT = TaskTemplateDefaults>
194 SetDefaults(std::forward<DefaultsT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::Vector<TaskTemplateField>& GetFields() const { return m_fields; }
204 template <typename FieldsT = Aws::Vector<TaskTemplateField>>
205 void SetFields(FieldsT&& value) {
206 m_fieldsHasBeenSet = true;
207 m_fields = std::forward<FieldsT>(value);
208 }
209 template <typename FieldsT = Aws::Vector<TaskTemplateField>>
211 SetFields(std::forward<FieldsT>(value));
212 return *this;
213 }
214 template <typename FieldsT = TaskTemplateField>
216 m_fieldsHasBeenSet = true;
217 m_fields.emplace_back(std::forward<FieldsT>(value));
218 return *this;
219 }
221
223
229 inline TaskTemplateStatus GetStatus() const { return m_status; }
230 inline void SetStatus(TaskTemplateStatus value) {
231 m_statusHasBeenSet = true;
232 m_status = value;
233 }
235 SetStatus(value);
236 return *this;
237 }
239
241
244 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
245 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
246 void SetLastModifiedTime(LastModifiedTimeT&& value) {
247 m_lastModifiedTimeHasBeenSet = true;
248 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
249 }
250 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
251 UpdateTaskTemplateResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
252 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
253 return *this;
254 }
256
258
261 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
262 template <typename CreatedTimeT = Aws::Utils::DateTime>
263 void SetCreatedTime(CreatedTimeT&& value) {
264 m_createdTimeHasBeenSet = true;
265 m_createdTime = std::forward<CreatedTimeT>(value);
266 }
267 template <typename CreatedTimeT = Aws::Utils::DateTime>
269 SetCreatedTime(std::forward<CreatedTimeT>(value));
270 return *this;
271 }
273
275
276 inline const Aws::String& GetRequestId() const { return m_requestId; }
277 template <typename RequestIdT = Aws::String>
278 void SetRequestId(RequestIdT&& value) {
279 m_requestIdHasBeenSet = true;
280 m_requestId = std::forward<RequestIdT>(value);
281 }
282 template <typename RequestIdT = Aws::String>
284 SetRequestId(std::forward<RequestIdT>(value));
285 return *this;
286 }
288 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
289
290 private:
291 Aws::String m_instanceId;
292
293 Aws::String m_id;
294
295 Aws::String m_arn;
296
297 Aws::String m_name;
298
299 Aws::String m_description;
300
301 Aws::String m_contactFlowId;
302
303 Aws::String m_selfAssignFlowId;
304
305 TaskTemplateConstraints m_constraints;
306
307 TaskTemplateDefaults m_defaults;
308
310
312
313 Aws::Utils::DateTime m_lastModifiedTime{};
314
315 Aws::Utils::DateTime m_createdTime{};
316
317 Aws::String m_requestId;
318 Aws::Http::HttpResponseCode m_HttpResponseCode;
319 bool m_instanceIdHasBeenSet = false;
320 bool m_idHasBeenSet = false;
321 bool m_arnHasBeenSet = false;
322 bool m_nameHasBeenSet = false;
323 bool m_descriptionHasBeenSet = false;
324 bool m_contactFlowIdHasBeenSet = false;
325 bool m_selfAssignFlowIdHasBeenSet = false;
326 bool m_constraintsHasBeenSet = false;
327 bool m_defaultsHasBeenSet = false;
328 bool m_fieldsHasBeenSet = false;
329 bool m_statusHasBeenSet = false;
330 bool m_lastModifiedTimeHasBeenSet = false;
331 bool m_createdTimeHasBeenSet = false;
332 bool m_requestIdHasBeenSet = false;
333};
334
335} // namespace Model
336} // namespace Connect
337} // namespace Aws
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 & 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