AWS SDK for C++  1.8.95
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 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
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
void SetShardIterator(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
virtual const char * GetServiceRequestName() const override
#define AWS_DYNAMODBSTREAMS_API
GetRecordsRequest & WithShardIterator(const Aws::String &value)
GetRecordsRequest & WithShardIterator(Aws::String &&value)
GetRecordsRequest & WithShardIterator(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97