AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateTaskTemplateRequest.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
17namespace Aws
18{
19namespace Connect
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_CONNECT_API UpdateTaskTemplateRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateTaskTemplate"; }
36
37 AWS_CONNECT_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetTaskTemplateId() const{ return m_taskTemplateId; }
45 inline bool TaskTemplateIdHasBeenSet() const { return m_taskTemplateIdHasBeenSet; }
46 inline void SetTaskTemplateId(const Aws::String& value) { m_taskTemplateIdHasBeenSet = true; m_taskTemplateId = value; }
47 inline void SetTaskTemplateId(Aws::String&& value) { m_taskTemplateIdHasBeenSet = true; m_taskTemplateId = std::move(value); }
48 inline void SetTaskTemplateId(const char* value) { m_taskTemplateIdHasBeenSet = true; m_taskTemplateId.assign(value); }
49 inline UpdateTaskTemplateRequest& WithTaskTemplateId(const Aws::String& value) { SetTaskTemplateId(value); return *this;}
50 inline UpdateTaskTemplateRequest& WithTaskTemplateId(Aws::String&& value) { SetTaskTemplateId(std::move(value)); return *this;}
51 inline UpdateTaskTemplateRequest& WithTaskTemplateId(const char* value) { SetTaskTemplateId(value); return *this;}
53
55
60 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
61 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
62 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
63 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
64 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
65 inline UpdateTaskTemplateRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
66 inline UpdateTaskTemplateRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
67 inline UpdateTaskTemplateRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
69
71
74 inline const Aws::String& GetName() const{ return m_name; }
75 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
76 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
77 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
78 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
79 inline UpdateTaskTemplateRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
80 inline UpdateTaskTemplateRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
81 inline UpdateTaskTemplateRequest& WithName(const char* value) { SetName(value); return *this;}
83
85
88 inline const Aws::String& GetDescription() const{ return m_description; }
89 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
90 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
91 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
92 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
93 inline UpdateTaskTemplateRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
94 inline UpdateTaskTemplateRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
95 inline UpdateTaskTemplateRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
97
99
103 inline const Aws::String& GetContactFlowId() const{ return m_contactFlowId; }
104 inline bool ContactFlowIdHasBeenSet() const { return m_contactFlowIdHasBeenSet; }
105 inline void SetContactFlowId(const Aws::String& value) { m_contactFlowIdHasBeenSet = true; m_contactFlowId = value; }
106 inline void SetContactFlowId(Aws::String&& value) { m_contactFlowIdHasBeenSet = true; m_contactFlowId = std::move(value); }
107 inline void SetContactFlowId(const char* value) { m_contactFlowIdHasBeenSet = true; m_contactFlowId.assign(value); }
108 inline UpdateTaskTemplateRequest& WithContactFlowId(const Aws::String& value) { SetContactFlowId(value); return *this;}
109 inline UpdateTaskTemplateRequest& WithContactFlowId(Aws::String&& value) { SetContactFlowId(std::move(value)); return *this;}
110 inline UpdateTaskTemplateRequest& WithContactFlowId(const char* value) { SetContactFlowId(value); return *this;}
112
114
117 inline const TaskTemplateConstraints& GetConstraints() const{ return m_constraints; }
118 inline bool ConstraintsHasBeenSet() const { return m_constraintsHasBeenSet; }
119 inline void SetConstraints(const TaskTemplateConstraints& value) { m_constraintsHasBeenSet = true; m_constraints = value; }
120 inline void SetConstraints(TaskTemplateConstraints&& value) { m_constraintsHasBeenSet = true; m_constraints = std::move(value); }
122 inline UpdateTaskTemplateRequest& WithConstraints(TaskTemplateConstraints&& value) { SetConstraints(std::move(value)); return *this;}
124
126
130 inline const TaskTemplateDefaults& GetDefaults() const{ return m_defaults; }
131 inline bool DefaultsHasBeenSet() const { return m_defaultsHasBeenSet; }
132 inline void SetDefaults(const TaskTemplateDefaults& value) { m_defaultsHasBeenSet = true; m_defaults = value; }
133 inline void SetDefaults(TaskTemplateDefaults&& value) { m_defaultsHasBeenSet = true; m_defaults = std::move(value); }
134 inline UpdateTaskTemplateRequest& WithDefaults(const TaskTemplateDefaults& value) { SetDefaults(value); return *this;}
135 inline UpdateTaskTemplateRequest& WithDefaults(TaskTemplateDefaults&& value) { SetDefaults(std::move(value)); return *this;}
137
139
145 inline const TaskTemplateStatus& GetStatus() const{ return m_status; }
146 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
147 inline void SetStatus(const TaskTemplateStatus& value) { m_statusHasBeenSet = true; m_status = value; }
148 inline void SetStatus(TaskTemplateStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
149 inline UpdateTaskTemplateRequest& WithStatus(const TaskTemplateStatus& value) { SetStatus(value); return *this;}
150 inline UpdateTaskTemplateRequest& WithStatus(TaskTemplateStatus&& value) { SetStatus(std::move(value)); return *this;}
152
154
157 inline const Aws::Vector<TaskTemplateField>& GetFields() const{ return m_fields; }
158 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
159 inline void SetFields(const Aws::Vector<TaskTemplateField>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
160 inline void SetFields(Aws::Vector<TaskTemplateField>&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
162 inline UpdateTaskTemplateRequest& WithFields(Aws::Vector<TaskTemplateField>&& value) { SetFields(std::move(value)); return *this;}
163 inline UpdateTaskTemplateRequest& AddFields(const TaskTemplateField& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
164 inline UpdateTaskTemplateRequest& AddFields(TaskTemplateField&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; }
166 private:
167
168 Aws::String m_taskTemplateId;
169 bool m_taskTemplateIdHasBeenSet = false;
170
171 Aws::String m_instanceId;
172 bool m_instanceIdHasBeenSet = false;
173
174 Aws::String m_name;
175 bool m_nameHasBeenSet = false;
176
177 Aws::String m_description;
178 bool m_descriptionHasBeenSet = false;
179
180 Aws::String m_contactFlowId;
181 bool m_contactFlowIdHasBeenSet = false;
182
183 TaskTemplateConstraints m_constraints;
184 bool m_constraintsHasBeenSet = false;
185
186 TaskTemplateDefaults m_defaults;
187 bool m_defaultsHasBeenSet = false;
188
189 TaskTemplateStatus m_status;
190 bool m_statusHasBeenSet = false;
191
193 bool m_fieldsHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace Connect
198} // namespace Aws
UpdateTaskTemplateRequest & AddFields(TaskTemplateField &&value)
UpdateTaskTemplateRequest & WithContactFlowId(Aws::String &&value)
UpdateTaskTemplateRequest & WithTaskTemplateId(const Aws::String &value)
UpdateTaskTemplateRequest & WithDefaults(const TaskTemplateDefaults &value)
UpdateTaskTemplateRequest & WithConstraints(const TaskTemplateConstraints &value)
AWS_CONNECT_API Aws::String SerializePayload() const override
void SetDefaults(const TaskTemplateDefaults &value)
UpdateTaskTemplateRequest & WithStatus(TaskTemplateStatus &&value)
virtual const char * GetServiceRequestName() const override
UpdateTaskTemplateRequest & WithName(Aws::String &&value)
UpdateTaskTemplateRequest & WithDescription(Aws::String &&value)
const Aws::Vector< TaskTemplateField > & GetFields() const
UpdateTaskTemplateRequest & WithName(const char *value)
UpdateTaskTemplateRequest & WithFields(Aws::Vector< TaskTemplateField > &&value)
UpdateTaskTemplateRequest & WithInstanceId(const char *value)
UpdateTaskTemplateRequest & WithDescription(const Aws::String &value)
UpdateTaskTemplateRequest & WithFields(const Aws::Vector< TaskTemplateField > &value)
UpdateTaskTemplateRequest & WithTaskTemplateId(Aws::String &&value)
UpdateTaskTemplateRequest & WithConstraints(TaskTemplateConstraints &&value)
UpdateTaskTemplateRequest & WithDescription(const char *value)
UpdateTaskTemplateRequest & WithContactFlowId(const Aws::String &value)
const TaskTemplateConstraints & GetConstraints() const
void SetFields(Aws::Vector< TaskTemplateField > &&value)
UpdateTaskTemplateRequest & WithContactFlowId(const char *value)
void SetConstraints(TaskTemplateConstraints &&value)
UpdateTaskTemplateRequest & WithInstanceId(Aws::String &&value)
void SetFields(const Aws::Vector< TaskTemplateField > &value)
UpdateTaskTemplateRequest & WithDefaults(TaskTemplateDefaults &&value)
UpdateTaskTemplateRequest & WithName(const Aws::String &value)
UpdateTaskTemplateRequest & WithStatus(const TaskTemplateStatus &value)
UpdateTaskTemplateRequest & WithInstanceId(const Aws::String &value)
void SetConstraints(const TaskTemplateConstraints &value)
UpdateTaskTemplateRequest & WithTaskTemplateId(const char *value)
UpdateTaskTemplateRequest & AddFields(const TaskTemplateField &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector