AWS SDK for C++

AWS SDK for C++ Version 1.11.778

Loading...
Searching...
No Matches
CreateQueueRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/EmailAddressConfig.h>
10#include <aws/connect/model/OutboundCallerConfig.h>
11#include <aws/connect/model/OutboundEmailConfig.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Connect {
20namespace Model {
21
25 public:
26 AWS_CONNECT_API CreateQueueRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateQueue"; }
33
34 AWS_CONNECT_API Aws::String SerializePayload() const override;
35
37
42 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
43 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
44 template <typename InstanceIdT = Aws::String>
45 void SetInstanceId(InstanceIdT&& value) {
46 m_instanceIdHasBeenSet = true;
47 m_instanceId = std::forward<InstanceIdT>(value);
48 }
49 template <typename InstanceIdT = Aws::String>
50 CreateQueueRequest& WithInstanceId(InstanceIdT&& value) {
51 SetInstanceId(std::forward<InstanceIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
68 CreateQueueRequest& WithName(NameT&& value) {
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template <typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) {
82 m_descriptionHasBeenSet = true;
83 m_description = std::forward<DescriptionT>(value);
84 }
85 template <typename DescriptionT = Aws::String>
86 CreateQueueRequest& WithDescription(DescriptionT&& value) {
87 SetDescription(std::forward<DescriptionT>(value));
88 return *this;
89 }
91
93
96 inline const OutboundCallerConfig& GetOutboundCallerConfig() const { return m_outboundCallerConfig; }
97 inline bool OutboundCallerConfigHasBeenSet() const { return m_outboundCallerConfigHasBeenSet; }
98 template <typename OutboundCallerConfigT = OutboundCallerConfig>
99 void SetOutboundCallerConfig(OutboundCallerConfigT&& value) {
100 m_outboundCallerConfigHasBeenSet = true;
101 m_outboundCallerConfig = std::forward<OutboundCallerConfigT>(value);
102 }
103 template <typename OutboundCallerConfigT = OutboundCallerConfig>
104 CreateQueueRequest& WithOutboundCallerConfig(OutboundCallerConfigT&& value) {
105 SetOutboundCallerConfig(std::forward<OutboundCallerConfigT>(value));
106 return *this;
107 }
109
111
114 inline const OutboundEmailConfig& GetOutboundEmailConfig() const { return m_outboundEmailConfig; }
115 inline bool OutboundEmailConfigHasBeenSet() const { return m_outboundEmailConfigHasBeenSet; }
116 template <typename OutboundEmailConfigT = OutboundEmailConfig>
117 void SetOutboundEmailConfig(OutboundEmailConfigT&& value) {
118 m_outboundEmailConfigHasBeenSet = true;
119 m_outboundEmailConfig = std::forward<OutboundEmailConfigT>(value);
120 }
121 template <typename OutboundEmailConfigT = OutboundEmailConfig>
122 CreateQueueRequest& WithOutboundEmailConfig(OutboundEmailConfigT&& value) {
123 SetOutboundEmailConfig(std::forward<OutboundEmailConfigT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetHoursOfOperationId() const { return m_hoursOfOperationId; }
133 inline bool HoursOfOperationIdHasBeenSet() const { return m_hoursOfOperationIdHasBeenSet; }
134 template <typename HoursOfOperationIdT = Aws::String>
135 void SetHoursOfOperationId(HoursOfOperationIdT&& value) {
136 m_hoursOfOperationIdHasBeenSet = true;
137 m_hoursOfOperationId = std::forward<HoursOfOperationIdT>(value);
138 }
139 template <typename HoursOfOperationIdT = Aws::String>
140 CreateQueueRequest& WithHoursOfOperationId(HoursOfOperationIdT&& value) {
141 SetHoursOfOperationId(std::forward<HoursOfOperationIdT>(value));
142 return *this;
143 }
145
147
151 inline int GetMaxContacts() const { return m_maxContacts; }
152 inline bool MaxContactsHasBeenSet() const { return m_maxContactsHasBeenSet; }
153 inline void SetMaxContacts(int value) {
154 m_maxContactsHasBeenSet = true;
155 m_maxContacts = value;
156 }
158 SetMaxContacts(value);
159 return *this;
160 }
162
164
167 inline const Aws::Vector<Aws::String>& GetQuickConnectIds() const { return m_quickConnectIds; }
168 inline bool QuickConnectIdsHasBeenSet() const { return m_quickConnectIdsHasBeenSet; }
169 template <typename QuickConnectIdsT = Aws::Vector<Aws::String>>
170 void SetQuickConnectIds(QuickConnectIdsT&& value) {
171 m_quickConnectIdsHasBeenSet = true;
172 m_quickConnectIds = std::forward<QuickConnectIdsT>(value);
173 }
174 template <typename QuickConnectIdsT = Aws::Vector<Aws::String>>
175 CreateQueueRequest& WithQuickConnectIds(QuickConnectIdsT&& value) {
176 SetQuickConnectIds(std::forward<QuickConnectIdsT>(value));
177 return *this;
178 }
179 template <typename QuickConnectIdsT = Aws::String>
180 CreateQueueRequest& AddQuickConnectIds(QuickConnectIdsT&& value) {
181 m_quickConnectIdsHasBeenSet = true;
182 m_quickConnectIds.emplace_back(std::forward<QuickConnectIdsT>(value));
183 return *this;
184 }
186
188
193 inline const Aws::Vector<EmailAddressConfig>& GetEmailAddressesConfig() const { return m_emailAddressesConfig; }
194 inline bool EmailAddressesConfigHasBeenSet() const { return m_emailAddressesConfigHasBeenSet; }
195 template <typename EmailAddressesConfigT = Aws::Vector<EmailAddressConfig>>
196 void SetEmailAddressesConfig(EmailAddressesConfigT&& value) {
197 m_emailAddressesConfigHasBeenSet = true;
198 m_emailAddressesConfig = std::forward<EmailAddressesConfigT>(value);
199 }
200 template <typename EmailAddressesConfigT = Aws::Vector<EmailAddressConfig>>
201 CreateQueueRequest& WithEmailAddressesConfig(EmailAddressesConfigT&& value) {
202 SetEmailAddressesConfig(std::forward<EmailAddressesConfigT>(value));
203 return *this;
204 }
205 template <typename EmailAddressesConfigT = EmailAddressConfig>
206 CreateQueueRequest& AddEmailAddressesConfig(EmailAddressesConfigT&& value) {
207 m_emailAddressesConfigHasBeenSet = true;
208 m_emailAddressesConfig.emplace_back(std::forward<EmailAddressesConfigT>(value));
209 return *this;
210 }
212
214
218 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
219 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
220 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
221 void SetTags(TagsT&& value) {
222 m_tagsHasBeenSet = true;
223 m_tags = std::forward<TagsT>(value);
224 }
225 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
226 CreateQueueRequest& WithTags(TagsT&& value) {
227 SetTags(std::forward<TagsT>(value));
228 return *this;
229 }
230 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
231 CreateQueueRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
232 m_tagsHasBeenSet = true;
233 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
234 return *this;
235 }
237 private:
238 Aws::String m_instanceId;
239
240 Aws::String m_name;
241
242 Aws::String m_description;
243
244 OutboundCallerConfig m_outboundCallerConfig;
245
246 OutboundEmailConfig m_outboundEmailConfig;
247
248 Aws::String m_hoursOfOperationId;
249
250 int m_maxContacts{0};
251
252 Aws::Vector<Aws::String> m_quickConnectIds;
253
254 Aws::Vector<EmailAddressConfig> m_emailAddressesConfig;
255
257 bool m_instanceIdHasBeenSet = false;
258 bool m_nameHasBeenSet = false;
259 bool m_descriptionHasBeenSet = false;
260 bool m_outboundCallerConfigHasBeenSet = false;
261 bool m_outboundEmailConfigHasBeenSet = false;
262 bool m_hoursOfOperationIdHasBeenSet = false;
263 bool m_maxContactsHasBeenSet = false;
264 bool m_quickConnectIdsHasBeenSet = false;
265 bool m_emailAddressesConfigHasBeenSet = false;
266 bool m_tagsHasBeenSet = false;
267};
268
269} // namespace Model
270} // namespace Connect
271} // namespace Aws
CreateQueueRequest & WithOutboundCallerConfig(OutboundCallerConfigT &&value)
CreateQueueRequest & WithTags(TagsT &&value)
void SetOutboundEmailConfig(OutboundEmailConfigT &&value)
CreateQueueRequest & WithDescription(DescriptionT &&value)
const Aws::Vector< Aws::String > & GetQuickConnectIds() const
const Aws::String & GetHoursOfOperationId() const
CreateQueueRequest & WithQuickConnectIds(QuickConnectIdsT &&value)
CreateQueueRequest & WithInstanceId(InstanceIdT &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
CreateQueueRequest & WithName(NameT &&value)
CreateQueueRequest & WithEmailAddressesConfig(EmailAddressesConfigT &&value)
const OutboundCallerConfig & GetOutboundCallerConfig() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateQueueRequest & WithHoursOfOperationId(HoursOfOperationIdT &&value)
const Aws::String & GetInstanceId() const
CreateQueueRequest & AddEmailAddressesConfig(EmailAddressesConfigT &&value)
CreateQueueRequest & WithMaxContacts(int value)
void SetQuickConnectIds(QuickConnectIdsT &&value)
void SetOutboundCallerConfig(OutboundCallerConfigT &&value)
void SetHoursOfOperationId(HoursOfOperationIdT &&value)
void SetEmailAddressesConfig(EmailAddressesConfigT &&value)
AWS_CONNECT_API CreateQueueRequest()=default
const Aws::Vector< EmailAddressConfig > & GetEmailAddressesConfig() const
CreateQueueRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::String & GetDescription() const
const OutboundEmailConfig & GetOutboundEmailConfig() const
virtual const char * GetServiceRequestName() const override
void SetDescription(DescriptionT &&value)
CreateQueueRequest & AddQuickConnectIds(QuickConnectIdsT &&value)
CreateQueueRequest & WithOutboundEmailConfig(OutboundEmailConfigT &&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