AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetStreamRequest.h
1
6#pragma once
7#include <aws/keyspacesstreams/KeyspacesStreams_EXPORTS.h>
8#include <aws/keyspacesstreams/KeyspacesStreamsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/keyspacesstreams/model/ShardFilter.h>
11#include <utility>
12
13namespace Aws
14{
15namespace KeyspacesStreams
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_KEYSPACESSTREAMS_API GetStreamRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetStream"; }
32
33 AWS_KEYSPACESSTREAMS_API Aws::String SerializePayload() const override;
34
35 AWS_KEYSPACESSTREAMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
44 inline const Aws::String& GetStreamArn() const { return m_streamArn; }
45 inline bool StreamArnHasBeenSet() const { return m_streamArnHasBeenSet; }
46 template<typename StreamArnT = Aws::String>
47 void SetStreamArn(StreamArnT&& value) { m_streamArnHasBeenSet = true; m_streamArn = std::forward<StreamArnT>(value); }
48 template<typename StreamArnT = Aws::String>
49 GetStreamRequest& WithStreamArn(StreamArnT&& value) { SetStreamArn(std::forward<StreamArnT>(value)); return *this;}
51
53
58 inline int GetMaxResults() const { return m_maxResults; }
59 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
60 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
61 inline GetStreamRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
63
65
70 inline const ShardFilter& GetShardFilter() const { return m_shardFilter; }
71 inline bool ShardFilterHasBeenSet() const { return m_shardFilterHasBeenSet; }
72 template<typename ShardFilterT = ShardFilter>
73 void SetShardFilter(ShardFilterT&& value) { m_shardFilterHasBeenSet = true; m_shardFilter = std::forward<ShardFilterT>(value); }
74 template<typename ShardFilterT = ShardFilter>
75 GetStreamRequest& WithShardFilter(ShardFilterT&& value) { SetShardFilter(std::forward<ShardFilterT>(value)); return *this;}
77
79
84 inline const Aws::String& GetNextToken() const { return m_nextToken; }
85 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
86 template<typename NextTokenT = Aws::String>
87 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
88 template<typename NextTokenT = Aws::String>
89 GetStreamRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
91 private:
92
93 Aws::String m_streamArn;
94 bool m_streamArnHasBeenSet = false;
95
96 int m_maxResults{0};
97 bool m_maxResultsHasBeenSet = false;
98
99 ShardFilter m_shardFilter;
100 bool m_shardFilterHasBeenSet = false;
101
102 Aws::String m_nextToken;
103 bool m_nextTokenHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace KeyspacesStreams
108} // 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