AWS SDK for C++  1.9.107
AWS SDK for C++
GetRecordsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Kinesis
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "GetRecords"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
45  inline const Aws::String& GetShardIterator() const{ return m_shardIterator; }
46 
52  inline bool ShardIteratorHasBeenSet() const { return m_shardIteratorHasBeenSet; }
53 
59  inline void SetShardIterator(const Aws::String& value) { m_shardIteratorHasBeenSet = true; m_shardIterator = value; }
60 
66  inline void SetShardIterator(Aws::String&& value) { m_shardIteratorHasBeenSet = true; m_shardIterator = std::move(value); }
67 
73  inline void SetShardIterator(const char* value) { m_shardIteratorHasBeenSet = true; m_shardIterator.assign(value); }
74 
80  inline GetRecordsRequest& WithShardIterator(const Aws::String& value) { SetShardIterator(value); return *this;}
81 
87  inline GetRecordsRequest& WithShardIterator(Aws::String&& value) { SetShardIterator(std::move(value)); return *this;}
88 
94  inline GetRecordsRequest& WithShardIterator(const char* value) { SetShardIterator(value); return *this;}
95 
96 
102  inline int GetLimit() const{ return m_limit; }
103 
109  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
110 
116  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
117 
123  inline GetRecordsRequest& WithLimit(int value) { SetLimit(value); return *this;}
124 
125  private:
126 
127  Aws::String m_shardIterator;
128  bool m_shardIteratorHasBeenSet;
129 
130  int m_limit;
131  bool m_limitHasBeenSet;
132  };
133 
134 } // namespace Model
135 } // namespace Kinesis
136 } // namespace Aws
Aws::Kinesis::Model::GetRecordsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Kinesis::Model::GetRecordsRequest
Definition: GetRecordsRequest.h:25
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Kinesis::Model::GetRecordsRequest::WithShardIterator
GetRecordsRequest & WithShardIterator(const Aws::String &value)
Definition: GetRecordsRequest.h:80
Aws::Kinesis::Model::GetRecordsRequest::SetShardIterator
void SetShardIterator(const Aws::String &value)
Definition: GetRecordsRequest.h:59
Aws::Kinesis::Model::GetRecordsRequest::WithLimit
GetRecordsRequest & WithLimit(int value)
Definition: GetRecordsRequest.h:123
Aws::Kinesis::Model::GetRecordsRequest::WithShardIterator
GetRecordsRequest & WithShardIterator(const char *value)
Definition: GetRecordsRequest.h:94
AWS_KINESIS_API
#define AWS_KINESIS_API
Definition: Kinesis_EXPORTS.h:28
KinesisRequest.h
Aws::Kinesis::Model::GetRecordsRequest::SetLimit
void SetLimit(int value)
Definition: GetRecordsRequest.h:116
Aws::Kinesis::Model::GetRecordsRequest::GetShardIterator
const Aws::String & GetShardIterator() const
Definition: GetRecordsRequest.h:45
Aws::Kinesis::Model::GetRecordsRequest::GetLimit
int GetLimit() const
Definition: GetRecordsRequest.h:102
AWSString.h
Aws::Kinesis::KinesisRequest
Definition: KinesisRequest.h:17
Aws::Kinesis::Model::GetRecordsRequest::ShardIteratorHasBeenSet
bool ShardIteratorHasBeenSet() const
Definition: GetRecordsRequest.h:52
Aws::Kinesis::Model::GetRecordsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Kinesis::Model::GetRecordsRequest::WithShardIterator
GetRecordsRequest & WithShardIterator(Aws::String &&value)
Definition: GetRecordsRequest.h:87
Aws::Kinesis::Model::GetRecordsRequest::GetRecordsRequest
GetRecordsRequest()
Kinesis_EXPORTS.h
Aws::Kinesis::Model::GetRecordsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetRecordsRequest.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::Kinesis::Model::GetRecordsRequest::LimitHasBeenSet
bool LimitHasBeenSet() const
Definition: GetRecordsRequest.h:109
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kinesis::Model::GetRecordsRequest::SetShardIterator
void SetShardIterator(const char *value)
Definition: GetRecordsRequest.h:73
Aws::Kinesis::Model::GetRecordsRequest::SetShardIterator
void SetShardIterator(Aws::String &&value)
Definition: GetRecordsRequest.h:66