AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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
163 inline const TaskTemplateConstraints& GetConstraints() const { return m_constraints; }
164 template <typename ConstraintsT = TaskTemplateConstraints>
165 void SetConstraints(ConstraintsT&& value) {
166 m_constraintsHasBeenSet = true;
167 m_constraints = std::forward<ConstraintsT>(value);
168 }
169 template <typename ConstraintsT = TaskTemplateConstraints>
171 SetConstraints(std::forward<ConstraintsT>(value));
172 return *this;
173 }
175
177
181 inline const TaskTemplateDefaults& GetDefaults() const { return m_defaults; }
182 template <typename DefaultsT = TaskTemplateDefaults>
183 void SetDefaults(DefaultsT&& value) {
184 m_defaultsHasBeenSet = true;
185 m_defaults = std::forward<DefaultsT>(value);
186 }
187 template <typename DefaultsT = TaskTemplateDefaults>
189 SetDefaults(std::forward<DefaultsT>(value));
190 return *this;
191 }
193
195
198 inline const Aws::Vector<TaskTemplateField>& GetFields() const { return m_fields; }
199 template <typename FieldsT = Aws::Vector<TaskTemplateField>>
200 void SetFields(FieldsT&& value) {
201 m_fieldsHasBeenSet = true;
202 m_fields = std::forward<FieldsT>(value);
203 }
204 template <typename FieldsT = Aws::Vector<TaskTemplateField>>
206 SetFields(std::forward<FieldsT>(value));
207 return *this;
208 }
209 template <typename FieldsT = TaskTemplateField>
211 m_fieldsHasBeenSet = true;
212 m_fields.emplace_back(std::forward<FieldsT>(value));
213 return *this;
214 }
216
218
224 inline TaskTemplateStatus GetStatus() const { return m_status; }
225 inline void SetStatus(TaskTemplateStatus value) {
226 m_statusHasBeenSet = true;
227 m_status = value;
228 }
230 SetStatus(value);
231 return *this;
232 }
234
236
239 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
240 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
241 void SetLastModifiedTime(LastModifiedTimeT&& value) {
242 m_lastModifiedTimeHasBeenSet = true;
243 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
244 }
245 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
246 UpdateTaskTemplateResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
247 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
248 return *this;
249 }
251
253
256 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
257 template <typename CreatedTimeT = Aws::Utils::DateTime>
258 void SetCreatedTime(CreatedTimeT&& value) {
259 m_createdTimeHasBeenSet = true;
260 m_createdTime = std::forward<CreatedTimeT>(value);
261 }
262 template <typename CreatedTimeT = Aws::Utils::DateTime>
264 SetCreatedTime(std::forward<CreatedTimeT>(value));
265 return *this;
266 }
268
270
271 inline const Aws::String& GetRequestId() const { return m_requestId; }
272 template <typename RequestIdT = Aws::String>
273 void SetRequestId(RequestIdT&& value) {
274 m_requestIdHasBeenSet = true;
275 m_requestId = std::forward<RequestIdT>(value);
276 }
277 template <typename RequestIdT = Aws::String>
279 SetRequestId(std::forward<RequestIdT>(value));
280 return *this;
281 }
283 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
284
285 private:
286 Aws::String m_instanceId;
287
288 Aws::String m_id;
289
290 Aws::String m_arn;
291
292 Aws::String m_name;
293
294 Aws::String m_description;
295
296 Aws::String m_contactFlowId;
297
298 Aws::String m_selfAssignFlowId;
299
300 TaskTemplateConstraints m_constraints;
301
302 TaskTemplateDefaults m_defaults;
303
305
307
308 Aws::Utils::DateTime m_lastModifiedTime{};
309
310 Aws::Utils::DateTime m_createdTime{};
311
312 Aws::String m_requestId;
313 Aws::Http::HttpResponseCode m_HttpResponseCode;
314 bool m_instanceIdHasBeenSet = false;
315 bool m_idHasBeenSet = false;
316 bool m_arnHasBeenSet = false;
317 bool m_nameHasBeenSet = false;
318 bool m_descriptionHasBeenSet = false;
319 bool m_contactFlowIdHasBeenSet = false;
320 bool m_selfAssignFlowIdHasBeenSet = false;
321 bool m_constraintsHasBeenSet = false;
322 bool m_defaultsHasBeenSet = false;
323 bool m_fieldsHasBeenSet = false;
324 bool m_statusHasBeenSet = false;
325 bool m_lastModifiedTimeHasBeenSet = false;
326 bool m_createdTimeHasBeenSet = false;
327 bool m_requestIdHasBeenSet = false;
328};
329
330} // namespace Model
331} // namespace Connect
332} // 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