AWS SDK for C++  1.9.156
AWS SDK for C++
ListTopicsResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sns/SNS_EXPORTS.h>
11 #include <aws/sns/model/Topic.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<Topic>& GetTopics() const{ return m_topics; }
47 
51  inline void SetTopics(const Aws::Vector<Topic>& value) { m_topics = value; }
52 
56  inline void SetTopics(Aws::Vector<Topic>&& value) { m_topics = std::move(value); }
57 
61  inline ListTopicsResult& WithTopics(const Aws::Vector<Topic>& value) { SetTopics(value); return *this;}
62 
66  inline ListTopicsResult& WithTopics(Aws::Vector<Topic>&& value) { SetTopics(std::move(value)); return *this;}
67 
71  inline ListTopicsResult& AddTopics(const Topic& value) { m_topics.push_back(value); return *this; }
72 
76  inline ListTopicsResult& AddTopics(Topic&& value) { m_topics.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 ListTopicsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
108 
113  inline ListTopicsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
114 
119  inline ListTopicsResult& 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 ListTopicsResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
133 
134 
135  inline ListTopicsResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
136 
137  private:
138 
139  Aws::Vector<Topic> m_topics;
140 
141  Aws::String m_nextToken;
142 
143  ResponseMetadata m_responseMetadata;
144  };
145 
146 } // namespace Model
147 } // namespace SNS
148 } // namespace Aws
Aws::SNS::Model::ListTopicsResult::WithNextToken
ListTopicsResult & WithNextToken(const char *value)
Definition: ListTopicsResult.h:119
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::SNS::Model::ListTopicsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListTopicsResult.h:89
Aws::SNS::Model::ListTopicsResult
Definition: ListTopicsResult.h:36
Aws::SNS::Model::ListTopicsResult::WithNextToken
ListTopicsResult & WithNextToken(const Aws::String &value)
Definition: ListTopicsResult.h:107
Aws::SNS::Model::ListTopicsResult::operator=
ListTopicsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::SNS::Model::ListTopicsResult::ListTopicsResult
ListTopicsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SNS::Model::ListTopicsResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: ListTopicsResult.h:123
AWSVector.h
Aws::SNS::Model::ListTopicsResult::WithNextToken
ListTopicsResult & WithNextToken(Aws::String &&value)
Definition: ListTopicsResult.h:113
Aws::SNS::Model::ListTopicsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListTopicsResult.h:101
Aws::SNS::Model::ListTopicsResult::SetTopics
void SetTopics(Aws::Vector< Topic > &&value)
Definition: ListTopicsResult.h:56
Aws::SNS::Model::ListTopicsResult::SetTopics
void SetTopics(const Aws::Vector< Topic > &value)
Definition: ListTopicsResult.h:51
Aws::SNS::Model::ListTopicsResult::AddTopics
ListTopicsResult & AddTopics(Topic &&value)
Definition: ListTopicsResult.h:76
Aws::SNS::Model::ListTopicsResult::GetTopics
const Aws::Vector< Topic > & GetTopics() const
Definition: ListTopicsResult.h:46
Topic.h
Aws::SNS::Model::ListTopicsResult::WithTopics
ListTopicsResult & WithTopics(const Aws::Vector< Topic > &value)
Definition: ListTopicsResult.h:61
Aws::SNS::Model::ListTopicsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListTopicsResult.h:95
ResponseMetadata.h
Aws::SNS::Model::ListTopicsResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: ListTopicsResult.h:129
AWSString.h
Aws::SNS::Model::ListTopicsResult::ListTopicsResult
ListTopicsResult()
Aws::CostExplorer::Model::SubscriberType::NOT_SET
@ NOT_SET
Aws::SNS::Model::ListTopicsResult::AddTopics
ListTopicsResult & AddTopics(const Topic &value)
Definition: ListTopicsResult.h:71
AWS_SNS_API
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:28
SNS_EXPORTS.h
Aws::SNS::Model::ListTopicsResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: ListTopicsResult.h:126
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SNS::Model::Topic
Definition: Topic.h:34
Aws::SNS::Model::ListTopicsResult::WithTopics
ListTopicsResult & WithTopics(Aws::Vector< Topic > &&value)
Definition: ListTopicsResult.h:66
Aws::SNS::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::SNS::Model::ListTopicsResult::WithResponseMetadata
ListTopicsResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: ListTopicsResult.h:132
Aws::SNS::Model::ListTopicsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListTopicsResult.h:83
Aws::SNS::Model::ListTopicsResult::WithResponseMetadata
ListTopicsResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: ListTopicsResult.h:135