AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateQueueRequest.h
1
6#pragma once
7#include <aws/sqs/SQS_EXPORTS.h>
8#include <aws/sqs/SQSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/sqs/model/QueueAttributeName.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SQS
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_SQS_API CreateQueueRequest() = default;
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 "CreateQueue"; }
36
37 AWS_SQS_API Aws::String SerializePayload() const override;
38
40
41
43
51 inline const Aws::String& GetQueueName() const { return m_queueName; }
52 inline bool QueueNameHasBeenSet() const { return m_queueNameHasBeenSet; }
53 template<typename QueueNameT = Aws::String>
54 void SetQueueName(QueueNameT&& value) { m_queueNameHasBeenSet = true; m_queueName = std::forward<QueueNameT>(value); }
55 template<typename QueueNameT = Aws::String>
56 CreateQueueRequest& WithQueueName(QueueNameT&& value) { SetQueueName(std::forward<QueueNameT>(value)); return *this;}
58
60
206 inline const Aws::Map<QueueAttributeName, Aws::String>& GetAttributes() const { return m_attributes; }
207 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
208 template<typename AttributesT = Aws::Map<QueueAttributeName, Aws::String>>
209 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
210 template<typename AttributesT = Aws::Map<QueueAttributeName, Aws::String>>
211 CreateQueueRequest& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
213 m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this;
214 }
216
218
239 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
240 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
241 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
242 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
243 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
244 CreateQueueRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
245 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
246 CreateQueueRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
247 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
248 }
250 private:
251
252 Aws::String m_queueName;
253 bool m_queueNameHasBeenSet = false;
254
256 bool m_attributesHasBeenSet = false;
257
259 bool m_tagsHasBeenSet = false;
260 };
261
262} // namespace Model
263} // namespace SQS
264} // 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