AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListShardsRequest.h
1
6#pragma once
7#include <aws/kinesis/Kinesis_EXPORTS.h>
8#include <aws/kinesis/KinesisRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/kinesis/model/ShardFilter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Kinesis
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_KINESIS_API ListShardsRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListShards"; }
33
34 AWS_KINESIS_API Aws::String SerializePayload() const override;
35
37
41 AWS_KINESIS_API EndpointParameters GetEndpointContextParams() const override;
42
44
48 inline const Aws::String& GetStreamName() const{ return m_streamName; }
49 inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
50 inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
51 inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
52 inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
53 inline ListShardsRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
54 inline ListShardsRequest& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
55 inline ListShardsRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;}
57
59
80 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
81 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
82 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
83 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
84 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
85 inline ListShardsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
86 inline ListShardsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
87 inline ListShardsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
89
91
99 inline const Aws::String& GetExclusiveStartShardId() const{ return m_exclusiveStartShardId; }
100 inline bool ExclusiveStartShardIdHasBeenSet() const { return m_exclusiveStartShardIdHasBeenSet; }
101 inline void SetExclusiveStartShardId(const Aws::String& value) { m_exclusiveStartShardIdHasBeenSet = true; m_exclusiveStartShardId = value; }
102 inline void SetExclusiveStartShardId(Aws::String&& value) { m_exclusiveStartShardIdHasBeenSet = true; m_exclusiveStartShardId = std::move(value); }
103 inline void SetExclusiveStartShardId(const char* value) { m_exclusiveStartShardIdHasBeenSet = true; m_exclusiveStartShardId.assign(value); }
105 inline ListShardsRequest& WithExclusiveStartShardId(Aws::String&& value) { SetExclusiveStartShardId(std::move(value)); return *this;}
106 inline ListShardsRequest& WithExclusiveStartShardId(const char* value) { SetExclusiveStartShardId(value); return *this;}
108
110
119 inline int GetMaxResults() const{ return m_maxResults; }
120 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
121 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
122 inline ListShardsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
124
126
134 inline const Aws::Utils::DateTime& GetStreamCreationTimestamp() const{ return m_streamCreationTimestamp; }
135 inline bool StreamCreationTimestampHasBeenSet() const { return m_streamCreationTimestampHasBeenSet; }
136 inline void SetStreamCreationTimestamp(const Aws::Utils::DateTime& value) { m_streamCreationTimestampHasBeenSet = true; m_streamCreationTimestamp = value; }
137 inline void SetStreamCreationTimestamp(Aws::Utils::DateTime&& value) { m_streamCreationTimestampHasBeenSet = true; m_streamCreationTimestamp = std::move(value); }
141
143
164 inline const ShardFilter& GetShardFilter() const{ return m_shardFilter; }
165 inline bool ShardFilterHasBeenSet() const { return m_shardFilterHasBeenSet; }
166 inline void SetShardFilter(const ShardFilter& value) { m_shardFilterHasBeenSet = true; m_shardFilter = value; }
167 inline void SetShardFilter(ShardFilter&& value) { m_shardFilterHasBeenSet = true; m_shardFilter = std::move(value); }
168 inline ListShardsRequest& WithShardFilter(const ShardFilter& value) { SetShardFilter(value); return *this;}
169 inline ListShardsRequest& WithShardFilter(ShardFilter&& value) { SetShardFilter(std::move(value)); return *this;}
171
173
176 inline const Aws::String& GetStreamARN() const{ return m_streamARN; }
177 inline bool StreamARNHasBeenSet() const { return m_streamARNHasBeenSet; }
178 inline void SetStreamARN(const Aws::String& value) { m_streamARNHasBeenSet = true; m_streamARN = value; }
179 inline void SetStreamARN(Aws::String&& value) { m_streamARNHasBeenSet = true; m_streamARN = std::move(value); }
180 inline void SetStreamARN(const char* value) { m_streamARNHasBeenSet = true; m_streamARN.assign(value); }
181 inline ListShardsRequest& WithStreamARN(const Aws::String& value) { SetStreamARN(value); return *this;}
182 inline ListShardsRequest& WithStreamARN(Aws::String&& value) { SetStreamARN(std::move(value)); return *this;}
183 inline ListShardsRequest& WithStreamARN(const char* value) { SetStreamARN(value); return *this;}
185 private:
186
187 Aws::String m_streamName;
188 bool m_streamNameHasBeenSet = false;
189
190 Aws::String m_nextToken;
191 bool m_nextTokenHasBeenSet = false;
192
193 Aws::String m_exclusiveStartShardId;
194 bool m_exclusiveStartShardIdHasBeenSet = false;
195
196 int m_maxResults;
197 bool m_maxResultsHasBeenSet = false;
198
199 Aws::Utils::DateTime m_streamCreationTimestamp;
200 bool m_streamCreationTimestampHasBeenSet = false;
201
202 ShardFilter m_shardFilter;
203 bool m_shardFilterHasBeenSet = false;
204
205 Aws::String m_streamARN;
206 bool m_streamARNHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace Kinesis
211} // namespace Aws
Aws::Endpoint::EndpointParameters EndpointParameters
void SetExclusiveStartShardId(Aws::String &&value)
void SetStreamCreationTimestamp(const Aws::Utils::DateTime &value)
AWS_KINESIS_API EndpointParameters GetEndpointContextParams() const override
ListShardsRequest & WithStreamCreationTimestamp(const Aws::Utils::DateTime &value)
void SetNextToken(const Aws::String &value)
void SetExclusiveStartShardId(const Aws::String &value)
const Aws::String & GetNextToken() const
ListShardsRequest & WithExclusiveStartShardId(const Aws::String &value)
ListShardsRequest & WithStreamName(Aws::String &&value)
const Aws::String & GetStreamName() const
ListShardsRequest & WithStreamCreationTimestamp(Aws::Utils::DateTime &&value)
void SetStreamCreationTimestamp(Aws::Utils::DateTime &&value)
ListShardsRequest & WithStreamARN(const char *value)
void SetStreamName(Aws::String &&value)
const Aws::String & GetStreamARN() const
ListShardsRequest & WithExclusiveStartShardId(const char *value)
void SetStreamARN(const Aws::String &value)
AWS_KINESIS_API Aws::String SerializePayload() const override
ListShardsRequest & WithExclusiveStartShardId(Aws::String &&value)
void SetStreamName(const Aws::String &value)
ListShardsRequest & WithStreamName(const Aws::String &value)
ListShardsRequest & WithNextToken(const Aws::String &value)
ListShardsRequest & WithMaxResults(int value)
void SetExclusiveStartShardId(const char *value)
ListShardsRequest & WithStreamName(const char *value)
ListShardsRequest & WithShardFilter(const ShardFilter &value)
const ShardFilter & GetShardFilter() const
void SetShardFilter(const ShardFilter &value)
const Aws::String & GetExclusiveStartShardId() const
ListShardsRequest & WithNextToken(Aws::String &&value)
ListShardsRequest & WithNextToken(const char *value)
const Aws::Utils::DateTime & GetStreamCreationTimestamp() const
ListShardsRequest & WithStreamARN(Aws::String &&value)
ListShardsRequest & WithShardFilter(ShardFilter &&value)
ListShardsRequest & WithStreamARN(const Aws::String &value)
AWS_KINESIS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String