AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Subscription.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sns/SNS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace SNS {
20namespace Model {
21
29 public:
30 AWS_SNS_API Subscription() = default;
31 AWS_SNS_API Subscription(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_SNS_API Subscription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_SNS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_SNS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetSubscriptionArn() const { return m_subscriptionArn; }
42 inline bool SubscriptionArnHasBeenSet() const { return m_subscriptionArnHasBeenSet; }
43 template <typename SubscriptionArnT = Aws::String>
44 void SetSubscriptionArn(SubscriptionArnT&& value) {
45 m_subscriptionArnHasBeenSet = true;
46 m_subscriptionArn = std::forward<SubscriptionArnT>(value);
47 }
48 template <typename SubscriptionArnT = Aws::String>
49 Subscription& WithSubscriptionArn(SubscriptionArnT&& value) {
50 SetSubscriptionArn(std::forward<SubscriptionArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetOwner() const { return m_owner; }
60 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
61 template <typename OwnerT = Aws::String>
62 void SetOwner(OwnerT&& value) {
63 m_ownerHasBeenSet = true;
64 m_owner = std::forward<OwnerT>(value);
65 }
66 template <typename OwnerT = Aws::String>
67 Subscription& WithOwner(OwnerT&& value) {
68 SetOwner(std::forward<OwnerT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetProtocol() const { return m_protocol; }
78 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
79 template <typename ProtocolT = Aws::String>
80 void SetProtocol(ProtocolT&& value) {
81 m_protocolHasBeenSet = true;
82 m_protocol = std::forward<ProtocolT>(value);
83 }
84 template <typename ProtocolT = Aws::String>
85 Subscription& WithProtocol(ProtocolT&& value) {
86 SetProtocol(std::forward<ProtocolT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
96 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
97 template <typename EndpointT = Aws::String>
98 void SetEndpoint(EndpointT&& value) {
99 m_endpointHasBeenSet = true;
100 m_endpoint = std::forward<EndpointT>(value);
101 }
102 template <typename EndpointT = Aws::String>
103 Subscription& WithEndpoint(EndpointT&& value) {
104 SetEndpoint(std::forward<EndpointT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetTopicArn() const { return m_topicArn; }
114 inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
115 template <typename TopicArnT = Aws::String>
116 void SetTopicArn(TopicArnT&& value) {
117 m_topicArnHasBeenSet = true;
118 m_topicArn = std::forward<TopicArnT>(value);
119 }
120 template <typename TopicArnT = Aws::String>
121 Subscription& WithTopicArn(TopicArnT&& value) {
122 SetTopicArn(std::forward<TopicArnT>(value));
123 return *this;
124 }
126 private:
127 Aws::String m_subscriptionArn;
128
129 Aws::String m_owner;
130
131 Aws::String m_protocol;
132
133 Aws::String m_endpoint;
134
135 Aws::String m_topicArn;
136 bool m_subscriptionArnHasBeenSet = false;
137 bool m_ownerHasBeenSet = false;
138 bool m_protocolHasBeenSet = false;
139 bool m_endpointHasBeenSet = false;
140 bool m_topicArnHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace SNS
145} // namespace Aws
Subscription & WithSubscriptionArn(SubscriptionArnT &&value)
const Aws::String & GetOwner() const
AWS_SNS_API Subscription(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSubscriptionArn(SubscriptionArnT &&value)
void SetEndpoint(EndpointT &&value)
Subscription & WithOwner(OwnerT &&value)
Subscription & WithProtocol(ProtocolT &&value)
AWS_SNS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetOwner(OwnerT &&value)
const Aws::String & GetTopicArn() const
const Aws::String & GetSubscriptionArn() const
Subscription & WithEndpoint(EndpointT &&value)
AWS_SNS_API Subscription()=default
const Aws::String & GetEndpoint() const
const Aws::String & GetProtocol() const
bool SubscriptionArnHasBeenSet() const
void SetProtocol(ProtocolT &&value)
AWS_SNS_API Subscription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTopicArn(TopicArnT &&value)
AWS_SNS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Subscription & WithTopicArn(TopicArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream