AWS SDK for C++  1.9.103
AWS SDK for C++
ListStreamConsumersResult.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 Kinesis
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<Consumer>& GetConsumers() const{ return m_consumers; }
41 
45  inline void SetConsumers(const Aws::Vector<Consumer>& value) { m_consumers = value; }
46 
50  inline void SetConsumers(Aws::Vector<Consumer>&& value) { m_consumers = std::move(value); }
51 
55  inline ListStreamConsumersResult& WithConsumers(const Aws::Vector<Consumer>& value) { SetConsumers(value); return *this;}
56 
60  inline ListStreamConsumersResult& WithConsumers(Aws::Vector<Consumer>&& value) { SetConsumers(std::move(value)); return *this;}
61 
65  inline ListStreamConsumersResult& AddConsumers(const Consumer& value) { m_consumers.push_back(value); return *this; }
66 
70  inline ListStreamConsumersResult& AddConsumers(Consumer&& value) { m_consumers.push_back(std::move(value)); return *this; }
71 
72 
89  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
90 
107  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
108 
125  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
126 
143  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
144 
161  inline ListStreamConsumersResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
162 
179  inline ListStreamConsumersResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
180 
197  inline ListStreamConsumersResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
198 
199  private:
200 
201  Aws::Vector<Consumer> m_consumers;
202 
203  Aws::String m_nextToken;
204  };
205 
206 } // namespace Model
207 } // namespace Kinesis
208 } // namespace Aws
Aws::Kinesis::Model::ListStreamConsumersResult
Definition: ListStreamConsumersResult.h:30
Aws::Kinesis::Model::ListStreamConsumersResult::WithNextToken
ListStreamConsumersResult & WithNextToken(const Aws::String &value)
Definition: ListStreamConsumersResult.h:161
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Kinesis::Model::ListStreamConsumersResult::SetConsumers
void SetConsumers(const Aws::Vector< Consumer > &value)
Definition: ListStreamConsumersResult.h:45
Aws::Kinesis::Model::ListStreamConsumersResult::ListStreamConsumersResult
ListStreamConsumersResult()
Aws::Kinesis::Model::ListStreamConsumersResult::operator=
ListStreamConsumersResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
AWS_KINESIS_API
#define AWS_KINESIS_API
Definition: Kinesis_EXPORTS.h:28
Aws::Kinesis::Model::ListStreamConsumersResult::WithNextToken
ListStreamConsumersResult & WithNextToken(Aws::String &&value)
Definition: ListStreamConsumersResult.h:179
Aws::Kinesis::Model::ListStreamConsumersResult::WithConsumers
ListStreamConsumersResult & WithConsumers(const Aws::Vector< Consumer > &value)
Definition: ListStreamConsumersResult.h:55
Aws::Kinesis::Model::ListStreamConsumersResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListStreamConsumersResult.h:107
Consumer.h
Aws::Kinesis::Model::ListStreamConsumersResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListStreamConsumersResult.h:125
Aws::Kinesis::Model::ListStreamConsumersResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListStreamConsumersResult.h:143
Aws::Kinesis::Model::Consumer
Definition: Consumer.h:36
Aws::Kinesis::Model::ListStreamConsumersResult::WithConsumers
ListStreamConsumersResult & WithConsumers(Aws::Vector< Consumer > &&value)
Definition: ListStreamConsumersResult.h:60
AWSString.h
Aws::Kinesis::Model::ListStreamConsumersResult::WithNextToken
ListStreamConsumersResult & WithNextToken(const char *value)
Definition: ListStreamConsumersResult.h:197
Aws::Kinesis::Model::ListStreamConsumersResult::ListStreamConsumersResult
ListStreamConsumersResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Kinesis_EXPORTS.h
Aws::Kinesis::Model::ListStreamConsumersResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListStreamConsumersResult.h:89
Aws::Kinesis::Model::ListStreamConsumersResult::GetConsumers
const Aws::Vector< Consumer > & GetConsumers() const
Definition: ListStreamConsumersResult.h:40
Aws
Definition: AccessManagementClient.h:15
Aws::Kinesis::Model::ListStreamConsumersResult::AddConsumers
ListStreamConsumersResult & AddConsumers(const Consumer &value)
Definition: ListStreamConsumersResult.h:65
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kinesis::Model::ListStreamConsumersResult::SetConsumers
void SetConsumers(Aws::Vector< Consumer > &&value)
Definition: ListStreamConsumersResult.h:50
Aws::Kinesis::Model::ListStreamConsumersResult::AddConsumers
ListStreamConsumersResult & AddConsumers(Consumer &&value)
Definition: ListStreamConsumersResult.h:70