AWS SDK for C++  1.8.126
AWS SDK for C++
SendMessageBatchRequest.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 "SendMessageBatch"; }
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 SendMessageBatchRequest& WithQueueUrl(const Aws::String& value) { SetQueueUrl(value); return *this;}
79 
84  inline SendMessageBatchRequest& WithQueueUrl(Aws::String&& value) { SetQueueUrl(std::move(value)); return *this;}
85 
90  inline SendMessageBatchRequest& WithQueueUrl(const char* value) { SetQueueUrl(value); return *this;}
91 
92 
96  inline const Aws::Vector<SendMessageBatchRequestEntry>& GetEntries() const{ return m_entries; }
97 
101  inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; }
102 
106  inline void SetEntries(const Aws::Vector<SendMessageBatchRequestEntry>& value) { m_entriesHasBeenSet = true; m_entries = value; }
107 
111  inline void SetEntries(Aws::Vector<SendMessageBatchRequestEntry>&& value) { m_entriesHasBeenSet = true; m_entries = std::move(value); }
112 
116  inline SendMessageBatchRequest& WithEntries(const Aws::Vector<SendMessageBatchRequestEntry>& value) { SetEntries(value); return *this;}
117 
121  inline SendMessageBatchRequest& WithEntries(Aws::Vector<SendMessageBatchRequestEntry>&& value) { SetEntries(std::move(value)); return *this;}
122 
126  inline SendMessageBatchRequest& AddEntries(const SendMessageBatchRequestEntry& value) { m_entriesHasBeenSet = true; m_entries.push_back(value); return *this; }
127 
131  inline SendMessageBatchRequest& AddEntries(SendMessageBatchRequestEntry&& value) { m_entriesHasBeenSet = true; m_entries.push_back(std::move(value)); return *this; }
132 
133  private:
134 
135  Aws::String m_queueUrl;
136  bool m_queueUrlHasBeenSet;
137 
139  bool m_entriesHasBeenSet;
140  };
141 
142 } // namespace Model
143 } // namespace SQS
144 } // namespace Aws
Aws::SQS::Model::SendMessageBatchRequest::WithQueueUrl
SendMessageBatchRequest & WithQueueUrl(Aws::String &&value)
Definition: SendMessageBatchRequest.h:84
Aws::Http::URI
Definition: URI.h:32
Aws::SQS::Model::SendMessageBatchRequest::SetQueueUrl
void SetQueueUrl(const Aws::String &value)
Definition: SendMessageBatchRequest.h:60
Aws::SQS::Model::SendMessageBatchRequestEntry
Definition: SendMessageBatchRequestEntry.h:37
Aws::SQS::Model::SendMessageBatchRequest::SetEntries
void SetEntries(const Aws::Vector< SendMessageBatchRequestEntry > &value)
Definition: SendMessageBatchRequest.h:106
Aws::SQS::Model::SendMessageBatchRequest::WithEntries
SendMessageBatchRequest & WithEntries(Aws::Vector< SendMessageBatchRequestEntry > &&value)
Definition: SendMessageBatchRequest.h:121
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::SQS::Model::SendMessageBatchRequest::QueueUrlHasBeenSet
bool QueueUrlHasBeenSet() const
Definition: SendMessageBatchRequest.h:54
Aws::SQS::Model::SendMessageBatchRequest::WithQueueUrl
SendMessageBatchRequest & WithQueueUrl(const Aws::String &value)
Definition: SendMessageBatchRequest.h:78
Aws::SQS::Model::SendMessageBatchRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SendMessageBatchRequest.h:35
Aws::SQS::Model::SendMessageBatchRequest::WithQueueUrl
SendMessageBatchRequest & WithQueueUrl(const char *value)
Definition: SendMessageBatchRequest.h:90
Aws::SQS::Model::SendMessageBatchRequest::WithEntries
SendMessageBatchRequest & WithEntries(const Aws::Vector< SendMessageBatchRequestEntry > &value)
Definition: SendMessageBatchRequest.h:116
Aws::SQS::Model::SendMessageBatchRequest::EntriesHasBeenSet
bool EntriesHasBeenSet() const
Definition: SendMessageBatchRequest.h:101
Aws::SQS::Model::SendMessageBatchRequest
Definition: SendMessageBatchRequest.h:27
SendMessageBatchRequestEntry.h
Aws::SQS::Model::SendMessageBatchRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SQS::Model::SendMessageBatchRequest::SetQueueUrl
void SetQueueUrl(Aws::String &&value)
Definition: SendMessageBatchRequest.h:66
Aws::SQS::Model::SendMessageBatchRequest::SendMessageBatchRequest
SendMessageBatchRequest()
Aws::Chime::Model::NotificationTarget::NOT_SET
@ NOT_SET
AWSString.h
AWS_SQS_API
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:28
SQS_EXPORTS.h
Aws::SQS::SQSRequest
Definition: SQSRequest.h:17
Aws::SQS::Model::SendMessageBatchRequest::AddEntries
SendMessageBatchRequest & AddEntries(const SendMessageBatchRequestEntry &value)
Definition: SendMessageBatchRequest.h:126
Aws
Definition: AccessManagementClient.h:15
Aws::SQS::Model::SendMessageBatchRequest::GetEntries
const Aws::Vector< SendMessageBatchRequestEntry > & GetEntries() const
Definition: SendMessageBatchRequest.h:96
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SQS::Model::SendMessageBatchRequest::SetEntries
void SetEntries(Aws::Vector< SendMessageBatchRequestEntry > &&value)
Definition: SendMessageBatchRequest.h:111
Aws::SQS::Model::SendMessageBatchRequest::GetQueueUrl
const Aws::String & GetQueueUrl() const
Definition: SendMessageBatchRequest.h:48
Aws::SQS::Model::SendMessageBatchRequest::SetQueueUrl
void SetQueueUrl(const char *value)
Definition: SendMessageBatchRequest.h:72
Aws::SQS::Model::SendMessageBatchRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
SQSRequest.h
Aws::SQS::Model::SendMessageBatchRequest::AddEntries
SendMessageBatchRequest & AddEntries(SendMessageBatchRequestEntry &&value)
Definition: SendMessageBatchRequest.h:131