AWS SDK for C++  1.9.104
AWS SDK for C++
ListSubscriptionsByTopicResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sns/SNS_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlDocument;
24 } // namespace Xml
25 } // namespace Utils
26 namespace SNS
27 {
28 namespace Model
29 {
36  {
37  public:
41 
42 
46  inline const Aws::Vector<Subscription>& GetSubscriptions() const{ return m_subscriptions; }
47 
51  inline void SetSubscriptions(const Aws::Vector<Subscription>& value) { m_subscriptions = value; }
52 
56  inline void SetSubscriptions(Aws::Vector<Subscription>&& value) { m_subscriptions = std::move(value); }
57 
61  inline ListSubscriptionsByTopicResult& WithSubscriptions(const Aws::Vector<Subscription>& value) { SetSubscriptions(value); return *this;}
62 
66  inline ListSubscriptionsByTopicResult& WithSubscriptions(Aws::Vector<Subscription>&& value) { SetSubscriptions(std::move(value)); return *this;}
67 
71  inline ListSubscriptionsByTopicResult& AddSubscriptions(const Subscription& value) { m_subscriptions.push_back(value); return *this; }
72 
76  inline ListSubscriptionsByTopicResult& AddSubscriptions(Subscription&& value) { m_subscriptions.push_back(std::move(value)); return *this; }
77 
78 
84  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
85 
91  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
92 
98  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
99 
105  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
106 
112  inline ListSubscriptionsByTopicResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
113 
119  inline ListSubscriptionsByTopicResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
120 
126  inline ListSubscriptionsByTopicResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
127 
128 
129 
130  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
131 
132 
133  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
134 
135 
136  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
137 
138 
139  inline ListSubscriptionsByTopicResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
140 
141 
142  inline ListSubscriptionsByTopicResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
143 
144  private:
145 
146  Aws::Vector<Subscription> m_subscriptions;
147 
148  Aws::String m_nextToken;
149 
150  ResponseMetadata m_responseMetadata;
151  };
152 
153 } // namespace Model
154 } // namespace SNS
155 } // namespace Aws
Aws::SNS::Model::ListSubscriptionsByTopicResult::WithNextToken
ListSubscriptionsByTopicResult & WithNextToken(Aws::String &&value)
Definition: ListSubscriptionsByTopicResult.h:119
Aws::SNS::Model::ListSubscriptionsByTopicResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: ListSubscriptionsByTopicResult.h:133
Aws::SNS::Model::ListSubscriptionsByTopicResult::SetSubscriptions
void SetSubscriptions(Aws::Vector< Subscription > &&value)
Definition: ListSubscriptionsByTopicResult.h:56
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::SNS::Model::ListSubscriptionsByTopicResult::ListSubscriptionsByTopicResult
ListSubscriptionsByTopicResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::SNS::Model::ListSubscriptionsByTopicResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: ListSubscriptionsByTopicResult.h:136
Aws::SNS::Model::ListSubscriptionsByTopicResult::ListSubscriptionsByTopicResult
ListSubscriptionsByTopicResult()
Aws::SNS::Model::ListSubscriptionsByTopicResult::operator=
ListSubscriptionsByTopicResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::SNS::Model::ListSubscriptionsByTopicResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListSubscriptionsByTopicResult.h:91
Aws::SNS::Model::ListSubscriptionsByTopicResult::WithNextToken
ListSubscriptionsByTopicResult & WithNextToken(const Aws::String &value)
Definition: ListSubscriptionsByTopicResult.h:112
Aws::SNS::Model::ListSubscriptionsByTopicResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListSubscriptionsByTopicResult.h:105
Aws::SNS::Model::ListSubscriptionsByTopicResult::WithResponseMetadata
ListSubscriptionsByTopicResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: ListSubscriptionsByTopicResult.h:139
Aws::SNS::Model::ListSubscriptionsByTopicResult::SetSubscriptions
void SetSubscriptions(const Aws::Vector< Subscription > &value)
Definition: ListSubscriptionsByTopicResult.h:51
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SNS::Model::ListSubscriptionsByTopicResult::WithSubscriptions
ListSubscriptionsByTopicResult & WithSubscriptions(Aws::Vector< Subscription > &&value)
Definition: ListSubscriptionsByTopicResult.h:66
AWSVector.h
Aws::SNS::Model::ListSubscriptionsByTopicResult::WithNextToken
ListSubscriptionsByTopicResult & WithNextToken(const char *value)
Definition: ListSubscriptionsByTopicResult.h:126
Aws::SNS::Model::ListSubscriptionsByTopicResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListSubscriptionsByTopicResult.h:84
Aws::SNS::Model::ListSubscriptionsByTopicResult::WithSubscriptions
ListSubscriptionsByTopicResult & WithSubscriptions(const Aws::Vector< Subscription > &value)
Definition: ListSubscriptionsByTopicResult.h:61
ResponseMetadata.h
Aws::SNS::Model::ListSubscriptionsByTopicResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListSubscriptionsByTopicResult.h:98
AWSString.h
Aws::SNS::Model::ListSubscriptionsByTopicResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: ListSubscriptionsByTopicResult.h:130
Aws::SNS::Model::ListSubscriptionsByTopicResult::AddSubscriptions
ListSubscriptionsByTopicResult & AddSubscriptions(Subscription &&value)
Definition: ListSubscriptionsByTopicResult.h:76
Aws::SNS::Model::ListSubscriptionsByTopicResult::WithResponseMetadata
ListSubscriptionsByTopicResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: ListSubscriptionsByTopicResult.h:142
Aws::CostExplorer::Model::SubscriberType::NOT_SET
@ NOT_SET
Aws::SNS::Model::ListSubscriptionsByTopicResult::GetSubscriptions
const Aws::Vector< Subscription > & GetSubscriptions() const
Definition: ListSubscriptionsByTopicResult.h:46
AWS_SNS_API
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:28
SNS_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::SNS::Model::Subscription
Definition: Subscription.h:33
Aws::SNS::Model::ListSubscriptionsByTopicResult::AddSubscriptions
ListSubscriptionsByTopicResult & AddSubscriptions(const Subscription &value)
Definition: ListSubscriptionsByTopicResult.h:71
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Subscription.h
Aws::SNS::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::SNS::Model::ListSubscriptionsByTopicResult
Definition: ListSubscriptionsByTopicResult.h:36