AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PublishBatchRequest.h
1
6#pragma once
7#include <aws/sns/SNS_EXPORTS.h>
8#include <aws/sns/SNSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sns/model/PublishBatchRequestEntry.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SNS
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SNS_API PublishBatchRequest();
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 "PublishBatch"; }
33
34 AWS_SNS_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_SNS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
45 inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
46 inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
47 inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
48 inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); }
49 inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
50 inline PublishBatchRequest& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
51 inline PublishBatchRequest& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;}
52 inline PublishBatchRequest& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
54
56
60 inline const Aws::Vector<PublishBatchRequestEntry>& GetPublishBatchRequestEntries() const{ return m_publishBatchRequestEntries; }
61 inline bool PublishBatchRequestEntriesHasBeenSet() const { return m_publishBatchRequestEntriesHasBeenSet; }
62 inline void SetPublishBatchRequestEntries(const Aws::Vector<PublishBatchRequestEntry>& value) { m_publishBatchRequestEntriesHasBeenSet = true; m_publishBatchRequestEntries = value; }
63 inline void SetPublishBatchRequestEntries(Aws::Vector<PublishBatchRequestEntry>&& value) { m_publishBatchRequestEntriesHasBeenSet = true; m_publishBatchRequestEntries = std::move(value); }
66 inline PublishBatchRequest& AddPublishBatchRequestEntries(const PublishBatchRequestEntry& value) { m_publishBatchRequestEntriesHasBeenSet = true; m_publishBatchRequestEntries.push_back(value); return *this; }
67 inline PublishBatchRequest& AddPublishBatchRequestEntries(PublishBatchRequestEntry&& value) { m_publishBatchRequestEntriesHasBeenSet = true; m_publishBatchRequestEntries.push_back(std::move(value)); return *this; }
69 private:
70
71 Aws::String m_topicArn;
72 bool m_topicArnHasBeenSet = false;
73
74 Aws::Vector<PublishBatchRequestEntry> m_publishBatchRequestEntries;
75 bool m_publishBatchRequestEntriesHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace SNS
80} // namespace Aws
PublishBatchRequest & WithTopicArn(const Aws::String &value)
const Aws::Vector< PublishBatchRequestEntry > & GetPublishBatchRequestEntries() const
const Aws::String & GetTopicArn() const
PublishBatchRequest & WithPublishBatchRequestEntries(const Aws::Vector< PublishBatchRequestEntry > &value)
AWS_SNS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_SNS_API Aws::String SerializePayload() const override
PublishBatchRequest & AddPublishBatchRequestEntries(const PublishBatchRequestEntry &value)
virtual const char * GetServiceRequestName() const override
PublishBatchRequest & WithTopicArn(Aws::String &&value)
PublishBatchRequest & WithTopicArn(const char *value)
void SetPublishBatchRequestEntries(Aws::Vector< PublishBatchRequestEntry > &&value)
void SetPublishBatchRequestEntries(const Aws::Vector< PublishBatchRequestEntry > &value)
void SetTopicArn(const Aws::String &value)
PublishBatchRequest & AddPublishBatchRequestEntries(PublishBatchRequestEntry &&value)
PublishBatchRequest & WithPublishBatchRequestEntries(Aws::Vector< PublishBatchRequestEntry > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector