AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
GetStreamRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/keyspacesstreams/KeyspacesStreamsRequest.h>
9#include <aws/keyspacesstreams/KeyspacesStreams_EXPORTS.h>
10#include <aws/keyspacesstreams/model/ShardFilter.h>
11
12#include <utility>
13
14namespace Aws {
15namespace KeyspacesStreams {
16namespace Model {
17
21 public:
22 AWS_KEYSPACESSTREAMS_API GetStreamRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GetStream"; }
29
30 AWS_KEYSPACESSTREAMS_API Aws::String SerializePayload() const override;
31
32 AWS_KEYSPACESSTREAMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
40 inline const Aws::String& GetStreamArn() const { return m_streamArn; }
41 inline bool StreamArnHasBeenSet() const { return m_streamArnHasBeenSet; }
42 template <typename StreamArnT = Aws::String>
43 void SetStreamArn(StreamArnT&& value) {
44 m_streamArnHasBeenSet = true;
45 m_streamArn = std::forward<StreamArnT>(value);
46 }
47 template <typename StreamArnT = Aws::String>
48 GetStreamRequest& WithStreamArn(StreamArnT&& value) {
49 SetStreamArn(std::forward<StreamArnT>(value));
50 return *this;
51 }
53
55
60 inline int GetMaxResults() const { return m_maxResults; }
61 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
62 inline void SetMaxResults(int value) {
63 m_maxResultsHasBeenSet = true;
64 m_maxResults = value;
65 }
66 inline GetStreamRequest& WithMaxResults(int value) {
67 SetMaxResults(value);
68 return *this;
69 }
71
73
79 inline const ShardFilter& GetShardFilter() const { return m_shardFilter; }
80 inline bool ShardFilterHasBeenSet() const { return m_shardFilterHasBeenSet; }
81 template <typename ShardFilterT = ShardFilter>
82 void SetShardFilter(ShardFilterT&& value) {
83 m_shardFilterHasBeenSet = true;
84 m_shardFilter = std::forward<ShardFilterT>(value);
85 }
86 template <typename ShardFilterT = ShardFilter>
87 GetStreamRequest& WithShardFilter(ShardFilterT&& value) {
88 SetShardFilter(std::forward<ShardFilterT>(value));
89 return *this;
90 }
92
94
99 inline const Aws::String& GetNextToken() const { return m_nextToken; }
100 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
101 template <typename NextTokenT = Aws::String>
102 void SetNextToken(NextTokenT&& value) {
103 m_nextTokenHasBeenSet = true;
104 m_nextToken = std::forward<NextTokenT>(value);
105 }
106 template <typename NextTokenT = Aws::String>
107 GetStreamRequest& WithNextToken(NextTokenT&& value) {
108 SetNextToken(std::forward<NextTokenT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_streamArn;
114
115 int m_maxResults{0};
116
117 ShardFilter m_shardFilter;
118
119 Aws::String m_nextToken;
120 bool m_streamArnHasBeenSet = false;
121 bool m_maxResultsHasBeenSet = false;
122 bool m_shardFilterHasBeenSet = false;
123 bool m_nextTokenHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace KeyspacesStreams
128} // namespace Aws
virtual const char * GetServiceRequestName() const override
GetStreamRequest & WithStreamArn(StreamArnT &&value)
GetStreamRequest & WithShardFilter(ShardFilterT &&value)
AWS_KEYSPACESSTREAMS_API Aws::String SerializePayload() const override
AWS_KEYSPACESSTREAMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetStreamRequest & WithNextToken(NextTokenT &&value)
AWS_KEYSPACESSTREAMS_API GetStreamRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String