AWS SDK for C++  1.9.68
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 DynamoDBStreams
15 {
16 namespace Model
17 {
18 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "GetRecords"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
46  inline const Aws::String& GetShardIterator() const{ return m_shardIterator; }
47 
53  inline bool ShardIteratorHasBeenSet() const { return m_shardIteratorHasBeenSet; }
54 
60  inline void SetShardIterator(const Aws::String& value) { m_shardIteratorHasBeenSet = true; m_shardIterator = value; }
61 
67  inline void SetShardIterator(Aws::String&& value) { m_shardIteratorHasBeenSet = true; m_shardIterator = std::move(value); }
68 
74  inline void SetShardIterator(const char* value) { m_shardIteratorHasBeenSet = true; m_shardIterator.assign(value); }
75 
81  inline GetRecordsRequest& WithShardIterator(const Aws::String& value) { SetShardIterator(value); return *this;}
82 
88  inline GetRecordsRequest& WithShardIterator(Aws::String&& value) { SetShardIterator(std::move(value)); return *this;}
89 
95  inline GetRecordsRequest& WithShardIterator(const char* value) { SetShardIterator(value); return *this;}
96 
97 
102  inline int GetLimit() const{ return m_limit; }
103 
108  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
109 
114  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
115 
120  inline GetRecordsRequest& WithLimit(int value) { SetLimit(value); return *this;}
121 
122  private:
123 
124  Aws::String m_shardIterator;
125  bool m_shardIteratorHasBeenSet;
126 
127  int m_limit;
128  bool m_limitHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace DynamoDBStreams
133 } // namespace Aws
Aws::DynamoDBStreams::Model::GetRecordsRequest::WithLimit
GetRecordsRequest & WithLimit(int value)
Definition: GetRecordsRequest.h:120
Aws::DynamoDBStreams::Model::GetRecordsRequest::ShardIteratorHasBeenSet
bool ShardIteratorHasBeenSet() const
Definition: GetRecordsRequest.h:53
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DynamoDBStreams::Model::GetRecordsRequest::GetRecordsRequest
GetRecordsRequest()
Aws::DynamoDBStreams::Model::GetRecordsRequest::WithShardIterator
GetRecordsRequest & WithShardIterator(const char *value)
Definition: GetRecordsRequest.h:95
Aws::DynamoDBStreams::Model::GetRecordsRequest::LimitHasBeenSet
bool LimitHasBeenSet() const
Definition: GetRecordsRequest.h:108
DynamoDBStreams_EXPORTS.h
Aws::DynamoDBStreams::Model::GetRecordsRequest::SetShardIterator
void SetShardIterator(const char *value)
Definition: GetRecordsRequest.h:74
Aws::DynamoDBStreams::Model::GetRecordsRequest::WithShardIterator
GetRecordsRequest & WithShardIterator(const Aws::String &value)
Definition: GetRecordsRequest.h:81
Aws::DynamoDBStreams::Model::GetRecordsRequest::SetShardIterator
void SetShardIterator(const Aws::String &value)
Definition: GetRecordsRequest.h:60
AWS_DYNAMODBSTREAMS_API
#define AWS_DYNAMODBSTREAMS_API
Definition: DynamoDBStreams_EXPORTS.h:28
Aws::DynamoDBStreams::Model::GetRecordsRequest::GetShardIterator
const Aws::String & GetShardIterator() const
Definition: GetRecordsRequest.h:46
Aws::DynamoDBStreams::Model::GetRecordsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetRecordsRequest.h:34
Aws::DynamoDBStreams::Model::GetRecordsRequest::WithShardIterator
GetRecordsRequest & WithShardIterator(Aws::String &&value)
Definition: GetRecordsRequest.h:88
AWSString.h
Aws::DynamoDBStreams::Model::GetRecordsRequest::SetShardIterator
void SetShardIterator(Aws::String &&value)
Definition: GetRecordsRequest.h:67
Aws
Definition: AccessManagementClient.h:15
Aws::DynamoDBStreams::Model::GetRecordsRequest::GetLimit
int GetLimit() const
Definition: GetRecordsRequest.h:102
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DynamoDBStreams::Model::GetRecordsRequest::SetLimit
void SetLimit(int value)
Definition: GetRecordsRequest.h:114
Aws::DynamoDBStreams::Model::GetRecordsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DynamoDBStreams::DynamoDBStreamsRequest
Definition: DynamoDBStreamsRequest.h:17
DynamoDBStreamsRequest.h
Aws::DynamoDBStreams::Model::GetRecordsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DynamoDBStreams::Model::GetRecordsRequest
Definition: GetRecordsRequest.h:26