AWS SDK for C++  1.8.126
AWS SDK for C++
ReceiveMessageResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sqs/SQS_EXPORTS.h>
10 #include <aws/sqs/model/Message.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Xml
21 {
22  class XmlDocument;
23 } // namespace Xml
24 } // namespace Utils
25 namespace SQS
26 {
27 namespace Model
28 {
35  {
36  public:
40 
41 
45  inline const Aws::Vector<Message>& GetMessages() const{ return m_messages; }
46 
50  inline void SetMessages(const Aws::Vector<Message>& value) { m_messages = value; }
51 
55  inline void SetMessages(Aws::Vector<Message>&& value) { m_messages = std::move(value); }
56 
60  inline ReceiveMessageResult& WithMessages(const Aws::Vector<Message>& value) { SetMessages(value); return *this;}
61 
65  inline ReceiveMessageResult& WithMessages(Aws::Vector<Message>&& value) { SetMessages(std::move(value)); return *this;}
66 
70  inline ReceiveMessageResult& AddMessages(const Message& value) { m_messages.push_back(value); return *this; }
71 
75  inline ReceiveMessageResult& AddMessages(Message&& value) { m_messages.push_back(std::move(value)); return *this; }
76 
77 
78 
79  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
80 
81 
82  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
83 
84 
85  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
86 
87 
88  inline ReceiveMessageResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
89 
90 
91  inline ReceiveMessageResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
92 
93  private:
94 
95  Aws::Vector<Message> m_messages;
96 
97  ResponseMetadata m_responseMetadata;
98  };
99 
100 } // namespace Model
101 } // namespace SQS
102 } // namespace Aws
Aws::SQS::Model::ReceiveMessageResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: ReceiveMessageResult.h:85
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::SQS::Model::ReceiveMessageResult::SetMessages
void SetMessages(const Aws::Vector< Message > &value)
Definition: ReceiveMessageResult.h:50
Message.h
Aws::SQS::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::SQS::Model::ReceiveMessageResult::SetMessages
void SetMessages(Aws::Vector< Message > &&value)
Definition: ReceiveMessageResult.h:55
Aws::SQS::Model::ReceiveMessageResult::ReceiveMessageResult
ReceiveMessageResult()
Aws::SQS::Model::ReceiveMessageResult::WithMessages
ReceiveMessageResult & WithMessages(const Aws::Vector< Message > &value)
Definition: ReceiveMessageResult.h:60
Aws::SQS::Model::ReceiveMessageResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: ReceiveMessageResult.h:82
Aws::SQS::Model::ReceiveMessageResult::operator=
ReceiveMessageResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SQS::Model::ReceiveMessageResult::ReceiveMessageResult
ReceiveMessageResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWSVector.h
Aws::SQS::Model::Message
Definition: Message.h:35
Aws::SQS::Model::ReceiveMessageResult::AddMessages
ReceiveMessageResult & AddMessages(const Message &value)
Definition: ReceiveMessageResult.h:70
Aws::Chime::Model::NotificationTarget::NOT_SET
@ NOT_SET
Aws::SQS::Model::ReceiveMessageResult::WithMessages
ReceiveMessageResult & WithMessages(Aws::Vector< Message > &&value)
Definition: ReceiveMessageResult.h:65
Aws::SQS::Model::ReceiveMessageResult::WithResponseMetadata
ReceiveMessageResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: ReceiveMessageResult.h:91
AWS_SQS_API
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:28
Aws::SQS::Model::ReceiveMessageResult::GetMessages
const Aws::Vector< Message > & GetMessages() const
Definition: ReceiveMessageResult.h:45
Aws::SQS::Model::ReceiveMessageResult::WithResponseMetadata
ReceiveMessageResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: ReceiveMessageResult.h:88
SQS_EXPORTS.h
Aws::SQS::Model::ReceiveMessageResult
Definition: ReceiveMessageResult.h:35
Aws
Definition: AccessManagementClient.h:15
Aws::SQS::Model::ReceiveMessageResult::AddMessages
ReceiveMessageResult & AddMessages(Message &&value)
Definition: ReceiveMessageResult.h:75
ResponseMetadata.h
Aws::SQS::Model::ReceiveMessageResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: ReceiveMessageResult.h:79