AWS SDK for C++  1.9.104
AWS SDK for C++
Subscription.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sns/SNS_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace SNS
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::String& GetSubscriptionArn() const{ return m_subscriptionArn; }
47 
51  inline bool SubscriptionArnHasBeenSet() const { return m_subscriptionArnHasBeenSet; }
52 
56  inline void SetSubscriptionArn(const Aws::String& value) { m_subscriptionArnHasBeenSet = true; m_subscriptionArn = value; }
57 
61  inline void SetSubscriptionArn(Aws::String&& value) { m_subscriptionArnHasBeenSet = true; m_subscriptionArn = std::move(value); }
62 
66  inline void SetSubscriptionArn(const char* value) { m_subscriptionArnHasBeenSet = true; m_subscriptionArn.assign(value); }
67 
71  inline Subscription& WithSubscriptionArn(const Aws::String& value) { SetSubscriptionArn(value); return *this;}
72 
76  inline Subscription& WithSubscriptionArn(Aws::String&& value) { SetSubscriptionArn(std::move(value)); return *this;}
77 
81  inline Subscription& WithSubscriptionArn(const char* value) { SetSubscriptionArn(value); return *this;}
82 
83 
87  inline const Aws::String& GetOwner() const{ return m_owner; }
88 
92  inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
93 
97  inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
98 
102  inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
103 
107  inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
108 
112  inline Subscription& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
113 
117  inline Subscription& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
118 
122  inline Subscription& WithOwner(const char* value) { SetOwner(value); return *this;}
123 
124 
128  inline const Aws::String& GetProtocol() const{ return m_protocol; }
129 
133  inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
134 
138  inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
139 
143  inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
144 
148  inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
149 
153  inline Subscription& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
154 
158  inline Subscription& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
159 
163  inline Subscription& WithProtocol(const char* value) { SetProtocol(value); return *this;}
164 
165 
169  inline const Aws::String& GetEndpoint() const{ return m_endpoint; }
170 
174  inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
175 
179  inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
180 
184  inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); }
185 
189  inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); }
190 
194  inline Subscription& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;}
195 
199  inline Subscription& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;}
200 
204  inline Subscription& WithEndpoint(const char* value) { SetEndpoint(value); return *this;}
205 
206 
210  inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
211 
215  inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
216 
220  inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
221 
225  inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); }
226 
230  inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
231 
235  inline Subscription& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
236 
240  inline Subscription& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;}
241 
245  inline Subscription& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
246 
247  private:
248 
249  Aws::String m_subscriptionArn;
250  bool m_subscriptionArnHasBeenSet;
251 
252  Aws::String m_owner;
253  bool m_ownerHasBeenSet;
254 
255  Aws::String m_protocol;
256  bool m_protocolHasBeenSet;
257 
258  Aws::String m_endpoint;
259  bool m_endpointHasBeenSet;
260 
261  Aws::String m_topicArn;
262  bool m_topicArnHasBeenSet;
263  };
264 
265 } // namespace Model
266 } // namespace SNS
267 } // namespace Aws
Aws::SNS::Model::Subscription::WithOwner
Subscription & WithOwner(const Aws::String &value)
Definition: Subscription.h:112
Aws::SNS::Model::Subscription::WithSubscriptionArn
Subscription & WithSubscriptionArn(Aws::String &&value)
Definition: Subscription.h:76
Aws::SNS::Model::Subscription::SetSubscriptionArn
void SetSubscriptionArn(Aws::String &&value)
Definition: Subscription.h:61
Aws::SNS::Model::Subscription::GetOwner
const Aws::String & GetOwner() const
Definition: Subscription.h:87
Aws::SNS::Model::Subscription::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::SNS::Model::Subscription::WithTopicArn
Subscription & WithTopicArn(const char *value)
Definition: Subscription.h:245
Aws::SNS::Model::Subscription::EndpointHasBeenSet
bool EndpointHasBeenSet() const
Definition: Subscription.h:174
Aws::SNS::Model::Subscription::WithEndpoint
Subscription & WithEndpoint(Aws::String &&value)
Definition: Subscription.h:199
Aws::SNS::Model::Subscription::SetSubscriptionArn
void SetSubscriptionArn(const char *value)
Definition: Subscription.h:66
Aws::SNS::Model::Subscription::WithProtocol
Subscription & WithProtocol(const char *value)
Definition: Subscription.h:163
Aws::SNS::Model::Subscription::WithEndpoint
Subscription & WithEndpoint(const char *value)
Definition: Subscription.h:204
Aws::SNS::Model::Subscription::SetEndpoint
void SetEndpoint(const char *value)
Definition: Subscription.h:189
Aws::SNS::Model::Subscription::OwnerHasBeenSet
bool OwnerHasBeenSet() const
Definition: Subscription.h:92
Aws::SNS::Model::Subscription::Subscription
Subscription(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SNS::Model::Subscription::GetProtocol
const Aws::String & GetProtocol() const
Definition: Subscription.h:128
Aws::SNS::Model::Subscription::ProtocolHasBeenSet
bool ProtocolHasBeenSet() const
Definition: Subscription.h:133
Aws::SNS::Model::Subscription::WithOwner
Subscription & WithOwner(const char *value)
Definition: Subscription.h:122
Aws::SNS::Model::Subscription::GetTopicArn
const Aws::String & GetTopicArn() const
Definition: Subscription.h:210
Aws::SNS::Model::Subscription::SetSubscriptionArn
void SetSubscriptionArn(const Aws::String &value)
Definition: Subscription.h:56
Aws::SNS::Model::Subscription::SetOwner
void SetOwner(const Aws::String &value)
Definition: Subscription.h:97
Aws::SNS::Model::Subscription::WithSubscriptionArn
Subscription & WithSubscriptionArn(const Aws::String &value)
Definition: Subscription.h:71
Aws::SNS::Model::Subscription::WithTopicArn
Subscription & WithTopicArn(Aws::String &&value)
Definition: Subscription.h:240
AWSStreamFwd.h
Aws::SNS::Model::Subscription::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::SNS::Model::Subscription::TopicArnHasBeenSet
bool TopicArnHasBeenSet() const
Definition: Subscription.h:215
Aws::SNS::Model::Subscription::GetSubscriptionArn
const Aws::String & GetSubscriptionArn() const
Definition: Subscription.h:46
Aws::SNS::Model::Subscription::SetOwner
void SetOwner(Aws::String &&value)
Definition: Subscription.h:102
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::SNS::Model::Subscription::WithOwner
Subscription & WithOwner(Aws::String &&value)
Definition: Subscription.h:117
Aws::SNS::Model::Subscription::WithProtocol
Subscription & WithProtocol(const Aws::String &value)
Definition: Subscription.h:153
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SNS::Model::Subscription::SetOwner
void SetOwner(const char *value)
Definition: Subscription.h:107
Aws::SNS::Model::Subscription::SetEndpoint
void SetEndpoint(const Aws::String &value)
Definition: Subscription.h:179
Aws::SNS::Model::Subscription::WithProtocol
Subscription & WithProtocol(Aws::String &&value)
Definition: Subscription.h:158
Aws::SNS::Model::Subscription::SetTopicArn
void SetTopicArn(Aws::String &&value)
Definition: Subscription.h:225
AWSString.h
Aws::SNS::Model::Subscription::SetTopicArn
void SetTopicArn(const Aws::String &value)
Definition: Subscription.h:220
Aws::SNS::Model::Subscription::WithEndpoint
Subscription & WithEndpoint(const Aws::String &value)
Definition: Subscription.h:194
Aws::CostExplorer::Model::SubscriberType::NOT_SET
@ NOT_SET
Aws::SNS::Model::Subscription::operator=
Subscription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_SNS_API
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:28
Aws::SNS::Model::Subscription::Subscription
Subscription()
SNS_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::SNS::Model::Subscription
Definition: Subscription.h:33
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SNS::Model::Subscription::SetProtocol
void SetProtocol(const Aws::String &value)
Definition: Subscription.h:138
Aws::SNS::Model::Subscription::SetTopicArn
void SetTopicArn(const char *value)
Definition: Subscription.h:230
index
int index
Definition: cJSON.h:181
Aws::SNS::Model::Subscription::SetEndpoint
void SetEndpoint(Aws::String &&value)
Definition: Subscription.h:184
Aws::SNS::Model::Subscription::SubscriptionArnHasBeenSet
bool SubscriptionArnHasBeenSet() const
Definition: Subscription.h:51
Aws::SNS::Model::Subscription::SetProtocol
void SetProtocol(Aws::String &&value)
Definition: Subscription.h:143
Aws::SNS::Model::Subscription::WithSubscriptionArn
Subscription & WithSubscriptionArn(const char *value)
Definition: Subscription.h:81
Aws::SNS::Model::Subscription::GetEndpoint
const Aws::String & GetEndpoint() const
Definition: Subscription.h:169
Aws::SNS::Model::Subscription::SetProtocol
void SetProtocol(const char *value)
Definition: Subscription.h:148
Aws::SNS::Model::Subscription::WithTopicArn
Subscription & WithTopicArn(const Aws::String &value)
Definition: Subscription.h:235