AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
78 inline const ShardFilter& GetShardFilter() const { return m_shardFilter; }
79 inline bool ShardFilterHasBeenSet() const { return m_shardFilterHasBeenSet; }
80 template <typename ShardFilterT = ShardFilter>
81 void SetShardFilter(ShardFilterT&& value) {
82 m_shardFilterHasBeenSet = true;
83 m_shardFilter = std::forward<ShardFilterT>(value);
84 }
85 template <typename ShardFilterT = ShardFilter>
86 GetStreamRequest& WithShardFilter(ShardFilterT&& value) {
87 SetShardFilter(std::forward<ShardFilterT>(value));
88 return *this;
89 }
91
93
98 inline const Aws::String& GetNextToken() const { return m_nextToken; }
99 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
100 template <typename NextTokenT = Aws::String>
101 void SetNextToken(NextTokenT&& value) {
102 m_nextTokenHasBeenSet = true;
103 m_nextToken = std::forward<NextTokenT>(value);
104 }
105 template <typename NextTokenT = Aws::String>
106 GetStreamRequest& WithNextToken(NextTokenT&& value) {
107 SetNextToken(std::forward<NextTokenT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_streamArn;
113
114 int m_maxResults{0};
115
116 ShardFilter m_shardFilter;
117
118 Aws::String m_nextToken;
119 bool m_streamArnHasBeenSet = false;
120 bool m_maxResultsHasBeenSet = false;
121 bool m_shardFilterHasBeenSet = false;
122 bool m_nextTokenHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace KeyspacesStreams
127} // 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