AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
SendMessageBatchRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sqs/SQSRequest.h>
10#include <aws/sqs/SQS_EXPORTS.h>
11#include <aws/sqs/model/SendMessageBatchRequestEntry.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SQS {
17namespace Model {
18
25 public:
26 AWS_SQS_API SendMessageBatchRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "SendMessageBatch"; }
33
34 AWS_SQS_API Aws::String SerializePayload() const override;
35
37
39
43 inline const Aws::String& GetQueueUrl() const { return m_queueUrl; }
44 inline bool QueueUrlHasBeenSet() const { return m_queueUrlHasBeenSet; }
45 template <typename QueueUrlT = Aws::String>
46 void SetQueueUrl(QueueUrlT&& value) {
47 m_queueUrlHasBeenSet = true;
48 m_queueUrl = std::forward<QueueUrlT>(value);
49 }
50 template <typename QueueUrlT = Aws::String>
52 SetQueueUrl(std::forward<QueueUrlT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<SendMessageBatchRequestEntry>& GetEntries() const { return m_entries; }
62 inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; }
63 template <typename EntriesT = Aws::Vector<SendMessageBatchRequestEntry>>
64 void SetEntries(EntriesT&& value) {
65 m_entriesHasBeenSet = true;
66 m_entries = std::forward<EntriesT>(value);
67 }
68 template <typename EntriesT = Aws::Vector<SendMessageBatchRequestEntry>>
70 SetEntries(std::forward<EntriesT>(value));
71 return *this;
72 }
73 template <typename EntriesT = SendMessageBatchRequestEntry>
75 m_entriesHasBeenSet = true;
76 m_entries.emplace_back(std::forward<EntriesT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_queueUrl;
82
84 bool m_queueUrlHasBeenSet = false;
85 bool m_entriesHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace SQS
90} // namespace Aws
virtual const char * GetServiceRequestName() const override
SendMessageBatchRequest & AddEntries(EntriesT &&value)
const Aws::Vector< SendMessageBatchRequestEntry > & GetEntries() const
AWS_SQS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SendMessageBatchRequest & WithQueueUrl(QueueUrlT &&value)
AWS_SQS_API Aws::String SerializePayload() const override
SendMessageBatchRequest & WithEntries(EntriesT &&value)
AWS_SQS_API SendMessageBatchRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector