AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReceiveMessageResult.h
1
6#pragma once
7#include <aws/sqs/SQS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sqs/model/ResponseMetadata.h>
11#include <aws/sqs/model/Message.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace SQS
27{
28namespace Model
29{
36 {
37 public:
38 AWS_SQS_API ReceiveMessageResult();
41
42
44
47 inline const Aws::Vector<Message>& GetMessages() const{ return m_messages; }
48 inline void SetMessages(const Aws::Vector<Message>& value) { m_messages = value; }
49 inline void SetMessages(Aws::Vector<Message>&& value) { m_messages = std::move(value); }
50 inline ReceiveMessageResult& WithMessages(const Aws::Vector<Message>& value) { SetMessages(value); return *this;}
51 inline ReceiveMessageResult& WithMessages(Aws::Vector<Message>&& value) { SetMessages(std::move(value)); return *this;}
52 inline ReceiveMessageResult& AddMessages(const Message& value) { m_messages.push_back(value); return *this; }
53 inline ReceiveMessageResult& AddMessages(Message&& value) { m_messages.push_back(std::move(value)); return *this; }
55
57
58 inline const Aws::String& GetRequestId() const{ return m_requestId; }
59 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
60 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
61 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
62 inline ReceiveMessageResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
63 inline ReceiveMessageResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
64 inline ReceiveMessageResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
66
68
69 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
70 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
71 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
73 inline ReceiveMessageResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
75 private:
76
77 Aws::Vector<Message> m_messages;
78
79 Aws::String m_requestId;
80
81 ResponseMetadata m_responseMetadata;
82 };
83
84} // namespace Model
85} // namespace SQS
86} // namespace Aws
ReceiveMessageResult & WithResponseMetadata(ResponseMetadata &&value)
ReceiveMessageResult & WithResponseMetadata(const ResponseMetadata &value)
ReceiveMessageResult & WithRequestId(const Aws::String &value)
ReceiveMessageResult & AddMessages(const Message &value)
void SetRequestId(const Aws::String &value)
const Aws::String & GetRequestId() const
const Aws::Vector< Message > & GetMessages() const
void SetMessages(Aws::Vector< Message > &&value)
void SetMessages(const Aws::Vector< Message > &value)
AWS_SQS_API ReceiveMessageResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const ResponseMetadata & GetResponseMetadata() const
void SetResponseMetadata(const ResponseMetadata &value)
ReceiveMessageResult & WithMessages(Aws::Vector< Message > &&value)
ReceiveMessageResult & WithRequestId(Aws::String &&value)
ReceiveMessageResult & AddMessages(Message &&value)
AWS_SQS_API ReceiveMessageResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ReceiveMessageResult & WithMessages(const Aws::Vector< Message > &value)
ReceiveMessageResult & WithRequestId(const char *value)
void SetResponseMetadata(ResponseMetadata &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue