AWS SDK for C++  1.9.104
AWS SDK for C++
ListShardsResult.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 
43  inline const Aws::Vector<Shard>& GetShards() const{ return m_shards; }
44 
51  inline void SetShards(const Aws::Vector<Shard>& value) { m_shards = value; }
52 
59  inline void SetShards(Aws::Vector<Shard>&& value) { m_shards = std::move(value); }
60 
67  inline ListShardsResult& WithShards(const Aws::Vector<Shard>& value) { SetShards(value); return *this;}
68 
75  inline ListShardsResult& WithShards(Aws::Vector<Shard>&& value) { SetShards(std::move(value)); return *this;}
76 
83  inline ListShardsResult& AddShards(const Shard& value) { m_shards.push_back(value); return *this; }
84 
91  inline ListShardsResult& AddShards(Shard&& value) { m_shards.push_back(std::move(value)); return *this; }
92 
93 
109  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
110 
126  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
127 
143  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
144 
160  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
161 
177  inline ListShardsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
178 
194  inline ListShardsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
195 
211  inline ListShardsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
212 
213  private:
214 
215  Aws::Vector<Shard> m_shards;
216 
217  Aws::String m_nextToken;
218  };
219 
220 } // namespace Model
221 } // namespace Kinesis
222 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Kinesis::Model::ListShardsResult::AddShards
ListShardsResult & AddShards(const Shard &value)
Definition: ListShardsResult.h:83
Aws::Kinesis::Model::ListShardsResult::AddShards
ListShardsResult & AddShards(Shard &&value)
Definition: ListShardsResult.h:91
Aws::Kinesis::Model::ListShardsResult::ListShardsResult
ListShardsResult()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Kinesis::Model::ListShardsResult::WithNextToken
ListShardsResult & WithNextToken(const Aws::String &value)
Definition: ListShardsResult.h:177
Aws::Kinesis::Model::ListShardsResult
Definition: ListShardsResult.h:30
AWSVector.h
AWS_KINESIS_API
#define AWS_KINESIS_API
Definition: Kinesis_EXPORTS.h:28
Aws::Kinesis::Model::ListShardsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListShardsResult.h:143
Aws::Kinesis::Model::ListShardsResult::GetShards
const Aws::Vector< Shard > & GetShards() const
Definition: ListShardsResult.h:43
Aws::Kinesis::Model::ListShardsResult::operator=
ListShardsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Kinesis::Model::ListShardsResult::WithNextToken
ListShardsResult & WithNextToken(const char *value)
Definition: ListShardsResult.h:211
Aws::Kinesis::Model::ListShardsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListShardsResult.h:109
Aws::Kinesis::Model::ListShardsResult::WithNextToken
ListShardsResult & WithNextToken(Aws::String &&value)
Definition: ListShardsResult.h:194
AWSString.h
Aws::Kinesis::Model::ListShardsResult::WithShards
ListShardsResult & WithShards(const Aws::Vector< Shard > &value)
Definition: ListShardsResult.h:67
Kinesis_EXPORTS.h
Aws::Kinesis::Model::Shard
Definition: Shard.h:35
Aws::Kinesis::Model::ListShardsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListShardsResult.h:126
Aws
Definition: AccessManagementClient.h:15
Aws::Kinesis::Model::ListShardsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListShardsResult.h:160
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kinesis::Model::ListShardsResult::WithShards
ListShardsResult & WithShards(Aws::Vector< Shard > &&value)
Definition: ListShardsResult.h:75
Aws::Kinesis::Model::ListShardsResult::ListShardsResult
ListShardsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Shard.h
Aws::Kinesis::Model::ListShardsResult::SetShards
void SetShards(Aws::Vector< Shard > &&value)
Definition: ListShardsResult.h:59
Aws::Kinesis::Model::ListShardsResult::SetShards
void SetShards(const Aws::Vector< Shard > &value)
Definition: ListShardsResult.h:51