AWS SDK for C++  1.9.104
AWS SDK for C++
ListSubscriptionsResult.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 ListSubscriptionsResult& WithSubscriptions(const Aws::Vector<Subscription>& value) { SetSubscriptions(value); return *this;}
62 
66  inline ListSubscriptionsResult& WithSubscriptions(Aws::Vector<Subscription>&& value) { SetSubscriptions(std::move(value)); return *this;}
67 
71  inline ListSubscriptionsResult& AddSubscriptions(const Subscription& value) { m_subscriptions.push_back(value); return *this; }
72 
76  inline ListSubscriptionsResult& AddSubscriptions(Subscription&& value) { m_subscriptions.push_back(std::move(value)); return *this; }
77 
78 
83  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
84 
89  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
90 
95  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
96 
101  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
102 
107  inline ListSubscriptionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
108 
113  inline ListSubscriptionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
114 
119  inline ListSubscriptionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
120 
121 
122 
123  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
124 
125 
126  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
127 
128 
129  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
130 
131 
132  inline ListSubscriptionsResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
133 
134 
135  inline ListSubscriptionsResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
136 
137  private:
138 
139  Aws::Vector<Subscription> m_subscriptions;
140 
141  Aws::String m_nextToken;
142 
143  ResponseMetadata m_responseMetadata;
144  };
145 
146 } // namespace Model
147 } // namespace SNS
148 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::SNS::Model::ListSubscriptionsResult::SetSubscriptions
void SetSubscriptions(const Aws::Vector< Subscription > &value)
Definition: ListSubscriptionsResult.h:51
Aws::SNS::Model::ListSubscriptionsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListSubscriptionsResult.h:101
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SNS::Model::ListSubscriptionsResult::WithNextToken
ListSubscriptionsResult & WithNextToken(Aws::String &&value)
Definition: ListSubscriptionsResult.h:113
Aws::SNS::Model::ListSubscriptionsResult::WithResponseMetadata
ListSubscriptionsResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: ListSubscriptionsResult.h:132
AWSVector.h
Aws::SNS::Model::ListSubscriptionsResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: ListSubscriptionsResult.h:126
Aws::SNS::Model::ListSubscriptionsResult::AddSubscriptions
ListSubscriptionsResult & AddSubscriptions(Subscription &&value)
Definition: ListSubscriptionsResult.h:76
Aws::SNS::Model::ListSubscriptionsResult::SetSubscriptions
void SetSubscriptions(Aws::Vector< Subscription > &&value)
Definition: ListSubscriptionsResult.h:56
Aws::SNS::Model::ListSubscriptionsResult::operator=
ListSubscriptionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ResponseMetadata.h
Aws::SNS::Model::ListSubscriptionsResult::ListSubscriptionsResult
ListSubscriptionsResult()
Aws::SNS::Model::ListSubscriptionsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListSubscriptionsResult.h:95
AWSString.h
Aws::SNS::Model::ListSubscriptionsResult::WithNextToken
ListSubscriptionsResult & WithNextToken(const Aws::String &value)
Definition: ListSubscriptionsResult.h:107
Aws::CostExplorer::Model::SubscriberType::NOT_SET
@ NOT_SET
Aws::SNS::Model::ListSubscriptionsResult::WithResponseMetadata
ListSubscriptionsResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: ListSubscriptionsResult.h:135
Aws::SNS::Model::ListSubscriptionsResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: ListSubscriptionsResult.h:123
Aws::SNS::Model::ListSubscriptionsResult::GetSubscriptions
const Aws::Vector< Subscription > & GetSubscriptions() const
Definition: ListSubscriptionsResult.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::ListSubscriptionsResult::WithSubscriptions
ListSubscriptionsResult & WithSubscriptions(Aws::Vector< Subscription > &&value)
Definition: ListSubscriptionsResult.h:66
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SNS::Model::ListSubscriptionsResult::AddSubscriptions
ListSubscriptionsResult & AddSubscriptions(const Subscription &value)
Definition: ListSubscriptionsResult.h:71
Subscription.h
Aws::SNS::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::SNS::Model::ListSubscriptionsResult::WithNextToken
ListSubscriptionsResult & WithNextToken(const char *value)
Definition: ListSubscriptionsResult.h:119
Aws::SNS::Model::ListSubscriptionsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListSubscriptionsResult.h:83
Aws::SNS::Model::ListSubscriptionsResult::WithSubscriptions
ListSubscriptionsResult & WithSubscriptions(const Aws::Vector< Subscription > &value)
Definition: ListSubscriptionsResult.h:61
Aws::SNS::Model::ListSubscriptionsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListSubscriptionsResult.h:89
Aws::SNS::Model::ListSubscriptionsResult
Definition: ListSubscriptionsResult.h:36
Aws::SNS::Model::ListSubscriptionsResult::ListSubscriptionsResult
ListSubscriptionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::SNS::Model::ListSubscriptionsResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: ListSubscriptionsResult.h:129