AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateTaskTemplateRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/connect/model/TaskTemplateConstraints.h>
11#include <aws/connect/model/TaskTemplateDefaults.h>
12#include <aws/connect/model/TaskTemplateStatus.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/connect/model/TaskTemplateField.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace Connect
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_CONNECT_API CreateTaskTemplateRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateTaskTemplate"; }
37
38 AWS_CONNECT_API Aws::String SerializePayload() const override;
39
40
42
47 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
48 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
49 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
50 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
51 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
52 inline CreateTaskTemplateRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
53 inline CreateTaskTemplateRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
54 inline CreateTaskTemplateRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
56
58
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline CreateTaskTemplateRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline CreateTaskTemplateRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline CreateTaskTemplateRequest& WithName(const char* value) { SetName(value); return *this;}
70
72
75 inline const Aws::String& GetDescription() const{ return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
78 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
79 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
80 inline CreateTaskTemplateRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
81 inline CreateTaskTemplateRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
82 inline CreateTaskTemplateRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
84
86
90 inline const Aws::String& GetContactFlowId() const{ return m_contactFlowId; }
91 inline bool ContactFlowIdHasBeenSet() const { return m_contactFlowIdHasBeenSet; }
92 inline void SetContactFlowId(const Aws::String& value) { m_contactFlowIdHasBeenSet = true; m_contactFlowId = value; }
93 inline void SetContactFlowId(Aws::String&& value) { m_contactFlowIdHasBeenSet = true; m_contactFlowId = std::move(value); }
94 inline void SetContactFlowId(const char* value) { m_contactFlowIdHasBeenSet = true; m_contactFlowId.assign(value); }
95 inline CreateTaskTemplateRequest& WithContactFlowId(const Aws::String& value) { SetContactFlowId(value); return *this;}
96 inline CreateTaskTemplateRequest& WithContactFlowId(Aws::String&& value) { SetContactFlowId(std::move(value)); return *this;}
97 inline CreateTaskTemplateRequest& WithContactFlowId(const char* value) { SetContactFlowId(value); return *this;}
99
101
104 inline const TaskTemplateConstraints& GetConstraints() const{ return m_constraints; }
105 inline bool ConstraintsHasBeenSet() const { return m_constraintsHasBeenSet; }
106 inline void SetConstraints(const TaskTemplateConstraints& value) { m_constraintsHasBeenSet = true; m_constraints = value; }
107 inline void SetConstraints(TaskTemplateConstraints&& value) { m_constraintsHasBeenSet = true; m_constraints = std::move(value); }
109 inline CreateTaskTemplateRequest& WithConstraints(TaskTemplateConstraints&& value) { SetConstraints(std::move(value)); return *this;}
111
113
117 inline const TaskTemplateDefaults& GetDefaults() const{ return m_defaults; }
118 inline bool DefaultsHasBeenSet() const { return m_defaultsHasBeenSet; }
119 inline void SetDefaults(const TaskTemplateDefaults& value) { m_defaultsHasBeenSet = true; m_defaults = value; }
120 inline void SetDefaults(TaskTemplateDefaults&& value) { m_defaultsHasBeenSet = true; m_defaults = std::move(value); }
121 inline CreateTaskTemplateRequest& WithDefaults(const TaskTemplateDefaults& value) { SetDefaults(value); return *this;}
122 inline CreateTaskTemplateRequest& WithDefaults(TaskTemplateDefaults&& value) { SetDefaults(std::move(value)); return *this;}
124
126
132 inline const TaskTemplateStatus& GetStatus() const{ return m_status; }
133 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
134 inline void SetStatus(const TaskTemplateStatus& value) { m_statusHasBeenSet = true; m_status = value; }
135 inline void SetStatus(TaskTemplateStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
136 inline CreateTaskTemplateRequest& WithStatus(const TaskTemplateStatus& value) { SetStatus(value); return *this;}
137 inline CreateTaskTemplateRequest& WithStatus(TaskTemplateStatus&& value) { SetStatus(std::move(value)); return *this;}
139
141
144 inline const Aws::Vector<TaskTemplateField>& GetFields() const{ return m_fields; }
145 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
146 inline void SetFields(const Aws::Vector<TaskTemplateField>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
147 inline void SetFields(Aws::Vector<TaskTemplateField>&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
149 inline CreateTaskTemplateRequest& WithFields(Aws::Vector<TaskTemplateField>&& value) { SetFields(std::move(value)); return *this;}
150 inline CreateTaskTemplateRequest& AddFields(const TaskTemplateField& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
151 inline CreateTaskTemplateRequest& AddFields(TaskTemplateField&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; }
153
155
162 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
163 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
164 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
165 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
166 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
167 inline CreateTaskTemplateRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
168 inline CreateTaskTemplateRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
169 inline CreateTaskTemplateRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
171 private:
172
173 Aws::String m_instanceId;
174 bool m_instanceIdHasBeenSet = false;
175
176 Aws::String m_name;
177 bool m_nameHasBeenSet = false;
178
179 Aws::String m_description;
180 bool m_descriptionHasBeenSet = false;
181
182 Aws::String m_contactFlowId;
183 bool m_contactFlowIdHasBeenSet = false;
184
185 TaskTemplateConstraints m_constraints;
186 bool m_constraintsHasBeenSet = false;
187
188 TaskTemplateDefaults m_defaults;
189 bool m_defaultsHasBeenSet = false;
190
191 TaskTemplateStatus m_status;
192 bool m_statusHasBeenSet = false;
193
195 bool m_fieldsHasBeenSet = false;
196
197 Aws::String m_clientToken;
198 bool m_clientTokenHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace Connect
203} // namespace Aws
void SetFields(Aws::Vector< TaskTemplateField > &&value)
CreateTaskTemplateRequest & WithContactFlowId(const Aws::String &value)
CreateTaskTemplateRequest & AddFields(const TaskTemplateField &value)
void SetDefaults(const TaskTemplateDefaults &value)
CreateTaskTemplateRequest & WithInstanceId(const char *value)
CreateTaskTemplateRequest & WithDefaults(TaskTemplateDefaults &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
CreateTaskTemplateRequest & WithClientToken(const char *value)
CreateTaskTemplateRequest & AddFields(TaskTemplateField &&value)
CreateTaskTemplateRequest & WithConstraints(TaskTemplateConstraints &&value)
CreateTaskTemplateRequest & WithInstanceId(const Aws::String &value)
CreateTaskTemplateRequest & WithName(Aws::String &&value)
CreateTaskTemplateRequest & WithName(const Aws::String &value)
CreateTaskTemplateRequest & WithName(const char *value)
CreateTaskTemplateRequest & WithInstanceId(Aws::String &&value)
CreateTaskTemplateRequest & WithDescription(Aws::String &&value)
const TaskTemplateConstraints & GetConstraints() const
CreateTaskTemplateRequest & WithStatus(const TaskTemplateStatus &value)
CreateTaskTemplateRequest & WithClientToken(Aws::String &&value)
CreateTaskTemplateRequest & WithContactFlowId(const char *value)
CreateTaskTemplateRequest & WithFields(Aws::Vector< TaskTemplateField > &&value)
CreateTaskTemplateRequest & WithDescription(const Aws::String &value)
CreateTaskTemplateRequest & WithFields(const Aws::Vector< TaskTemplateField > &value)
const Aws::Vector< TaskTemplateField > & GetFields() const
virtual const char * GetServiceRequestName() const override
CreateTaskTemplateRequest & WithDefaults(const TaskTemplateDefaults &value)
void SetConstraints(const TaskTemplateConstraints &value)
void SetFields(const Aws::Vector< TaskTemplateField > &value)
CreateTaskTemplateRequest & WithClientToken(const Aws::String &value)
CreateTaskTemplateRequest & WithStatus(TaskTemplateStatus &&value)
CreateTaskTemplateRequest & WithDescription(const char *value)
CreateTaskTemplateRequest & WithConstraints(const TaskTemplateConstraints &value)
void SetConstraints(TaskTemplateConstraints &&value)
CreateTaskTemplateRequest & WithContactFlowId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector