AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SubscribeRequest.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/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SNS
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_SNS_API SubscribeRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "Subscribe"; }
35
36 AWS_SNS_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_SNS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
47 inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
48 inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
49 inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
50 inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); }
51 inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
52 inline SubscribeRequest& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
53 inline SubscribeRequest& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;}
54 inline SubscribeRequest& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
56
58
72 inline const Aws::String& GetProtocol() const{ return m_protocol; }
73 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
74 inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
75 inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
76 inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
77 inline SubscribeRequest& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
78 inline SubscribeRequest& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
79 inline SubscribeRequest& WithProtocol(const char* value) { SetProtocol(value); return *this;}
81
83
100 inline const Aws::String& GetEndpoint() const{ return m_endpoint; }
101 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
102 inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
103 inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); }
104 inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); }
105 inline SubscribeRequest& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;}
106 inline SubscribeRequest& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;}
107 inline SubscribeRequest& WithEndpoint(const char* value) { SetEndpoint(value); return *this;}
109
111
157 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
158 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
159 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
160 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
162 inline SubscribeRequest& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
163 inline SubscribeRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
164 inline SubscribeRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
165 inline SubscribeRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
166 inline SubscribeRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
167 inline SubscribeRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
168 inline SubscribeRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
169 inline SubscribeRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
171
173
184 inline bool GetReturnSubscriptionArn() const{ return m_returnSubscriptionArn; }
185 inline bool ReturnSubscriptionArnHasBeenSet() const { return m_returnSubscriptionArnHasBeenSet; }
186 inline void SetReturnSubscriptionArn(bool value) { m_returnSubscriptionArnHasBeenSet = true; m_returnSubscriptionArn = value; }
187 inline SubscribeRequest& WithReturnSubscriptionArn(bool value) { SetReturnSubscriptionArn(value); return *this;}
189 private:
190
191 Aws::String m_topicArn;
192 bool m_topicArnHasBeenSet = false;
193
194 Aws::String m_protocol;
195 bool m_protocolHasBeenSet = false;
196
197 Aws::String m_endpoint;
198 bool m_endpointHasBeenSet = false;
199
201 bool m_attributesHasBeenSet = false;
202
203 bool m_returnSubscriptionArn;
204 bool m_returnSubscriptionArnHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace SNS
209} // namespace Aws
void SetEndpoint(const Aws::String &value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
SubscribeRequest & WithEndpoint(const char *value)
void SetProtocol(const char *value)
void SetTopicArn(Aws::String &&value)
const Aws::String & GetProtocol() const
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
SubscribeRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
SubscribeRequest & WithReturnSubscriptionArn(bool value)
void SetProtocol(Aws::String &&value)
SubscribeRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
void SetProtocol(const Aws::String &value)
SubscribeRequest & WithProtocol(Aws::String &&value)
SubscribeRequest & AddAttributes(Aws::String &&key, const Aws::String &value)
void SetEndpoint(Aws::String &&value)
void SetTopicArn(const char *value)
virtual const char * GetServiceRequestName() const override
SubscribeRequest & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
SubscribeRequest & AddAttributes(const char *key, Aws::String &&value)
SubscribeRequest & AddAttributes(const char *key, const char *value)
SubscribeRequest & WithTopicArn(Aws::String &&value)
void SetEndpoint(const char *value)
SubscribeRequest & WithProtocol(const char *value)
SubscribeRequest & AddAttributes(const Aws::String &key, const Aws::String &value)
void SetTopicArn(const Aws::String &value)
SubscribeRequest & WithTopicArn(const char *value)
SubscribeRequest & WithEndpoint(Aws::String &&value)
SubscribeRequest & AddAttributes(Aws::String &&key, const char *value)
AWS_SNS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::String & GetEndpoint() const
const Aws::String & GetTopicArn() const
SubscribeRequest & WithProtocol(const Aws::String &value)
SubscribeRequest & WithEndpoint(const Aws::String &value)
AWS_SNS_API Aws::String SerializePayload() const override
SubscribeRequest & WithTopicArn(const Aws::String &value)
SubscribeRequest & AddAttributes(const Aws::String &key, Aws::String &&value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String