AWS SDK for C++  1.9.1
AWS SDK for C++
CreateQueueRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sqs/SQS_EXPORTS.h>
8 #include <aws/sqs/SQSRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SQS
17 {
18 namespace Model
19 {
20 
27  {
28  public:
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::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
52  inline const Aws::String& GetQueueName() const{ return m_queueName; }
53 
62  inline bool QueueNameHasBeenSet() const { return m_queueNameHasBeenSet; }
63 
72  inline void SetQueueName(const Aws::String& value) { m_queueNameHasBeenSet = true; m_queueName = value; }
73 
82  inline void SetQueueName(Aws::String&& value) { m_queueNameHasBeenSet = true; m_queueName = std::move(value); }
83 
92  inline void SetQueueName(const char* value) { m_queueNameHasBeenSet = true; m_queueName.assign(value); }
93 
102  inline CreateQueueRequest& WithQueueName(const Aws::String& value) { SetQueueName(value); return *this;}
103 
112  inline CreateQueueRequest& WithQueueName(Aws::String&& value) { SetQueueName(std::move(value)); return *this;}
113 
122  inline CreateQueueRequest& WithQueueName(const char* value) { SetQueueName(value); return *this;}
123 
124 
249  inline const Aws::Map<QueueAttributeName, Aws::String>& GetAttributes() const{ return m_attributes; }
250 
375  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
376 
501  inline void SetAttributes(const Aws::Map<QueueAttributeName, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
502 
627  inline void SetAttributes(Aws::Map<QueueAttributeName, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
628 
753  inline CreateQueueRequest& WithAttributes(const Aws::Map<QueueAttributeName, Aws::String>& value) { SetAttributes(value); return *this;}
754 
879  inline CreateQueueRequest& WithAttributes(Aws::Map<QueueAttributeName, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
880 
1005  inline CreateQueueRequest& AddAttributes(const QueueAttributeName& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
1006 
1131  inline CreateQueueRequest& AddAttributes(QueueAttributeName&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
1132 
1257  inline CreateQueueRequest& AddAttributes(const QueueAttributeName& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
1258 
1383  inline CreateQueueRequest& AddAttributes(QueueAttributeName&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
1384 
1509  inline CreateQueueRequest& AddAttributes(QueueAttributeName&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
1510 
1635  inline CreateQueueRequest& AddAttributes(const QueueAttributeName& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
1636 
1637 
1660  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
1661 
1684  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
1685 
1708  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
1709 
1732  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
1733 
1756  inline CreateQueueRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
1757 
1780  inline CreateQueueRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
1781 
1804  inline CreateQueueRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
1805 
1828  inline CreateQueueRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
1829 
1852  inline CreateQueueRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
1853 
1876  inline CreateQueueRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
1877 
1900  inline CreateQueueRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
1901 
1924  inline CreateQueueRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
1925 
1948  inline CreateQueueRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
1949 
1950  private:
1951 
1952  Aws::String m_queueName;
1953  bool m_queueNameHasBeenSet;
1954 
1956  bool m_attributesHasBeenSet;
1957 
1959  bool m_tagsHasBeenSet;
1960  };
1961 
1962 } // namespace Model
1963 } // namespace SQS
1964 } // namespace Aws
Aws::SQS::Model::CreateQueueRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateQueueRequest.h:1660
Aws::SQS::Model::CreateQueueRequest::SetQueueName
void SetQueueName(Aws::String &&value)
Definition: CreateQueueRequest.h:82
Aws::Http::URI
Definition: URI.h:32
Aws::SQS::Model::CreateQueueRequest::AddTags
CreateQueueRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateQueueRequest.h:1924
Aws::SQS::Model::CreateQueueRequest::AddTags
CreateQueueRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateQueueRequest.h:1876
Aws::SQS::Model::CreateQueueRequest::AddTags
CreateQueueRequest & AddTags(const char *key, const char *value)
Definition: CreateQueueRequest.h:1948
Aws::SQS::Model::CreateQueueRequest::AddAttributes
CreateQueueRequest & AddAttributes(const QueueAttributeName &key, const char *value)
Definition: CreateQueueRequest.h:1635
Aws::SQS::Model::CreateQueueRequest::WithQueueName
CreateQueueRequest & WithQueueName(const char *value)
Definition: CreateQueueRequest.h:122
Aws::SQS::Model::CreateQueueRequest::AddTags
CreateQueueRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateQueueRequest.h:1900
Aws::SQS::Model::CreateQueueRequest::QueueNameHasBeenSet
bool QueueNameHasBeenSet() const
Definition: CreateQueueRequest.h:62
Aws::SQS::Model::CreateQueueRequest::AddAttributes
CreateQueueRequest & AddAttributes(QueueAttributeName &&key, const Aws::String &value)
Definition: CreateQueueRequest.h:1131
Aws::SQS::Model::CreateQueueRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateQueueRequest.h:1732
Aws::SQS::Model::CreateQueueRequest::WithQueueName
CreateQueueRequest & WithQueueName(Aws::String &&value)
Definition: CreateQueueRequest.h:112
Aws::SQS::Model::CreateQueueRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SQS::Model::CreateQueueRequest::AddAttributes
CreateQueueRequest & AddAttributes(QueueAttributeName &&key, const char *value)
Definition: CreateQueueRequest.h:1509
Aws::SQS::Model::CreateQueueRequest::WithAttributes
CreateQueueRequest & WithAttributes(const Aws::Map< QueueAttributeName, Aws::String > &value)
Definition: CreateQueueRequest.h:753
Aws::SQS::Model::CreateQueueRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SQS::Model::CreateQueueRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateQueueRequest.h:1684
Aws::SQS::Model::CreateQueueRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateQueueRequest.h:35
Aws::SQS::Model::CreateQueueRequest::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: CreateQueueRequest.h:375
Aws::SQS::Model::CreateQueueRequest::AddTags
CreateQueueRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateQueueRequest.h:1852
Aws::SQS::Model::CreateQueueRequest::SetAttributes
void SetAttributes(const Aws::Map< QueueAttributeName, Aws::String > &value)
Definition: CreateQueueRequest.h:501
Aws::SQS::Model::CreateQueueRequest::SetQueueName
void SetQueueName(const Aws::String &value)
Definition: CreateQueueRequest.h:72
Aws::SQS::Model::CreateQueueRequest::CreateQueueRequest
CreateQueueRequest()
Aws::SQS::Model::QueueAttributeName
QueueAttributeName
Definition: QueueAttributeName.h:17
Aws::SQS::Model::CreateQueueRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateQueueRequest.h:1708
Aws::SQS::Model::CreateQueueRequest::GetQueueName
const Aws::String & GetQueueName() const
Definition: CreateQueueRequest.h:52
Aws::Chime::Model::NotificationTarget::NOT_SET
@ NOT_SET
AWSString.h
Aws::SQS::Model::CreateQueueRequest::WithTags
CreateQueueRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateQueueRequest.h:1780
AWS_SQS_API
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:28
QueueAttributeName.h
Aws::SQS::Model::CreateQueueRequest::AddTags
CreateQueueRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateQueueRequest.h:1804
Aws::SQS::Model::CreateQueueRequest::SetQueueName
void SetQueueName(const char *value)
Definition: CreateQueueRequest.h:92
SQS_EXPORTS.h
Aws::SQS::Model::CreateQueueRequest::AddAttributes
CreateQueueRequest & AddAttributes(const QueueAttributeName &key, Aws::String &&value)
Definition: CreateQueueRequest.h:1257
Aws::SQS::SQSRequest
Definition: SQSRequest.h:17
Aws::SQS::Model::CreateQueueRequest::AddAttributes
CreateQueueRequest & AddAttributes(QueueAttributeName &&key, Aws::String &&value)
Definition: CreateQueueRequest.h:1383
Aws
Definition: AccessManagementClient.h:15
Aws::SQS::Model::CreateQueueRequest::WithAttributes
CreateQueueRequest & WithAttributes(Aws::Map< QueueAttributeName, Aws::String > &&value)
Definition: CreateQueueRequest.h:879
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SQS::Model::CreateQueueRequest::AddAttributes
CreateQueueRequest & AddAttributes(const QueueAttributeName &key, const Aws::String &value)
Definition: CreateQueueRequest.h:1005
Aws::SQS::Model::CreateQueueRequest::WithQueueName
CreateQueueRequest & WithQueueName(const Aws::String &value)
Definition: CreateQueueRequest.h:102
Aws::SQS::Model::CreateQueueRequest::GetAttributes
const Aws::Map< QueueAttributeName, Aws::String > & GetAttributes() const
Definition: CreateQueueRequest.h:249
Aws::SQS::Model::CreateQueueRequest::SetAttributes
void SetAttributes(Aws::Map< QueueAttributeName, Aws::String > &&value)
Definition: CreateQueueRequest.h:627
AWSMap.h
SQSRequest.h
Aws::SQS::Model::CreateQueueRequest::AddTags
CreateQueueRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateQueueRequest.h:1828
Aws::SQS::Model::CreateQueueRequest
Definition: CreateQueueRequest.h:27
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::SQS::Model::CreateQueueRequest::WithTags
CreateQueueRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateQueueRequest.h:1756