AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Subscription.h
1
6#pragma once
7#include <aws/sns/SNS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace SNS
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SNS_API Subscription();
36 AWS_SNS_API Subscription(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_SNS_API Subscription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_SNS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_SNS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetSubscriptionArn() const{ return m_subscriptionArn; }
48 inline bool SubscriptionArnHasBeenSet() const { return m_subscriptionArnHasBeenSet; }
49 inline void SetSubscriptionArn(const Aws::String& value) { m_subscriptionArnHasBeenSet = true; m_subscriptionArn = value; }
50 inline void SetSubscriptionArn(Aws::String&& value) { m_subscriptionArnHasBeenSet = true; m_subscriptionArn = std::move(value); }
51 inline void SetSubscriptionArn(const char* value) { m_subscriptionArnHasBeenSet = true; m_subscriptionArn.assign(value); }
52 inline Subscription& WithSubscriptionArn(const Aws::String& value) { SetSubscriptionArn(value); return *this;}
53 inline Subscription& WithSubscriptionArn(Aws::String&& value) { SetSubscriptionArn(std::move(value)); return *this;}
54 inline Subscription& WithSubscriptionArn(const char* value) { SetSubscriptionArn(value); return *this;}
56
58
61 inline const Aws::String& GetOwner() const{ return m_owner; }
62 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
63 inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
64 inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
65 inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
66 inline Subscription& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
67 inline Subscription& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
68 inline Subscription& WithOwner(const char* value) { SetOwner(value); return *this;}
70
72
75 inline const Aws::String& GetProtocol() const{ return m_protocol; }
76 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
77 inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
78 inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
79 inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
80 inline Subscription& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
81 inline Subscription& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
82 inline Subscription& WithProtocol(const char* value) { SetProtocol(value); return *this;}
84
86
89 inline const Aws::String& GetEndpoint() const{ return m_endpoint; }
90 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
91 inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
92 inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); }
93 inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); }
94 inline Subscription& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;}
95 inline Subscription& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;}
96 inline Subscription& WithEndpoint(const char* value) { SetEndpoint(value); return *this;}
98
100
103 inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
104 inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
105 inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
106 inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); }
107 inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
108 inline Subscription& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
109 inline Subscription& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;}
110 inline Subscription& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
112 private:
113
114 Aws::String m_subscriptionArn;
115 bool m_subscriptionArnHasBeenSet = false;
116
117 Aws::String m_owner;
118 bool m_ownerHasBeenSet = false;
119
120 Aws::String m_protocol;
121 bool m_protocolHasBeenSet = false;
122
123 Aws::String m_endpoint;
124 bool m_endpointHasBeenSet = false;
125
126 Aws::String m_topicArn;
127 bool m_topicArnHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace SNS
132} // namespace Aws
Subscription & WithSubscriptionArn(const char *value)
Subscription & WithTopicArn(const char *value)
void SetTopicArn(const Aws::String &value)
void SetSubscriptionArn(Aws::String &&value)
void SetSubscriptionArn(const Aws::String &value)
const Aws::String & GetOwner() const
Subscription & WithOwner(const Aws::String &value)
Subscription & WithOwner(Aws::String &&value)
Subscription & WithEndpoint(Aws::String &&value)
Subscription & WithSubscriptionArn(Aws::String &&value)
AWS_SNS_API Subscription(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetOwner(const char *value)
Subscription & WithOwner(const char *value)
Subscription & WithProtocol(Aws::String &&value)
void SetProtocol(const char *value)
AWS_SNS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetEndpoint(Aws::String &&value)
Subscription & WithTopicArn(Aws::String &&value)
const Aws::String & GetTopicArn() const
Subscription & WithTopicArn(const Aws::String &value)
Subscription & WithEndpoint(const Aws::String &value)
const Aws::String & GetSubscriptionArn() const
void SetOwner(Aws::String &&value)
void SetTopicArn(Aws::String &&value)
void SetProtocol(const Aws::String &value)
const Aws::String & GetEndpoint() const
void SetTopicArn(const char *value)
const Aws::String & GetProtocol() const
bool SubscriptionArnHasBeenSet() const
void SetEndpoint(const char *value)
void SetEndpoint(const Aws::String &value)
Subscription & WithProtocol(const char *value)
AWS_SNS_API Subscription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_SNS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Subscription & WithEndpoint(const char *value)
void SetSubscriptionArn(const char *value)
void SetOwner(const Aws::String &value)
Subscription & WithSubscriptionArn(const Aws::String &value)
void SetProtocol(Aws::String &&value)
Subscription & WithProtocol(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream