AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateQueueRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sqs/SQSRequest.h>
10#include <aws/sqs/SQS_EXPORTS.h>
11#include <aws/sqs/model/QueueAttributeName.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SQS {
17namespace Model {
18
25 public:
26 AWS_SQS_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_SQS_API Aws::String SerializePayload() const override;
35
37
39
47 inline const Aws::String& GetQueueName() const { return m_queueName; }
48 inline bool QueueNameHasBeenSet() const { return m_queueNameHasBeenSet; }
49 template <typename QueueNameT = Aws::String>
50 void SetQueueName(QueueNameT&& value) {
51 m_queueNameHasBeenSet = true;
52 m_queueName = std::forward<QueueNameT>(value);
53 }
54 template <typename QueueNameT = Aws::String>
55 CreateQueueRequest& WithQueueName(QueueNameT&& value) {
56 SetQueueName(std::forward<QueueNameT>(value));
57 return *this;
58 }
60
62
208 inline const Aws::Map<QueueAttributeName, Aws::String>& GetAttributes() const { return m_attributes; }
209 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
210 template <typename AttributesT = Aws::Map<QueueAttributeName, Aws::String>>
211 void SetAttributes(AttributesT&& value) {
212 m_attributesHasBeenSet = true;
213 m_attributes = std::forward<AttributesT>(value);
214 }
215 template <typename AttributesT = Aws::Map<QueueAttributeName, Aws::String>>
216 CreateQueueRequest& WithAttributes(AttributesT&& value) {
217 SetAttributes(std::forward<AttributesT>(value));
218 return *this;
219 }
221 m_attributesHasBeenSet = true;
222 m_attributes.emplace(key, value);
223 return *this;
224 }
226
228
249 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
250 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
251 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
252 void SetTags(TagsT&& value) {
253 m_tagsHasBeenSet = true;
254 m_tags = std::forward<TagsT>(value);
255 }
256 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
257 CreateQueueRequest& WithTags(TagsT&& value) {
258 SetTags(std::forward<TagsT>(value));
259 return *this;
260 }
261 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
262 CreateQueueRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
263 m_tagsHasBeenSet = true;
264 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
265 return *this;
266 }
268 private:
269 Aws::String m_queueName;
270
272
274 bool m_queueNameHasBeenSet = false;
275 bool m_attributesHasBeenSet = false;
276 bool m_tagsHasBeenSet = false;
277};
278
279} // namespace Model
280} // namespace SQS
281} // namespace Aws
CreateQueueRequest & WithTags(TagsT &&value)
void SetQueueName(QueueNameT &&value)
const Aws::Map< QueueAttributeName, Aws::String > & GetAttributes() const
CreateQueueRequest & WithQueueName(QueueNameT &&value)
virtual const char * GetServiceRequestName() const override
void SetAttributes(AttributesT &&value)
const Aws::String & GetQueueName() const
CreateQueueRequest & WithAttributes(AttributesT &&value)
AWS_SQS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateQueueRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_SQS_API Aws::String SerializePayload() const override
CreateQueueRequest & AddAttributes(QueueAttributeName key, Aws::String value)
AWS_SQS_API CreateQueueRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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