AWS SDK for C++  1.9.128
AWS SDK for C++
SetQueueAttributesRequest.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 "SetQueueAttributes"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
48  inline const Aws::String& GetQueueUrl() const{ return m_queueUrl; }
49 
54  inline bool QueueUrlHasBeenSet() const { return m_queueUrlHasBeenSet; }
55 
60  inline void SetQueueUrl(const Aws::String& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; }
61 
66  inline void SetQueueUrl(Aws::String&& value) { m_queueUrlHasBeenSet = true; m_queueUrl = std::move(value); }
67 
72  inline void SetQueueUrl(const char* value) { m_queueUrlHasBeenSet = true; m_queueUrl.assign(value); }
73 
78  inline SetQueueAttributesRequest& WithQueueUrl(const Aws::String& value) { SetQueueUrl(value); return *this;}
79 
84  inline SetQueueAttributesRequest& WithQueueUrl(Aws::String&& value) { SetQueueUrl(std::move(value)); return *this;}
85 
90  inline SetQueueAttributesRequest& WithQueueUrl(const char* value) { SetQueueUrl(value); return *this;}
91 
92 
219  inline const Aws::Map<QueueAttributeName, Aws::String>& GetAttributes() const{ return m_attributes; }
220 
347  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
348 
475  inline void SetAttributes(const Aws::Map<QueueAttributeName, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
476 
603  inline void SetAttributes(Aws::Map<QueueAttributeName, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
604 
731  inline SetQueueAttributesRequest& WithAttributes(const Aws::Map<QueueAttributeName, Aws::String>& value) { SetAttributes(value); return *this;}
732 
859  inline SetQueueAttributesRequest& WithAttributes(Aws::Map<QueueAttributeName, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
860 
987  inline SetQueueAttributesRequest& AddAttributes(const QueueAttributeName& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
988 
1115  inline SetQueueAttributesRequest& AddAttributes(QueueAttributeName&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
1116 
1243  inline SetQueueAttributesRequest& AddAttributes(const QueueAttributeName& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
1244 
1371  inline SetQueueAttributesRequest& AddAttributes(QueueAttributeName&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
1372 
1499  inline SetQueueAttributesRequest& AddAttributes(QueueAttributeName&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
1500 
1627  inline SetQueueAttributesRequest& AddAttributes(const QueueAttributeName& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
1628 
1629  private:
1630 
1631  Aws::String m_queueUrl;
1632  bool m_queueUrlHasBeenSet;
1633 
1635  bool m_attributesHasBeenSet;
1636  };
1637 
1638 } // namespace Model
1639 } // namespace SQS
1640 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::SQS::Model::SetQueueAttributesRequest::AddAttributes
SetQueueAttributesRequest & AddAttributes(QueueAttributeName &&key, const Aws::String &value)
Definition: SetQueueAttributesRequest.h:1115
Aws::SQS::Model::SetQueueAttributesRequest::SetQueueAttributesRequest
SetQueueAttributesRequest()
Aws::SQS::Model::SetQueueAttributesRequest::WithQueueUrl
SetQueueAttributesRequest & WithQueueUrl(Aws::String &&value)
Definition: SetQueueAttributesRequest.h:84
Aws::SQS::Model::SetQueueAttributesRequest::WithAttributes
SetQueueAttributesRequest & WithAttributes(const Aws::Map< QueueAttributeName, Aws::String > &value)
Definition: SetQueueAttributesRequest.h:731
Aws::SQS::Model::SetQueueAttributesRequest::GetAttributes
const Aws::Map< QueueAttributeName, Aws::String > & GetAttributes() const
Definition: SetQueueAttributesRequest.h:219
Aws::SQS::Model::SetQueueAttributesRequest::GetQueueUrl
const Aws::String & GetQueueUrl() const
Definition: SetQueueAttributesRequest.h:48
Aws::SQS::Model::SetQueueAttributesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SQS::Model::SetQueueAttributesRequest::SetQueueUrl
void SetQueueUrl(const Aws::String &value)
Definition: SetQueueAttributesRequest.h:60
Aws::SQS::Model::SetQueueAttributesRequest::SetQueueUrl
void SetQueueUrl(const char *value)
Definition: SetQueueAttributesRequest.h:72
Aws::SQS::Model::SetQueueAttributesRequest::AddAttributes
SetQueueAttributesRequest & AddAttributes(QueueAttributeName &&key, const char *value)
Definition: SetQueueAttributesRequest.h:1499
Aws::SQS::Model::SetQueueAttributesRequest::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: SetQueueAttributesRequest.h:347
Aws::SQS::Model::SetQueueAttributesRequest::WithQueueUrl
SetQueueAttributesRequest & WithQueueUrl(const char *value)
Definition: SetQueueAttributesRequest.h:90
Aws::SQS::Model::SetQueueAttributesRequest::AddAttributes
SetQueueAttributesRequest & AddAttributes(const QueueAttributeName &key, Aws::String &&value)
Definition: SetQueueAttributesRequest.h:1243
Aws::SQS::Model::SetQueueAttributesRequest::SetQueueUrl
void SetQueueUrl(Aws::String &&value)
Definition: SetQueueAttributesRequest.h:66
Aws::SQS::Model::SetQueueAttributesRequest::QueueUrlHasBeenSet
bool QueueUrlHasBeenSet() const
Definition: SetQueueAttributesRequest.h:54
Aws::SQS::Model::QueueAttributeName
QueueAttributeName
Definition: QueueAttributeName.h:17
Aws::Chime::Model::NotificationTarget::NOT_SET
@ NOT_SET
Aws::SQS::Model::SetQueueAttributesRequest::AddAttributes
SetQueueAttributesRequest & AddAttributes(const QueueAttributeName &key, const char *value)
Definition: SetQueueAttributesRequest.h:1627
AWSString.h
Aws::SQS::Model::SetQueueAttributesRequest
Definition: SetQueueAttributesRequest.h:27
Aws::SQS::Model::SetQueueAttributesRequest::AddAttributes
SetQueueAttributesRequest & AddAttributes(const QueueAttributeName &key, const Aws::String &value)
Definition: SetQueueAttributesRequest.h:987
AWS_SQS_API
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:28
QueueAttributeName.h
SQS_EXPORTS.h
Aws::SQS::SQSRequest
Definition: SQSRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::SQS::Model::SetQueueAttributesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SetQueueAttributesRequest.h:35
Aws::SQS::Model::SetQueueAttributesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SQS::Model::SetQueueAttributesRequest::SetAttributes
void SetAttributes(Aws::Map< QueueAttributeName, Aws::String > &&value)
Definition: SetQueueAttributesRequest.h:603
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SQS::Model::SetQueueAttributesRequest::SetAttributes
void SetAttributes(const Aws::Map< QueueAttributeName, Aws::String > &value)
Definition: SetQueueAttributesRequest.h:475
AWSMap.h
SQSRequest.h
Aws::SQS::Model::SetQueueAttributesRequest::WithAttributes
SetQueueAttributesRequest & WithAttributes(Aws::Map< QueueAttributeName, Aws::String > &&value)
Definition: SetQueueAttributesRequest.h:859
Aws::SQS::Model::SetQueueAttributesRequest::AddAttributes
SetQueueAttributesRequest & AddAttributes(QueueAttributeName &&key, Aws::String &&value)
Definition: SetQueueAttributesRequest.h:1371
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::SQS::Model::SetQueueAttributesRequest::WithQueueUrl
SetQueueAttributesRequest & WithQueueUrl(const Aws::String &value)
Definition: SetQueueAttributesRequest.h:78