AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetQueueName(const Aws::String& value) { m_queueNameHasBeenSet = true; m_queueName = value; }
54 inline void SetQueueName(Aws::String&& value) { m_queueNameHasBeenSet = true; m_queueName = std::move(value); }
55 inline void SetQueueName(const char* value) { m_queueNameHasBeenSet = true; m_queueName.assign(value); }
56 inline CreateQueueRequest& WithQueueName(const Aws::String& value) { SetQueueName(value); return *this;}
57 inline CreateQueueRequest& WithQueueName(Aws::String&& value) { SetQueueName(std::move(value)); return *this;}
58 inline CreateQueueRequest& WithQueueName(const char* value) { SetQueueName(value); return *this;}
60
62
208 inline const Aws::Map<QueueAttributeName, Aws::String>& GetAttributes() const{ return m_attributes; }
209 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
210 inline void SetAttributes(const Aws::Map<QueueAttributeName, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
211 inline void SetAttributes(Aws::Map<QueueAttributeName, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
214 inline CreateQueueRequest& AddAttributes(const QueueAttributeName& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
215 inline CreateQueueRequest& AddAttributes(QueueAttributeName&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
216 inline CreateQueueRequest& AddAttributes(const QueueAttributeName& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
217 inline CreateQueueRequest& AddAttributes(QueueAttributeName&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
218 inline CreateQueueRequest& AddAttributes(QueueAttributeName&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
219 inline CreateQueueRequest& AddAttributes(const QueueAttributeName& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
221
223
244 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
245 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
246 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
247 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
248 inline CreateQueueRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
249 inline CreateQueueRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
250 inline CreateQueueRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
251 inline CreateQueueRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
252 inline CreateQueueRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
253 inline CreateQueueRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
254 inline CreateQueueRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
255 inline CreateQueueRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
256 inline CreateQueueRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
258 private:
259
260 Aws::String m_queueName;
261 bool m_queueNameHasBeenSet = false;
262
264 bool m_attributesHasBeenSet = false;
265
267 bool m_tagsHasBeenSet = false;
268 };
269
270} // namespace Model
271} // namespace SQS
272} // namespace Aws
void SetQueueName(Aws::String &&value)
CreateQueueRequest & WithQueueName(const char *value)
CreateQueueRequest & AddAttributes(QueueAttributeName &&key, Aws::String &&value)
CreateQueueRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateQueueRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateQueueRequest & WithQueueName(Aws::String &&value)
CreateQueueRequest & AddAttributes(QueueAttributeName &&key, const Aws::String &value)
const Aws::Map< QueueAttributeName, Aws::String > & GetAttributes() const
CreateQueueRequest & AddTags(const char *key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetQueueName() const
CreateQueueRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetQueueName(const Aws::String &value)
CreateQueueRequest & AddTags(const char *key, const char *value)
void SetAttributes(const Aws::Map< QueueAttributeName, Aws::String > &value)
CreateQueueRequest & AddAttributes(const QueueAttributeName &key, const Aws::String &value)
AWS_SQS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateQueueRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateQueueRequest & WithAttributes(const Aws::Map< QueueAttributeName, Aws::String > &value)
CreateQueueRequest & AddAttributes(const QueueAttributeName &key, Aws::String &&value)
CreateQueueRequest & AddAttributes(QueueAttributeName &&key, const char *value)
CreateQueueRequest & AddTags(Aws::String &&key, const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_SQS_API Aws::String SerializePayload() const override
CreateQueueRequest & AddAttributes(const QueueAttributeName &key, const char *value)
CreateQueueRequest & WithQueueName(const Aws::String &value)
CreateQueueRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetAttributes(Aws::Map< QueueAttributeName, Aws::String > &&value)
CreateQueueRequest & WithAttributes(Aws::Map< QueueAttributeName, Aws::String > &&value)
CreateQueueRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
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