AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
ListShardsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kinesis/Kinesis_EXPORTS.h>
11#include <aws/kinesis/model/Shard.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Kinesis {
25namespace Model {
27 public:
28 AWS_KINESIS_API ListShardsResult() = default;
31
33
39 inline const Aws::Vector<Shard>& GetShards() const { return m_shards; }
40 template <typename ShardsT = Aws::Vector<Shard>>
41 void SetShards(ShardsT&& value) {
42 m_shardsHasBeenSet = true;
43 m_shards = std::forward<ShardsT>(value);
44 }
45 template <typename ShardsT = Aws::Vector<Shard>>
46 ListShardsResult& WithShards(ShardsT&& value) {
47 SetShards(std::forward<ShardsT>(value));
48 return *this;
49 }
50 template <typename ShardsT = Shard>
51 ListShardsResult& AddShards(ShardsT&& value) {
52 m_shardsHasBeenSet = true;
53 m_shards.emplace_back(std::forward<ShardsT>(value));
54 return *this;
55 }
57
59
74 inline const Aws::String& GetNextToken() const { return m_nextToken; }
75 template <typename NextTokenT = Aws::String>
76 void SetNextToken(NextTokenT&& value) {
77 m_nextTokenHasBeenSet = true;
78 m_nextToken = std::forward<NextTokenT>(value);
79 }
80 template <typename NextTokenT = Aws::String>
81 ListShardsResult& WithNextToken(NextTokenT&& value) {
82 SetNextToken(std::forward<NextTokenT>(value));
83 return *this;
84 }
86
88
89 inline const Aws::String& GetRequestId() const { return m_requestId; }
90 template <typename RequestIdT = Aws::String>
91 void SetRequestId(RequestIdT&& value) {
92 m_requestIdHasBeenSet = true;
93 m_requestId = std::forward<RequestIdT>(value);
94 }
95 template <typename RequestIdT = Aws::String>
96 ListShardsResult& WithRequestId(RequestIdT&& value) {
97 SetRequestId(std::forward<RequestIdT>(value));
98 return *this;
99 }
101 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
102
103 private:
104 Aws::Vector<Shard> m_shards;
105
106 Aws::String m_nextToken;
107
108 Aws::String m_requestId;
109 Aws::Http::HttpResponseCode m_HttpResponseCode;
110 bool m_shardsHasBeenSet = false;
111 bool m_nextTokenHasBeenSet = false;
112 bool m_requestIdHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace Kinesis
117} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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