AWS SDK for C++  1.8.126
AWS SDK for C++
GetQueueAttributesResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sqs/SQS_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlDocument;
24 } // namespace Xml
25 } // namespace Utils
26 namespace SQS
27 {
28 namespace Model
29 {
36  {
37  public:
41 
42 
46  inline const Aws::Map<QueueAttributeName, Aws::String>& GetAttributes() const{ return m_attributes; }
47 
51  inline void SetAttributes(const Aws::Map<QueueAttributeName, Aws::String>& value) { m_attributes = value; }
52 
56  inline void SetAttributes(Aws::Map<QueueAttributeName, Aws::String>&& value) { m_attributes = std::move(value); }
57 
61  inline GetQueueAttributesResult& WithAttributes(const Aws::Map<QueueAttributeName, Aws::String>& value) { SetAttributes(value); return *this;}
62 
66  inline GetQueueAttributesResult& WithAttributes(Aws::Map<QueueAttributeName, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
67 
71  inline GetQueueAttributesResult& AddAttributes(const QueueAttributeName& key, const Aws::String& value) { m_attributes.emplace(key, value); return *this; }
72 
76  inline GetQueueAttributesResult& AddAttributes(QueueAttributeName&& key, const Aws::String& value) { m_attributes.emplace(std::move(key), value); return *this; }
77 
81  inline GetQueueAttributesResult& AddAttributes(const QueueAttributeName& key, Aws::String&& value) { m_attributes.emplace(key, std::move(value)); return *this; }
82 
86  inline GetQueueAttributesResult& AddAttributes(QueueAttributeName&& key, Aws::String&& value) { m_attributes.emplace(std::move(key), std::move(value)); return *this; }
87 
91  inline GetQueueAttributesResult& AddAttributes(QueueAttributeName&& key, const char* value) { m_attributes.emplace(std::move(key), value); return *this; }
92 
96  inline GetQueueAttributesResult& AddAttributes(const QueueAttributeName& key, const char* value) { m_attributes.emplace(key, value); return *this; }
97 
98 
99 
100  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
101 
102 
103  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
104 
105 
106  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
107 
108 
109  inline GetQueueAttributesResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
110 
111 
112  inline GetQueueAttributesResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
113 
114  private:
115 
117 
118  ResponseMetadata m_responseMetadata;
119  };
120 
121 } // namespace Model
122 } // namespace SQS
123 } // namespace Aws
Aws::SQS::Model::GetQueueAttributesResult::WithResponseMetadata
GetQueueAttributesResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: GetQueueAttributesResult.h:109
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::SQS::Model::GetQueueAttributesResult::WithResponseMetadata
GetQueueAttributesResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: GetQueueAttributesResult.h:112
Aws::SQS::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::SQS::Model::GetQueueAttributesResult::AddAttributes
GetQueueAttributesResult & AddAttributes(const QueueAttributeName &key, const Aws::String &value)
Definition: GetQueueAttributesResult.h:71
Aws::SQS::Model::GetQueueAttributesResult::AddAttributes
GetQueueAttributesResult & AddAttributes(QueueAttributeName &&key, const Aws::String &value)
Definition: GetQueueAttributesResult.h:76
Aws::SQS::Model::GetQueueAttributesResult::GetQueueAttributesResult
GetQueueAttributesResult()
Aws::SQS::Model::GetQueueAttributesResult::SetAttributes
void SetAttributes(const Aws::Map< QueueAttributeName, Aws::String > &value)
Definition: GetQueueAttributesResult.h:51
Aws::SQS::Model::GetQueueAttributesResult::WithAttributes
GetQueueAttributesResult & WithAttributes(const Aws::Map< QueueAttributeName, Aws::String > &value)
Definition: GetQueueAttributesResult.h:61
Aws::SQS::Model::GetQueueAttributesResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: GetQueueAttributesResult.h:106
Aws::SQS::Model::GetQueueAttributesResult::AddAttributes
GetQueueAttributesResult & AddAttributes(QueueAttributeName &&key, Aws::String &&value)
Definition: GetQueueAttributesResult.h:86
Aws::SQS::Model::GetQueueAttributesResult::WithAttributes
GetQueueAttributesResult & WithAttributes(Aws::Map< QueueAttributeName, Aws::String > &&value)
Definition: GetQueueAttributesResult.h:66
Aws::SQS::Model::GetQueueAttributesResult::GetAttributes
const Aws::Map< QueueAttributeName, Aws::String > & GetAttributes() const
Definition: GetQueueAttributesResult.h:46
Aws::SQS::Model::QueueAttributeName
QueueAttributeName
Definition: QueueAttributeName.h:17
Aws::Chime::Model::NotificationTarget::NOT_SET
@ NOT_SET
AWSString.h
Aws::SQS::Model::GetQueueAttributesResult::operator=
GetQueueAttributesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_SQS_API
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:28
QueueAttributeName.h
Aws::SQS::Model::GetQueueAttributesResult
Definition: GetQueueAttributesResult.h:36
Aws::SQS::Model::GetQueueAttributesResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: GetQueueAttributesResult.h:103
SQS_EXPORTS.h
Aws::SQS::Model::GetQueueAttributesResult::SetAttributes
void SetAttributes(Aws::Map< QueueAttributeName, Aws::String > &&value)
Definition: GetQueueAttributesResult.h:56
Aws::SQS::Model::GetQueueAttributesResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: GetQueueAttributesResult.h:100
Aws::SQS::Model::GetQueueAttributesResult::GetQueueAttributesResult
GetQueueAttributesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ResponseMetadata.h
Aws::SQS::Model::GetQueueAttributesResult::AddAttributes
GetQueueAttributesResult & AddAttributes(const QueueAttributeName &key, const char *value)
Definition: GetQueueAttributesResult.h:96
AWSMap.h
Aws::SQS::Model::GetQueueAttributesResult::AddAttributes
GetQueueAttributesResult & AddAttributes(const QueueAttributeName &key, Aws::String &&value)
Definition: GetQueueAttributesResult.h:81
Aws::SQS::Model::GetQueueAttributesResult::AddAttributes
GetQueueAttributesResult & AddAttributes(QueueAttributeName &&key, const char *value)
Definition: GetQueueAttributesResult.h:91
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19