AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
35
36
38
44 inline const Aws::Vector<Shard>& GetShards() const { return m_shards; }
45 template<typename ShardsT = Aws::Vector<Shard>>
46 void SetShards(ShardsT&& value) { m_shardsHasBeenSet = true; m_shards = std::forward<ShardsT>(value); }
47 template<typename ShardsT = Aws::Vector<Shard>>
48 ListShardsResult& WithShards(ShardsT&& value) { SetShards(std::forward<ShardsT>(value)); return *this;}
49 template<typename ShardsT = Shard>
50 ListShardsResult& AddShards(ShardsT&& value) { m_shardsHasBeenSet = true; m_shards.emplace_back(std::forward<ShardsT>(value)); return *this; }
52
54
69 inline const Aws::String& GetNextToken() const { return m_nextToken; }
70 template<typename NextTokenT = Aws::String>
71 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
72 template<typename NextTokenT = Aws::String>
73 ListShardsResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
75
77
78 inline const Aws::String& GetRequestId() const { return m_requestId; }
79 template<typename RequestIdT = Aws::String>
80 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
81 template<typename RequestIdT = Aws::String>
82 ListShardsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
84 private:
85
86 Aws::Vector<Shard> m_shards;
87 bool m_shardsHasBeenSet = false;
88
89 Aws::String m_nextToken;
90 bool m_nextTokenHasBeenSet = false;
91
92 Aws::String m_requestId;
93 bool m_requestIdHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace Kinesis
98} // namespace Aws
ListShardsResult & WithShards(ShardsT &&value)
const Aws::Vector< Shard > & GetShards() const
void SetNextToken(NextTokenT &&value)
AWS_KINESIS_API ListShardsResult()=default
const Aws::String & GetNextToken() const
AWS_KINESIS_API ListShardsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_KINESIS_API ListShardsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListShardsResult & WithRequestId(RequestIdT &&value)
void SetRequestId(RequestIdT &&value)
ListShardsResult & WithNextToken(NextTokenT &&value)
const Aws::String & GetRequestId() const
ListShardsResult & AddShards(ShardsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue