AWS SDK for C++  1.8.126
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 
208  inline const Aws::Map<QueueAttributeName, Aws::String>& GetAttributes() const{ return m_attributes; }
209 
325  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
326 
442  inline void SetAttributes(const Aws::Map<QueueAttributeName, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
443 
559  inline void SetAttributes(Aws::Map<QueueAttributeName, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
560 
676  inline SetQueueAttributesRequest& WithAttributes(const Aws::Map<QueueAttributeName, Aws::String>& value) { SetAttributes(value); return *this;}
677 
793  inline SetQueueAttributesRequest& WithAttributes(Aws::Map<QueueAttributeName, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
794 
910  inline SetQueueAttributesRequest& AddAttributes(const QueueAttributeName& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
911 
1027  inline SetQueueAttributesRequest& AddAttributes(QueueAttributeName&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
1028 
1144  inline SetQueueAttributesRequest& AddAttributes(const QueueAttributeName& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
1145 
1261  inline SetQueueAttributesRequest& AddAttributes(QueueAttributeName&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
1262 
1378  inline SetQueueAttributesRequest& AddAttributes(QueueAttributeName&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
1379 
1495  inline SetQueueAttributesRequest& AddAttributes(const QueueAttributeName& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
1496 
1497  private:
1498 
1499  Aws::String m_queueUrl;
1500  bool m_queueUrlHasBeenSet;
1501 
1503  bool m_attributesHasBeenSet;
1504  };
1505 
1506 } // namespace Model
1507 } // namespace SQS
1508 } // 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:1027
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:676
Aws::SQS::Model::SetQueueAttributesRequest::GetAttributes
const Aws::Map< QueueAttributeName, Aws::String > & GetAttributes() const
Definition: SetQueueAttributesRequest.h:208
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:1378
Aws::SQS::Model::SetQueueAttributesRequest::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: SetQueueAttributesRequest.h:325
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:1144
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:1495
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:910
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:559
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:442
AWSMap.h
SQSRequest.h
Aws::SQS::Model::SetQueueAttributesRequest::WithAttributes
SetQueueAttributesRequest & WithAttributes(Aws::Map< QueueAttributeName, Aws::String > &&value)
Definition: SetQueueAttributesRequest.h:793
Aws::SQS::Model::SetQueueAttributesRequest::AddAttributes
SetQueueAttributesRequest & AddAttributes(QueueAttributeName &&key, Aws::String &&value)
Definition: SetQueueAttributesRequest.h:1261
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