AWS SDK for C++  1.9.106
AWS SDK for C++
ListClustersResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace Kafka
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
43  inline const Aws::Vector<ClusterInfo>& GetClusterInfoList() const{ return m_clusterInfoList; }
44 
51  inline void SetClusterInfoList(const Aws::Vector<ClusterInfo>& value) { m_clusterInfoList = value; }
52 
59  inline void SetClusterInfoList(Aws::Vector<ClusterInfo>&& value) { m_clusterInfoList = std::move(value); }
60 
67  inline ListClustersResult& WithClusterInfoList(const Aws::Vector<ClusterInfo>& value) { SetClusterInfoList(value); return *this;}
68 
75  inline ListClustersResult& WithClusterInfoList(Aws::Vector<ClusterInfo>&& value) { SetClusterInfoList(std::move(value)); return *this;}
76 
83  inline ListClustersResult& AddClusterInfoList(const ClusterInfo& value) { m_clusterInfoList.push_back(value); return *this; }
84 
91  inline ListClustersResult& AddClusterInfoList(ClusterInfo&& value) { m_clusterInfoList.push_back(std::move(value)); return *this; }
92 
93 
103  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
104 
114  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
115 
125  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
126 
136  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
137 
147  inline ListClustersResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
148 
158  inline ListClustersResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
159 
169  inline ListClustersResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
170 
171  private:
172 
173  Aws::Vector<ClusterInfo> m_clusterInfoList;
174 
175  Aws::String m_nextToken;
176  };
177 
178 } // namespace Model
179 } // namespace Kafka
180 } // namespace Aws
Aws::Kafka::Model::ListClustersResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListClustersResult.h:125
Aws::Kafka::Model::ListClustersResult::WithClusterInfoList
ListClustersResult & WithClusterInfoList(const Aws::Vector< ClusterInfo > &value)
Definition: ListClustersResult.h:67
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Kafka::Model::ListClustersResult::ListClustersResult
ListClustersResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Kafka::Model::ListClustersResult::WithNextToken
ListClustersResult & WithNextToken(const Aws::String &value)
Definition: ListClustersResult.h:147
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Kafka::Model::ListClustersResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListClustersResult.h:114
AWSVector.h
Aws::Kafka::Model::ListClustersResult::GetClusterInfoList
const Aws::Vector< ClusterInfo > & GetClusterInfoList() const
Definition: ListClustersResult.h:43
Aws::Kafka::Model::ListClustersResult::SetClusterInfoList
void SetClusterInfoList(const Aws::Vector< ClusterInfo > &value)
Definition: ListClustersResult.h:51
AWSString.h
Aws::Kafka::Model::ListClustersResult
Definition: ListClustersResult.h:30
Aws::Kafka::Model::ListClustersResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListClustersResult.h:136
AWS_KAFKA_API
#define AWS_KAFKA_API
Definition: Kafka_EXPORTS.h:28
Aws::Kafka::Model::ListClustersResult::AddClusterInfoList
ListClustersResult & AddClusterInfoList(const ClusterInfo &value)
Definition: ListClustersResult.h:83
Aws::Kafka::Model::ListClustersResult::AddClusterInfoList
ListClustersResult & AddClusterInfoList(ClusterInfo &&value)
Definition: ListClustersResult.h:91
Aws::Kafka::Model::ListClustersResult::WithClusterInfoList
ListClustersResult & WithClusterInfoList(Aws::Vector< ClusterInfo > &&value)
Definition: ListClustersResult.h:75
Aws
Definition: AccessManagementClient.h:15
Aws::Kafka::Model::ListClustersResult::WithNextToken
ListClustersResult & WithNextToken(const char *value)
Definition: ListClustersResult.h:169
Aws::Kafka::Model::ClusterInfo
Definition: ClusterInfo.h:46
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ClusterInfo.h
Kafka_EXPORTS.h
Aws::Kafka::Model::ListClustersResult::operator=
ListClustersResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Kafka::Model::ListClustersResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListClustersResult.h:103
Aws::Kafka::Model::ListClustersResult::ListClustersResult
ListClustersResult()
Aws::Kafka::Model::ListClustersResult::WithNextToken
ListClustersResult & WithNextToken(Aws::String &&value)
Definition: ListClustersResult.h:158
Aws::Kafka::Model::ListClustersResult::SetClusterInfoList
void SetClusterInfoList(Aws::Vector< ClusterInfo > &&value)
Definition: ListClustersResult.h:59