AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetTaskTemplateResult.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connect/model/TaskTemplateConstraints.h>
10#include <aws/connect/model/TaskTemplateDefaults.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/connect/model/TaskTemplateStatus.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/connect/model/TaskTemplateField.h>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace Connect
31{
32namespace Model
33{
35 {
36 public:
37 AWS_CONNECT_API GetTaskTemplateResult();
40
41
43
48 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
49 inline void SetInstanceId(const Aws::String& value) { m_instanceId = value; }
50 inline void SetInstanceId(Aws::String&& value) { m_instanceId = std::move(value); }
51 inline void SetInstanceId(const char* value) { m_instanceId.assign(value); }
52 inline GetTaskTemplateResult& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
53 inline GetTaskTemplateResult& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
54 inline GetTaskTemplateResult& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
56
58
61 inline const Aws::String& GetId() const{ return m_id; }
62 inline void SetId(const Aws::String& value) { m_id = value; }
63 inline void SetId(Aws::String&& value) { m_id = std::move(value); }
64 inline void SetId(const char* value) { m_id.assign(value); }
65 inline GetTaskTemplateResult& WithId(const Aws::String& value) { SetId(value); return *this;}
66 inline GetTaskTemplateResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
67 inline GetTaskTemplateResult& WithId(const char* value) { SetId(value); return *this;}
69
71
74 inline const Aws::String& GetArn() const{ return m_arn; }
75 inline void SetArn(const Aws::String& value) { m_arn = value; }
76 inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
77 inline void SetArn(const char* value) { m_arn.assign(value); }
78 inline GetTaskTemplateResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
79 inline GetTaskTemplateResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
80 inline GetTaskTemplateResult& WithArn(const char* value) { SetArn(value); return *this;}
82
84
87 inline const Aws::String& GetName() const{ return m_name; }
88 inline void SetName(const Aws::String& value) { m_name = value; }
89 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
90 inline void SetName(const char* value) { m_name.assign(value); }
91 inline GetTaskTemplateResult& WithName(const Aws::String& value) { SetName(value); return *this;}
92 inline GetTaskTemplateResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
93 inline GetTaskTemplateResult& WithName(const char* value) { SetName(value); return *this;}
95
97
100 inline const Aws::String& GetDescription() const{ return m_description; }
101 inline void SetDescription(const Aws::String& value) { m_description = value; }
102 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
103 inline void SetDescription(const char* value) { m_description.assign(value); }
104 inline GetTaskTemplateResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
105 inline GetTaskTemplateResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
106 inline GetTaskTemplateResult& WithDescription(const char* value) { SetDescription(value); return *this;}
108
110
114 inline const Aws::String& GetContactFlowId() const{ return m_contactFlowId; }
115 inline void SetContactFlowId(const Aws::String& value) { m_contactFlowId = value; }
116 inline void SetContactFlowId(Aws::String&& value) { m_contactFlowId = std::move(value); }
117 inline void SetContactFlowId(const char* value) { m_contactFlowId.assign(value); }
118 inline GetTaskTemplateResult& WithContactFlowId(const Aws::String& value) { SetContactFlowId(value); return *this;}
119 inline GetTaskTemplateResult& WithContactFlowId(Aws::String&& value) { SetContactFlowId(std::move(value)); return *this;}
120 inline GetTaskTemplateResult& WithContactFlowId(const char* value) { SetContactFlowId(value); return *this;}
122
124
127 inline const TaskTemplateConstraints& GetConstraints() const{ return m_constraints; }
128 inline void SetConstraints(const TaskTemplateConstraints& value) { m_constraints = value; }
129 inline void SetConstraints(TaskTemplateConstraints&& value) { m_constraints = std::move(value); }
131 inline GetTaskTemplateResult& WithConstraints(TaskTemplateConstraints&& value) { SetConstraints(std::move(value)); return *this;}
133
135
139 inline const TaskTemplateDefaults& GetDefaults() const{ return m_defaults; }
140 inline void SetDefaults(const TaskTemplateDefaults& value) { m_defaults = value; }
141 inline void SetDefaults(TaskTemplateDefaults&& value) { m_defaults = std::move(value); }
142 inline GetTaskTemplateResult& WithDefaults(const TaskTemplateDefaults& value) { SetDefaults(value); return *this;}
143 inline GetTaskTemplateResult& WithDefaults(TaskTemplateDefaults&& value) { SetDefaults(std::move(value)); return *this;}
145
147
150 inline const Aws::Vector<TaskTemplateField>& GetFields() const{ return m_fields; }
151 inline void SetFields(const Aws::Vector<TaskTemplateField>& value) { m_fields = value; }
152 inline void SetFields(Aws::Vector<TaskTemplateField>&& value) { m_fields = std::move(value); }
153 inline GetTaskTemplateResult& WithFields(const Aws::Vector<TaskTemplateField>& value) { SetFields(value); return *this;}
154 inline GetTaskTemplateResult& WithFields(Aws::Vector<TaskTemplateField>&& value) { SetFields(std::move(value)); return *this;}
155 inline GetTaskTemplateResult& AddFields(const TaskTemplateField& value) { m_fields.push_back(value); return *this; }
156 inline GetTaskTemplateResult& AddFields(TaskTemplateField&& value) { m_fields.push_back(std::move(value)); return *this; }
158
160
166 inline const TaskTemplateStatus& GetStatus() const{ return m_status; }
167 inline void SetStatus(const TaskTemplateStatus& value) { m_status = value; }
168 inline void SetStatus(TaskTemplateStatus&& value) { m_status = std::move(value); }
169 inline GetTaskTemplateResult& WithStatus(const TaskTemplateStatus& value) { SetStatus(value); return *this;}
170 inline GetTaskTemplateResult& WithStatus(TaskTemplateStatus&& value) { SetStatus(std::move(value)); return *this;}
172
174
177 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
178 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTime = value; }
179 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTime = std::move(value); }
181 inline GetTaskTemplateResult& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
183
185
188 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
189 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTime = value; }
190 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTime = std::move(value); }
191 inline GetTaskTemplateResult& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
192 inline GetTaskTemplateResult& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
194
196
200 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
201 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
202 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
203 inline GetTaskTemplateResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
204 inline GetTaskTemplateResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
205 inline GetTaskTemplateResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
206 inline GetTaskTemplateResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
207 inline GetTaskTemplateResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
208 inline GetTaskTemplateResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
209 inline GetTaskTemplateResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
210 inline GetTaskTemplateResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
211 inline GetTaskTemplateResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
213
215
216 inline const Aws::String& GetRequestId() const{ return m_requestId; }
217 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
218 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
219 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
220 inline GetTaskTemplateResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
221 inline GetTaskTemplateResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
222 inline GetTaskTemplateResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
224 private:
225
226 Aws::String m_instanceId;
227
228 Aws::String m_id;
229
230 Aws::String m_arn;
231
232 Aws::String m_name;
233
234 Aws::String m_description;
235
236 Aws::String m_contactFlowId;
237
238 TaskTemplateConstraints m_constraints;
239
240 TaskTemplateDefaults m_defaults;
241
243
244 TaskTemplateStatus m_status;
245
246 Aws::Utils::DateTime m_lastModifiedTime;
247
248 Aws::Utils::DateTime m_createdTime;
249
251
252 Aws::String m_requestId;
253 };
254
255} // namespace Model
256} // namespace Connect
257} // namespace Aws
GetTaskTemplateResult & WithInstanceId(const Aws::String &value)
GetTaskTemplateResult & WithLastModifiedTime(const Aws::Utils::DateTime &value)
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
void SetContactFlowId(const Aws::String &value)
GetTaskTemplateResult & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
const TaskTemplateDefaults & GetDefaults() const
GetTaskTemplateResult & WithConstraints(TaskTemplateConstraints &&value)
GetTaskTemplateResult & WithRequestId(const char *value)
GetTaskTemplateResult & WithContactFlowId(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetStatus(const TaskTemplateStatus &value)
GetTaskTemplateResult & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
GetTaskTemplateResult & WithDefaults(TaskTemplateDefaults &&value)
GetTaskTemplateResult & AddTags(Aws::String &&key, const Aws::String &value)
GetTaskTemplateResult & WithDescription(const Aws::String &value)
const TaskTemplateConstraints & GetConstraints() const
void SetCreatedTime(const Aws::Utils::DateTime &value)
void SetFields(Aws::Vector< TaskTemplateField > &&value)
AWS_CONNECT_API GetTaskTemplateResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetTaskTemplateResult & AddFields(const TaskTemplateField &value)
void SetCreatedTime(Aws::Utils::DateTime &&value)
GetTaskTemplateResult & AddFields(TaskTemplateField &&value)
GetTaskTemplateResult & WithArn(const char *value)
GetTaskTemplateResult & WithStatus(const TaskTemplateStatus &value)
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
GetTaskTemplateResult & AddTags(const char *key, const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
GetTaskTemplateResult & WithInstanceId(Aws::String &&value)
GetTaskTemplateResult & WithName(const Aws::String &value)
GetTaskTemplateResult & WithRequestId(Aws::String &&value)
GetTaskTemplateResult & WithCreatedTime(Aws::Utils::DateTime &&value)
GetTaskTemplateResult & WithId(Aws::String &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
GetTaskTemplateResult & WithFields(const Aws::Vector< TaskTemplateField > &value)
GetTaskTemplateResult & AddTags(const char *key, Aws::String &&value)
GetTaskTemplateResult & WithArn(Aws::String &&value)
GetTaskTemplateResult & WithRequestId(const Aws::String &value)
GetTaskTemplateResult & WithCreatedTime(const Aws::Utils::DateTime &value)
GetTaskTemplateResult & WithId(const Aws::String &value)
GetTaskTemplateResult & WithDescription(const char *value)
GetTaskTemplateResult & AddTags(const Aws::String &key, Aws::String &&value)
GetTaskTemplateResult & AddTags(Aws::String &&key, const char *value)
AWS_CONNECT_API GetTaskTemplateResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetTaskTemplateResult & WithInstanceId(const char *value)
void SetFields(const Aws::Vector< TaskTemplateField > &value)
GetTaskTemplateResult & WithStatus(TaskTemplateStatus &&value)
GetTaskTemplateResult & WithDescription(Aws::String &&value)
GetTaskTemplateResult & AddTags(Aws::String &&key, Aws::String &&value)
GetTaskTemplateResult & WithContactFlowId(const Aws::String &value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
const TaskTemplateStatus & GetStatus() const
GetTaskTemplateResult & AddTags(const Aws::String &key, const Aws::String &value)
GetTaskTemplateResult & WithName(Aws::String &&value)
void SetConstraints(TaskTemplateConstraints &&value)
GetTaskTemplateResult & WithArn(const Aws::String &value)
GetTaskTemplateResult & WithLastModifiedTime(Aws::Utils::DateTime &&value)
void SetDefaults(const TaskTemplateDefaults &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Vector< TaskTemplateField > & GetFields() const
GetTaskTemplateResult & WithName(const char *value)
GetTaskTemplateResult & WithContactFlowId(Aws::String &&value)
GetTaskTemplateResult & WithFields(Aws::Vector< TaskTemplateField > &&value)
void SetConstraints(const TaskTemplateConstraints &value)
GetTaskTemplateResult & WithDefaults(const TaskTemplateDefaults &value)
GetTaskTemplateResult & WithId(const char *value)
GetTaskTemplateResult & WithConstraints(const TaskTemplateConstraints &value)
void SetDefaults(TaskTemplateDefaults &&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