AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListShardsResult.h
1
6#pragma once
7#include <aws/kinesis/Kinesis_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kinesis/model/Shard.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Kinesis
26{
27namespace Model
28{
30 {
31 public:
32 AWS_KINESIS_API ListShardsResult();
35
36
38
44 inline const Aws::Vector<Shard>& GetShards() const{ return m_shards; }
45 inline void SetShards(const Aws::Vector<Shard>& value) { m_shards = value; }
46 inline void SetShards(Aws::Vector<Shard>&& value) { m_shards = std::move(value); }
47 inline ListShardsResult& WithShards(const Aws::Vector<Shard>& value) { SetShards(value); return *this;}
48 inline ListShardsResult& WithShards(Aws::Vector<Shard>&& value) { SetShards(std::move(value)); return *this;}
49 inline ListShardsResult& AddShards(const Shard& value) { m_shards.push_back(value); return *this; }
50 inline ListShardsResult& AddShards(Shard&& value) { m_shards.push_back(std::move(value)); return *this; }
52
54
69 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
70 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
71 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
72 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
73 inline ListShardsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
74 inline ListShardsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
75 inline ListShardsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
77
79
80 inline const Aws::String& GetRequestId() const{ return m_requestId; }
81 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
82 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
83 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
84 inline ListShardsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
85 inline ListShardsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
86 inline ListShardsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
88 private:
89
90 Aws::Vector<Shard> m_shards;
91
92 Aws::String m_nextToken;
93
94 Aws::String m_requestId;
95 };
96
97} // namespace Model
98} // namespace Kinesis
99} // namespace Aws
ListShardsResult & WithNextToken(Aws::String &&value)
void SetNextToken(Aws::String &&value)
const Aws::Vector< Shard > & GetShards() const
ListShardsResult & WithShards(Aws::Vector< Shard > &&value)
void SetRequestId(Aws::String &&value)
void SetRequestId(const Aws::String &value)
ListShardsResult & WithNextToken(const char *value)
ListShardsResult & WithRequestId(const Aws::String &value)
ListShardsResult & WithShards(const Aws::Vector< Shard > &value)
void SetShards(Aws::Vector< Shard > &&value)
const Aws::String & GetNextToken() const
AWS_KINESIS_API ListShardsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListShardsResult & WithRequestId(const char *value)
ListShardsResult & AddShards(const Shard &value)
AWS_KINESIS_API ListShardsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListShardsResult & WithRequestId(Aws::String &&value)
ListShardsResult & WithNextToken(const Aws::String &value)
ListShardsResult & AddShards(Shard &&value)
void SetShards(const Aws::Vector< Shard > &value)
void SetNextToken(const Aws::String &value)
const Aws::String & GetRequestId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue